|   
 
 | 
| 在首页(论坛)完整的调用用户排行信息 演示:http://88365.gnway.net/leadbbs/phboards.asp
 
 请将此usertop_fun.asp解压到:
 bbs/user/目录中。
 
 注意:修改办法,以这儿为准,压缩包不再更新说明:
 
 下面是在bbs/boards.asp或者bbs/default.asp等页面
 中调用的方法,其它地方调用,需要加适当修改。
 
 在boards.asp代码开头
 <!-- #include file=inc/board_popfun.asp -->
 下面,加上下面这一行:
 
 <!-- #include file=./user/usertop_fun.asp -->
 
 以下分别为调用:会员积分排行,经验排行,
 灌水排行,新注册排行的top5
 完全可以分开调用。
 如果要调用其它条数,请修改下面代码中的5。
 
 输出结果是以100%的宽度显示的,所以
 你应该把它们插入到你适当的表格内。
 不会的,请参阅html相关知识。
 
 <%=displayuserpointstop(5)%>
 <%displayuseronlinetimetop(5)%>
 <%displayuseranctop(5)%>
 <%displayusernewest(5)%>
 
 
 加了加班,做了个调用范例:不想费神的,直接使用就可以了。
 
 bbs/boards.asp,找到下面代码:在100行以前。
 -------------------------------
 'response.write "fix(abs(cdbl(timer)*1000 - def_pageexetime1)):"&fix(abs(cdbl(timer)*1000 - def_pageexetime1))
 'def_pageexetime1=timer * 1000
 -----------------------------
 
 
 在它前面一行插入下面代码:
 --------------
 '插入会员排行调用
 %>
 <table width="<%=def_bbs_screenwidth%>" border="0" cellspacing="0" cellpadding="0" align="center" >
 <tr >
 <td width=50%><%displayuseronlinetimetop(5)%></td>
 <td width=50%><%displayuseranctop(5)%></td>
 </tr>
 </table><br><%
 '插入会员排行调用结束
 ---------------------------
 其中的调用是会员经验和灌水,你可以修改成其它的。
 
 ---------------------------
 
 大于10000时以万为单位显示积分的修改方法:
 
 在31行
 document.write("<tr bgcolor=<%=def_bbs_lightestcolor%> class=tbbg9");
 下面加入一行:
 if(d2>=10000)d2=parseint(d2/10000)+"万";
 
 下载:http://wensui.com/bbs/down/usertop_fun.rar
 
 
 http://w.leadbbs.com/a/a.asp?b=200&id=1759709
 | 
 |