本帖最后由 凡军 于 2009-10-18 00:26 编辑
安装说明:
1.把db/uchome.sql导入数据库
2.修改以下文件
打开Space.php
查找:- //允许动作
- $dos = array('feed', 'doing', 'mood', 'blog', 'album', 'thread', 'mtag', 'friend', 'wall', 'tag', 'notice', 'share', 'topic', 'home', 'pm', 'event', 'poll', 'top', 'info', 'videophoto'
复制代码 在后面加入:打开Source/cp_doing.php
找到:- //入库
- $newdoid = inserttable('doing', $setarr, 1);
复制代码 在后面加上- // -add
- if($_GET['from']=="sshout" ){
- include_once'./source/hook_shout.php';
-
- }
- // end -add
复制代码 template\default\Space_feed.htm文件
找到:- <!--{if empty($_TPL['getmore'])}-->
- <!--{eval $_TPL['titles'] = array('首页');}-->
- <!--{template header}-->
- <div id="content">
复制代码 在后面加上:- <!-- add shout --> <!-- test -->
- <style type="text/css">
- <!--
- .STYLE1 {color: #FF0000}
- .STYLE2 {font-size: 14px}
- -->
- </style>
- <script type="text/javascript" src="plugins/shout/js/jquery1.js"></script>
- <script type="text/javascript">
-
- <!--
- // getvipshout1();
- //setTimeout('getshout()',3000);
- setTimeout("getvipshout()",5000);
- var count=1;
- function getvipshout1(){
- x$.get("plugins/shout/index.php?action=getvipshout",
- { username:'{$_SN[$space[uid]]}',count:count,preid:100000},
- function(data){
- var o=document.getElementById('vip_shout');
- o.innerHTML=data;
- }
- );
- count=count+1;
- setTimeout("getvipshout()",15000);
- }
- function getvipshout(){
- x$.get("plugins/shout/index.php?action=getvipshout",
- { username:'{$_SN[$space[uid]]}',count:count,preid:x$('#'+'preid')[0].value},
- function(data){
- var o=document.getElementById('vip_shout');
- o.innerHTML=data;
- }
- );
- count=count+1;
- setTimeout("getvipshout()",15000);
- }
- //-->
- </script>
- <div class="c_mgs" style="margin:0px;margin-bottom:10px;"><div class="ye_r_t"><div class="ye_l_t"><div class="ye_r_b"><div class="ye_l_b" style="margin:0px;padding:0px;">
- <div id="shout" style="margin:0px;padding:0px;">
- <div id="vip_shout" >
- <!--{if include'plugins/code/shout_widget.php'}-->
- <!--{/if}-->
- <!-- <span class="" style=""> </span> <b style="color:0000ff"></b> <span class=""></span> -->
- </div>
- <!-- onmouseout="this.start()" onmouseover="this.stop()" scrollamount="3" direction="left"-->
-
- </div>
- <!-- x -->
- <!-- <a href="cp.php?ac=task&taskid=2&op=ignore" style="position: absolute; width: 16px; height: 16px; background: url(image/cancel.gif) no-repeat; line-height: 200px; top: 5px; right: -8px; overflow: hidden; display: block;" title="忽略">忽略</a>-->
- <!-- /x -->
- </div></div></div></div></div>
- <!-- /test -->
- <!-- /shout -->
复制代码 template\default\Space_doing.htm文件
找到:- <li$actives[me]><a href="space.php?uid=$space[uid]&do=$do&view=me"><span>我的记录</span></a></li>
复制代码 在后面加上- <!-- add -->
- <li><a href="space.php?do=sshout"><span>超级喊话</span></a></li>
- <!-- /add -->
复制代码
3.上传喇叭文件夹内所有程序文件到根目录
4.更新缓存即可 |