演示地址: http://www.dyqzone.cn
修改方法: 在你的
风格目录下 找到 index.htm 这个文件
查找 :
<div style="margin-top:7px;"></div>
<!--
EOT;
}if($db_iftag && $db_tagindex){print <<<EOT
-->
在后面加上 下面这段:
<!--首页四格开始-QQ综合基地
www.dyqzone.cn-->
<div class="t f_two"><table cellspacing="0" cellpadding="0" width="100%">
<tr><td>
<script language="javascript" src="images/flash/show.js"></script>
</td>
<td>
<div style="float: left;" width="230px">
<ul class="lbox" style="clear: both">
<img src="images/newsreply.gif" />
</ul>
$newthreads
</div>
<td>
<td>
<div style="float: left;" width="230px">
<ul class="lbox" style="clear: both">
<img src="images/replythreads.gif" />
</ul>
$replythreads
</div>
<td>
<td>
<div style="float: left;" width="100px">
<ul class="lbox" style="clear: both">
<img src="images/today.gif" />
</ul>
$hotmember
</div>
<td>
</tr>
</table>
</div>
<!--首页四格结束-QQ综合基地
www.dyqzone.cn-->
2:查找 index.php
@extract($db->get_one("SELECT * FROM pw_bbsinfo WHERE id=1"));
$rawnewuser = rawurlencode($newmember);
在下面加上
//调用开始
$cachefile="./data/bbscache/indexhotpost.php";
$cachetime=60;//缓存修改时间单位秒
if (([url=mailto:$timestamp-@filemtime($cachefile)>=$cachetime]$timestamp-@filemtime($cachefile)>=$cachetime[/url])){
$listnum=12;//显示个数
$listlength=30;//标题长度
$hotmember=$newthreads=$hitthreads=$replythreads="";
$query=$db->query("SELECT m.uid,m.username,md.todaypost FROM pw_members m LEFT JOIN pw_memberdata md USING(uid) WHERE md.lastpost>'$tdtime' ORDER BY md.todaypost DESC limit 0,$listnum");
while($members=$db->fetch_array($query)){
$hotmember.="<Li class=toplistpost01><a href='profile.php?action=show&uid=$members[uid]'>$members[username]</a> [$members[todaypost]]<br /></Li>";
}
unset($members);
$query = $db->query("SELECT tid,author,subject,hits,postdate FROM pw_threads order by postdate desc limit 0,$listnum");
while($threads=$db->fetch_array($query)){
$threads[postdate]=date("Y-m-j g:i",$threads[postdate]);
$threads[subject]=substrs($threads[subject],$listlength);
$newthreads.="<Li class=toplistpost><a href='read.php?tid=$threads[tid]' title='主题
标题:$threads[subject]\n主题作者:$threads[author]\n发表时间:$threads[postdate]\n浏览次数:$threads[hits]次'>$threads[subject]</a><br /></Li>";
}
unset($threads);
$query = $db->query("SELECT tid,author,subject,replies,hits,replies,lastposter,lastpost,postdate FROM pw_threads where replies>0 order by lastpost desc limit 0,$listnum");
while($threads=$db->fetch_array($query)){
$threads[lastpost]=date("Y-m-j g:i",$threads[lastpost]);
$threads[subject]=substrs($threads[subject],$listlength);
$replythreads.="<Li class=toplistpost><a href='read.php?tid=$threads[tid]' title='主题标题:$threads[subject]\n主题作者:$threads[author]\n发表时间:$threads[postdate]\n浏览次数:$threads[hits] 次\n最新回复:$threads[lastposter]\n回复时间:$threads[lastpost]\n回复次数:$threads[replies] 次'>$threads[subject]</a><br /></Li>";
}
unset($members);
@writeover($cachefile,"<?php\n\$hotmember=\"$hotmember\";\n\$newthreads=\"$newthreads\";\n\$hitthreads=\"$hitthreads\";\n\$replythreads=\"$replythreads\";\n\$hit2threads=\"$hit2threads\";\n\$hot2member=\"$hot2member\";\n\$membersmoney=\"$membersmoney\";\n\$membersrvrc=\"$membersrvrc\";\n\$memberscredit=\"$memberscredit\";\n\$membersvalue=\"$membersvalue\";\n\$membersonlinetime=\"$membersonlinetime\";\n\$membersdigests=\"$membersdigests\";\n?>");
}else{
@include($cachefile);
}
//调用结束
下载附件里的文件,上传到论坛根目录 演示地址: http://www.dyqzone.cn 加点分啊 修正一个
问题:把附件里的 flash文件夹上传至images文件夹里
[ 此贴被longting在2008-06-15 00:05重新编辑 ]