Shanghai WTO Forum

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 7120|回复: 0

【转贴】在线聊天+点歌台 for PHPWIND 4.3.2 4.0.1 整合版

[复制链接]
发表于 2006-2-19 01:10:17 | 显示全部楼层 |阅读模式
  来源:http://www.dbrylw.com/bbs/read.p ... page=1&toread=1
作者:凌乱的我

我是为了自己使用把论坛中原来发布的在线聊天插件和Alex前辈的点歌台加以修改合并,本人也是一个菜鸟,为了方便同我一样的朋友使用特别发布出来,希望能给大家有所帮助

演示地址:http://www.dbrylw.com/bbs/

修改系统文件:index.htm

安装步骤:
1.上传文件:

  把附件中所有文件上传至空间论坛根目录
  对于unix等空间,把最好把这些文件属性设为可写(包括文件夹内的文件)。
  
2.加入DJ管理员
  加入特殊组DJ管理员,手工加。
  在后台选择加入特殊组,组名一定为"DJ管理员"。

3.参数修改(也可不改,使用默认)
  打开song.php  
  在最上方约第六排开始有一下定义变量:
  $usrl=2;//第一个是正常点歌的钱
  $usrltb=10;//第二个是选外部连接点歌的钱
  $howdays=2;//第三个是歌曲保存的天数
  根据你的需要,请自己改。

4.修改模版,在主页上显示


打开你模板的index.htm文件。找到:

CODE:

<!--<?php print <<<EOT
-->

[Copy to clipboard]


替换为:


CODE:

<!--
<?
  $songdetail=readover("data/songdata/songcache.htm");/*点歌代码*/
print <<<EOT
-->

[Copy to clipboard]



找到:

CODE:

<table cellpadding=5 cellspacing=1 width=&#39;$tablewidth&#39; $i_table align=center>
<tr><td colspan=2 class=head>
<a style="float:right" href="#" onclick="return IndexDeploy(&#39;info&#39;,0)"><img id="img_info" src="$imgpath/$stylepath/index/cate_$cate_img.gif"></a><b>-=>论坛相关</b></td></tr>

[Copy to clipboard]


在其上面添加:


CODE:

<!-- 点歌模版 -->
<script>
function popwin2(id,path)
{      window.open("songs.php?action=song_st&dgno="+id,"","height=470,width=390,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<table width=$tablewidth border=0 $i_table align=center cellspacing=1 cellpadding=1>
  <tr bgcolor=$forumcolortwo>
<td colspan=2 width="55%" class=head height=25 align=left>
      -=>在线聊天
   </td>

   <td width="45%" class=head height=25 align=center>
      <a class=headurl>社区点歌台</a>-------<a href=song.php?action=user class=headurl>点这里为朋友点歌</a>-------<a href=song_admin.php class=headurl>DJ管理</a>
   </td>
   
  </tr>
  <tr height=150>   
<td class=f_two align=center width=5% rowspan=1>
<img src=&#39;$imgpath/$stylepath/index/share.gif&#39;></td>
<td class=f_one width=55% height=120>
<IFRAME name=ggb src=bbfc_chat.php
  frameBorder=0 width="100%" scrolling=yes
  height="100%"></IFRAME></td>

<td style=background-p_w_picpath:url("$imgpath/$stylepath/background.gif") width=40% bgcolor=$forumcolorone onMouseOver=this.style.backgroundColor=&#39;$forumcolortwo&#39; onMouseOut=this.style.backgroundColor=&#39;$forumcolorone&#39;>
      <marquee scrollamount=1 direction=up height=120 onmouseover=this.stop(); onmouseout=this.start();>
       $songdetail
   </td>
  </tr>
</table><br>
<!-- 点歌模版 -->

[Copy to clipboard]



注: data\songdata\songdata.php 为歌曲信息,可以批量添加歌曲。(也可以在前台DJ管理中添加)
这一段代码你也可以加在其他地方,加在你想把点歌台显示的地方。如果对模板比较熟悉的,可以也可以把它加在header模板里。
如果不熟悉,建议照我的说明更改就行了,不要乱动,否则,不进行技术支持!!

在线聊天没有清除聊天记录的功能,可以清除/chat.dat中的内容,即可清除聊天记录!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则


QQ|Archiver|mobile|The little black house|Shanghai WTO Net ( 沪ICP备10034107号-3 )

GMT+8, 2024-5-5 02:55

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表