爱秀代码's Archiver

麻城生活网 发表于 2018-9-6 11:25

求助关于仿火狼首页N格的一个问题

[i=s] 本帖最后由 麻城生活网 于 2018-9-6 11:40 编辑 [/i]

[attach]282[/attach]
论坛内有设置精华帖子,首页调用精华帖子项没数据,我把精华帖子调用数据代码贴出来,大家帮忙看看[url]http://mc0713.66rt.com[/url]哪里出了问题[code]<ul>
[node]<li><span>[{author}]</span>
<a href="/thread-{tid}-1-1.html"
title="标题:{subject_full}
作者:{author_nolink}
时间:{dateline}
浏览:{views}次
回复:{replies}次
回复:{lastposter_nolink}"{subject}</a></li> [/node]
</ul>[/code]discuz模板里的代码:[code]<!--我的首页调用begin-->
<div class="tongji_a">
<div id="tongji">
&nbsp;&nbsp;<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(http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png) 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(http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png) 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(http://mc0713.66rt.com/attachments/day_180826/1808261212fe2b808e6836ead1.png) 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(http://mc0713.66rt.com/attachments/day_180826/1808261212778231771a969f54.jpg); }
.tlb-hover { background-repeat: no-repeat; color: #ff6600; font-weight: bold; background-image: url(http://mc0713.66rt.com/attachments/day_180826/180826121220ef34fdfa300ecf.jpg); }
.tlb-normal1 { background-repeat: no-repeat; color: #336699; font-weight: bold; background-image: url(http://mc0713.66rt.com/attachments/day_180826/1808261212d59adc55799d54d6.jpg); }
.tlb-hover1 { background-repeat: no-repeat; color: #ff6600; font-weight: bold; background-image: url(http://mc0713.66rt.com/attachments/day_180826/18082612126b1a3132a7b4f377.jpg); }
.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(http://mc0713.66rt.com/attachments/day_180826/1808261212585d5f1e008ed78b.gif) repeat-x; }
.tlb_show .txt span { float: right; color: #07519a; }
.icont li{position:relative;background:url(http://mc0713.66rt.com/attachments/day_180826/1808261212585d5f1e008ed78b.gif) 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(http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png) 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 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(http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png) 0px 0px no-repeat;">
{eval request('仿火狼_积分飙升榜');}
</div>

<div class="tlb-undism" id="tbcm_03" style="width:98%; margin: 8px auto;background:url(http://mc0713.66rt.com/attachments/day_180805/18080510262890c5fffa02d19b.png) 0px 0px no-repeat;">
{eval request('仿火狼_金币飙升榜');}
</div>
</div>
</div>
{eval request('仿火狼_新会员');}
<!--我的首页调用end-->[/code]

icode 发表于 2018-9-6 11:29

数据调用那里不要改名,一定要是       仿火狼_精华帖子

麻城生活网 发表于 2018-9-6 11:33

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=642&ptid=72]2#[/url] [i]icode[/i] [/b]


    [attach]283[/attach]

没有改,这怎么回事呢?

麻城生活网 发表于 2018-9-6 11:40

[i=s] 本帖最后由 麻城生活网 于 2018-9-6 12:11 编辑 [/i]

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=642&ptid=72]2#[/url] [i]icode[/i] [/b]


    谢谢无界兄的提示,我的问题解决了,导致精华帖子不调用的原因是我没选取调用版块{:3_63:}


但我选取了版块好像调用的帖子不对,这是怎么回事呢

麻城生活网 发表于 2018-9-6 11:43

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=642&ptid=72]2#[/url] [i]icode[/i] [/b]


    无界兄你能帮我看看之前我发帖求助的一个问题吗?
[url]http://icode.258club.com/thread-52-1-1.html[/url]

icode 发表于 2018-9-6 15:14

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=645&ptid=72]5#[/url] [i]麻城生活网[/i] [/b]


    排行三甲的数据调用里有一句代码[code]margin-top: -20px;[/code]改为[code]margin-top: -23px;[/code]三个都要改

麻城生活网 发表于 2018-9-6 17:44

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=646&ptid=72]6#[/url] [i]icode[/i] [/b]


    好的,谢谢你,我去改一下!

麻城生活网 发表于 2018-9-6 17:46

[b]回复 [url=http://icode.258club.com/redirect.php?goto=findpost&pid=646&ptid=72]6#[/url] [i]icode[/i] [/b]


    问题解决了,感激不尽,真的谢谢了!

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.