首页四格,首页五格For6.0(GBK)(UTF-8)[12种组合][9-18][版主安装测试通

2019-04-11 00:48:14于丽

var swf_width=255   设置flash 宽 
var swf_height=175 设置flash 高2/3

index.php中


$hack_cut_str = 26; //标题字数 
DESC LIMIT 0, 10" //设置显示条数 

如果不想调用某个版或某个区或者某些版的帖子可在index.php预留给大家的位置增加:(共三处)
and f.fid not in (0)
增加为:
and f.fid not in (1,2,3)其中123为 不想调用的 fid,
或者只想调用 1 2 3 改为:and f.fid in (1,2,3)3/3: discuz.htm 中引用:
如果想把最新回复中的链接打开时指向最后回复此帖的位置,只需将discuz.htm 中的:

<a href="viewthread.php?tid=$rthread[tid]" 

改为:

<a href="redirect.php?tid=$rthread[tid]&goto=lastpost#lastpost"

需要像官方一样每个区加入伸缩点击功能的请在discuz.htm 中改写(五格的,如果是四格就根据<h3>≡ 本周热门 ≡</h3>

<td align="center" style="padding:0 0 0 1px"><h3>今日发帖</h3></td>
  </tr>
  </thead>
  <tr>

为:

<span class="headactions">
     <img id="toplist_img" src="images/default/collapsed_no.gif" title="收起/展开" alt="收起/展开" onclick="toggle_collapse('toplist');" />
    </span>
    <h3>今日发帖</h3>
   </td>
  </tr>
  </thead>
  <tr id="toplist">

演示图:(根据要求新写的风格,使得在官方的六种风格中更加配套完善。。。)

使用本插件需要增加的文件有: 

pic.php      //调用论坛图片数据, 
list.gif 和listbg.gif       //标题处的图片 
focus.swf   //调用图片的flash [此swf 与以往的大不相同,个人觉得更不错] 
需修改的文件有: 

index.php 
discuz.htm 
=======================  开始增加和修改  ============================ 
步骤:共分4步 

将pic.php / list.gif / listbg.gif / focus.swf 按下载到的附件结构传到FTP(网站) 
其中:pic.php 在论坛根目录 
list.gif / listbg.gif / focus.swf 在images文件夹下 
打开 index.php  
查找:
相关文章 大家在看