仿火狼数据调用附件
[attach]173[/attach]后台数据调用导入:防火狼首页N格数据调用.xml
discuz.htm里的代码用记事本打开,放到discuz.htm模板里,具体位置我也不太清楚,你可以借鉴其他版本的放置位置,加代码之前记得备份,切记
后续要是还有问题我再把我后台的代码复制给你看 [code]<!--我的首页调用begin-->
<div class="tongji_a">
<div id="tongji">
<a target="_blank" href="stats.php"><img border="0" align="absmiddle" title="统计" src="http://mc0713.66rt.com/attachments/day_180826/180826121294e30185917846d6.gif" /></a> {lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span><font color=red>会员</font>: <em>$totalmembers</em><span class="pipe">|</span><font color=red>新会员</font>: <a href="space.php?username=$memberenc"><font color=#2E9AFE><b>$lastmember</b></font></a>
</div>{template index_header}
</div>
<script type="text/javascript" src="http://tlb.258club.com/templates/zyx2/js2.htm" ></script>
<script type="text/javascript" src="http://tlb.258club.com/templates/zyx2/js1.htm" ></script>
<script>
function g(o) {
return document.getElementById(o);
}
function HoverLi(n) {
for(var i=1;i<=5;i++) {
g('tb_'+i).className='tlb-normal';
g('tbc_0'+i).className='tlb-undis';
}
g('tbc_0'+n).className='tlb-dis';
g('tb_'+n).className='tlb-hover';
}
function HoverLim(n) {
for(var i=1;i<=3;i++) {
g('tbm_'+i).className='tlb-normal1';
g('tbcm_0'+i).className='tlb-undism';
}
g('tbcm_0'+n).className='tlb-dism';
g('tbm_'+n).className='tlb-hover1';
}
</script>
<style>
ul,li { list-style: none; }
.tlb_show { width:99.9%; height: 245px; margin: 0 0 10px 0; border: solid 1px #b1c9dc; background: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png[/img]) repeat-x top; }
.tlb_show .com-1 { width: 35%; height: 245px; float: left; border-right: solid 1px #b1c9dc; }
.tlb_show .com-2 { width:46%; height: 245px; float: left; border-right: solid 1px #b1c9dc; }
.tlb_show .com-3 { width: 18%; height: 245px; float: left;}
.tlb_show .com-1-top { width:34%; height: 32px; }
.tlb_show .com-1-top span { float: left; height: 32px; line-height: 32px; text-align: left; cursor: pointer; padding-left: 15px; color: #336699; font-weight: bold; }
.tlb-top { width:98%; height: 32px; background: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png[/img]) repeat-x top; }
.tlb-top ul { height: 32px; }
.tlb-top li { float: left; height: 32px; line-height: 32px; text-align: center; width: 78px; cursor: pointer; }
.tlb-topm { width:150px; height: 32px; background: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png[/img]) repeat-x top; }
.tlb-topm ul { height: 32px; }
.tlb-topm li { float: left; height: 32px; line-height: 32px; text-align: center; width: 50px; cursor: pointer; }
.tlb-normal { background-repeat: no-repeat; color: #336699; font-weight: bold; background-image: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212778231771a969f54.jpg[/img]); }
.tlb-hover { background-repeat: no-repeat; color: #ff6600; font-weight: bold; background-image: url([img]http://mc0713.66rt.com/attachments/day_180826/180826121220ef34fdfa300ecf.jpg[/img]); }
.tlb-normal1 { background-repeat: no-repeat; color: #336699; font-weight: bold; background-image: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212d59adc55799d54d6.jpg[/img]); }
.tlb-hover1 { background-repeat: no-repeat; color: #ff6600; font-weight: bold; background-image: url([img]http://mc0713.66rt.com/attachments/day_180826/18082612126b1a3132a7b4f377.jpg[/img]); }
.tlb-dis { display: block; }
.tlb-undis { display: none; }
.tlb-dis span a { color: #2E9AFE; }
.tlb-dism { display: block; }
.tlb-undism { display: none; }
.tlb_show .txt td { padding: 0; vertical-align: top; }
.tlb_show .txt div { width: 100%; height: 20px; overflow: hidden; background: url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212585d5f1e008ed78b.gif[/img]) repeat-x; }
.tlb_show .txt span { float: right; color: #07519a; }
.icont li{position:relative;background:url([img]http://mc0713.66rt.com/attachments/day_180826/1808261212585d5f1e008ed78b.gif[/img]) repeat-x left bottom;height:20px;line-height:20px;padding:0px 5px 0px 20px;text-align:left;margin-right:0px;position:relative;clear:both;}
.icont{height:200px;}
.icont ul{background:url([img]http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png[/img]) 0px 0px no-repeat;}
.icont li span{right:5px;top:0px;position:absolute; }
.tongji_a {margin:30px 0 0 0;clear: both;overflow: hidden;margin-bottom:5px;line-height:23px;}
#tongji {margin-top:-30px;position: absolute;width:;border-left: 1px solid #E6E7E1 !important;line-height: 30px;}
</style>
<div style="margin-top: -25px;float: right;">
<a href="my.php?item=threads" title="我的帖子" class="xi2">我的帖子</a><span class="pipe">|</span><a href="search.php?srchfrom=604800&searchsubmit=yes" title="最新回复" class="xi2">最新回复</a>
</div>
<div class="tlb_show">
<div class="com-1">
<div class="com-1-top">
<span>精彩图片</span>
</div>
<ul id="pub_slideplay">
{eval request('仿火狼_精彩图片');}
</ul>
<script type="text/javascript">new dk_slideplayer("#pub_slideplay",{width:"100%",height:"213px",fontsize:"12px",time:"5000"});</script>
</div>
<div class="com-2">
<div id="tb_" class="tlb-top">
<ul>
<li id="tb_1" onmouseover="x:HoverLi(1);" class="tlb-hover">最新帖子</li>
<li id="tb_2" onmouseover="x:HoverLi(2);" class="tlb-normal">最新回复</li>
<li id="tb_3" onmouseover="x:HoverLi(3);" class="tlb-normal">本周热门</li>
<li id="tb_4" onmouseover="x:HoverLi(4);" class="tlb-normal">精华帖子</li>
<li id="tb_5" onmouseover="x:HoverLi(5);" class="tlb-normal">社区微博</li>
</ul>
</div>
<div class="icont">
<div class="tlb-dis" id="tbc_01" style="width:98%; margin: 8px auto;">
{eval request('仿火狼_最新主题');}
</div>
<div class="tlb-undis" id="tbc_02" style="width:98%; margin: 8px auto;">
{eval request('仿火狼_最新回复');}
</div>
<div class="tlb-undis" id="tbc_03" style="width:98%; margin: 8px auto;">
{eval request('仿火狼_本周热门');}
</div>
<div class="tlb-undis" id="tbc_04" style="width:98%; margin: 8px auto;">
{eval request('仿火狼_精华帖子');}
</div>
<div class="tlb-undis" id="tbc_05" style="width:98%; margin: 8px auto;">
{eval request('仿火狼_帖子微博');}
</div>
</div>
</div>
<div class="com-3">
<div id="tb_" class="tlb-topm">
<ul>
<li id="tbm_1" onmouseover="x:HoverLim(1);" class="tlb-hover1">明星</li>
<li id="tbm_2" onmouseover="x:HoverLim(2);" class="tlb-normal1">活跃</li>
<li id="tbm_3" onmouseover="x:HoverLim(3);" class="tlb-normal1">财神</li>
</ul>
</div>
<div class="tlb-dism" id="tbcm_01" style="width: 181px;height: 213px;">
{eval request('会员排行_状元');}{eval request('会员排行_榜眼');}{eval request('会员排行_探花');}
</div>
<div class="tlb-undism" id="tbcm_02" style="width:98%; margin: 8px auto;background:url([img]http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png[/img]) 0px 0px no-repeat;">
{eval request('仿火狼_积分飙升榜');}
</div>
<div class="tlb-undism" id="tbcm_03" style="width:98%; margin: 8px auto;background:url([img]http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png[/img]) 0px 0px no-repeat;">
{eval request('仿火狼_金币飙升榜');}
</div>
</div>
</div>
{eval request('仿火狼_新会员');}
<!--我的首页调用end-->[/code]我的调用代码 另外添加三个数据调用
会员排行_状元[code][node]
[show=1]<div class="zhuangyuan" style="padding-top: 23px;background: url(http://mc0713.66rt.com/attachments/day_180805/1808051007490a42944ac813cf.gif) no-repeat scroll 0px 0px rgb(190,224,251);"><strong style="float: right;margin-top: -23px;margin-right: 135px;">状元</strong><div style="margin-right: 10px; float: left;">{avatarsmall}</div><div style="background: rgb(222,235,251);height: 48px;"><p>用户名:{member}</p><p>发帖数:{value} 篇</p></div></div>[/show]
[/node][/code]会员排行_榜眼[code][node]
[show=2]<div class="bangyan" style="padding-top: 23px;background: url(http://mc0713.66rt.com/attachments/day_180805/180805100791b087f43ebc2c0b.gif) no-repeat scroll 0px 0px rgb(245,190,251);"><strong style="float: right;margin-top: -23px;margin-right: 135px;">榜眼</strong><div style="margin-right: 10px; float: left;">{avatarsmall}</div><div style="background: rgb(252,224,251);height: 48px;"><p>用户名:{member}</p><p>发帖数:{value} 篇</p></div></div>[/show]
[/node][/code]会员排行_探花[code][node]
[show=3]<div class="tanhua" style="padding-top: 23px;background: url(http://mc0713.66rt.com/attachments/day_180805/1808051007172a314dc49c3ce1.gif) no-repeat scroll 0px 0px rgb(251,229,190);"><strong style="float: right;margin-top: -23px;margin-right: 135px;">探花</strong><div style="margin-right: 10px; float: left;">{avatarsmall}</div><div style="background: rgb(251,244,229);height: 48px;"><p>用户名:{member}</p><p>发帖数:{value} 篇</p></div></div>[/show]
[/node][/code] 应该没什么问题了,你按我说的试一下吧
页:
[1]