希望有高手来解决一个问题 在原帖里未答复
用这个插件以后
横板紧凑后台管理插件 For D4.1 V1
地址https://discuz.dismall.com/thread-270215-1-1.html
我安装后,出现了以下情况,横版的显示正常,但是竖版的显示有无新帖的图片却跑到了最后回复处显示,怎么修改呀,但是子版的确实没有问题的?
还有就是:
竖版的能不能只显示 最后发表的时间 不出现标题
这个怎么改??????????????
两个问题 希望有高人来解决一下
下面是这个文件里面对index.htm的修改
9,index.htm 的对照与修改
index.htm 找到:
- <!--{loop $forumlist $key $forum}-->
- <!--{if $forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum'}-->
- <!--{if $key}--></tbody></table><br></div><!--{/if}-->
- <div class="maintable">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <tr><td colspan="7" class="header"><table cellspacing="0" cellpadding="0" width="100%">
- <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
- <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
- <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
- </td></tr></table></td></tr>
- <tr class="category" align="center">
- <td width="5%"> </td>
- <td width="51%">{lang forum_name}</td>
- <td width="5%">{lang forum_threads}</td>
- <td width="5%">{lang forum_posts}</td>
- <td width="5%">{lang forum_todayposts}</td>
- <td width="13%">{lang forum_lastpost}</td>
- <td width="16%">{lang forum_moderators}</td>
- </tr><tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
- <!--{elseif $forum['permission']}-->
- <tr>
- <td class="altbg1" align="center">$forum[folder]</td>
- <td class="altbg2" align="left" onMouseOver="this.className='altbg1'" onMouseOut="this.className='altbg2'">
- $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
- <br><span class="smalltxt">$forum[description]<!--{if isset($forum['subforums'])}--><br><span class="bold">{lang forum_subforums}:</span> $forum[subforums]<!--{/if}--></span></td>
- <td class="altbg1" align="center">$forum[threads]</td>
- <td class="altbg2" align="center">$forum[posts]</td>
- <td class="altbg1" align="center">$forum[todayposts]</td>
- <!--{if $forum['permission'] == 1}-->
- <td class="altbg2" align="center"><span class="smalltxt"></span>{lang private_forum}</span></td>
- <!--{else}-->
- <!--{if is_array($forum['lastpost'])}-->
- <td class="altbg2"><table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr><td align="right" class="smalltxt" title="{lang forum_lastpost_in}: $forum[lastpost][subject]" nowrap>
- $forum[lastpost][dateline]<br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></td>
- <td nowrap> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="{IMGDIR}/lastpost.gif" border="0"></a></td>
- </tr></table></td>
- <!--{else}-->
- <td class="altbg2" align="center"><span class="smalltxt">{lang never}</span></td>
- <!--{/if}-->
- <!--{/if}-->
- <td class="altbg1" align="center" style="word-break: keep-all"><span class="smalltxt">$forum[moderators]</span></td></tr>
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus || $bdaystatus == 1 || $bdaystatus == 3)}-->
- <!--{if empty($forumlist)}--><br><br><!--{else}--></table><br></div><div class="maintable"><!--{/if}-->
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <!--{/if}-->
复制代码
替换为: [点我复制代码]
- {eval $incompact = explode(',', $index_intabulae);}
- {eval $incompact1= explode(',', $index_intabulae1);}
- <!--{loop $forumlist $key $forum}-->
- <!--{if $forum['type'] == 'group' && $forumlist[($key + 1)]['type'] == 'forum'}-->
- <!--{if $key}-->
- <!--{if $fcount}--><td colspan="$fcount"> </td></tr></tbody></table><br></div>
- <!--{else}-->
- <!--{if in_array($forum[fid], array_merge($incompact,$incompact1))}--></tbody></table><br></div><!--{else}--></tr></tbody></table><br></div><!--{/if}-->
- <!--{/if}-->
- <!--{else}-->
- <!--{/if}-->
- <!--{if in_array($forum[fid], $incompact)}-->
- <div class="maintable">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <tr><td colspan="$index_fcount" class="header"><table cellspacing="0" cellpadding="0" width="100%">
- <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
- <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
- <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a></td></tr></table></td></tr>
- <tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
- <tr class="altbg2">
- {eval $fcount = $index_fcount;}
- <!--{elseif in_array($forum[fid], $incompact1)}-->
- <div class="maintable">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <tr><td colspan="$index_fcount1" class="header"><table cellspacing="0" cellpadding="0" width="100%">
- <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
- <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
- <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
- </td></tr></table></td></tr>
- <tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
- <tr class="altbg2">
- {eval $fcount = $index_fcount1;}
- <!--{else}-->
- <div class="maintable">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <tr><td colspan="6" class="header"><table cellspacing="0" cellpadding="0" width="100%">
- <tr class="smalltxt"><td class="bold"><a href="index.php?gid=$forum[fid]">$forum[name]</a></td><td align="right">
- <!--{if $forum['moderators']}--><font color="{HEADERTEXT}">{lang forum_category_modedby}: $forum[moderators]</font> <!--{/if}-->
- <a href="###" onclick="toggle_collapse('category_$forum[fid]');"><img id="category_$forum[fid]_img" src="{IMGDIR}/$forum[collapseimg]" border="0"></a>
- </td></tr></table></td></tr>
- <tr class="category" align="center">
- <td width="50%">{lang forum_name}</td>
- <td width="5%" nowrap>{lang forum_threads}</td>
- <td width="5%" nowrap>{lang forum_posts}</td>
- <td width="5%" nowrap>{lang forum_todayposts}</td>
- <td width="17%">{lang forum_lastpost}</td>
- <td width="18%">{lang forum_moderators}</td>
- </tr><tbody id="category_$forum[fid]" style="$collapse['category_'.$forum[fid]]">
- {eval $fcount = 0;}
- <!--{/if}-->
- <!--{elseif $forum['permission']}-->
- <!--{if in_array($forum[fup],$incompact)}-->
- {eval $fcount--;}
- <!--{if $fcount == -1}--></tr><tr class="altbg2">{eval $fcount = $index_fcount-1;}<!--{/if}-->
- <td width="$index_fwidth%" class="altbg2">
- <table cellpadding="0" cellspacing="3" border="0" width="100%">
- <tr>
- <td colspan="2">
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td>$forum[folder] <a href="forumdisplay.php?fid=$forum[fid]" title="$forum[description]"><span class="bold">$forum[name]</span></a></td>
- <td align="right" class=smalltxt><b>{lang forum_moderators}:</b>$forum[moderators]</td></tr></table>
- </td></tr>
- <tr>
- <td align="left" class=smalltxt><!--{if $forum['permission'] == 1}-->{lang private_forum}<!--{else}--><!--{if is_array($forum['lastpost'])}--><div style="overflow: hidden; text-overflow: ellipsis; width: 200px"> <nobr><b>{lang subject}</b>:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{lang title}:$forum['lastpost'][subject]{LF}{lang time}:$forum['lastpost'][dateline]">$forum['lastpost'][subject]</a></nobr></div><!--{else}-->{lang never}<!--{/if}--><!--{/if}--></td><td align="right">{lang forum_threads}: $forum[threads] {lang forum_posts}: $forum[posts] {lang forum_todayposts}:$forum[todayposts]</td></tr>
- </table></td>
- <!--{elseif in_array($forum[fup],$incompact1)}-->
- {eval $fcount--;}
- <!--{if $fcount == -1}--></tr><tr class="altbg2">{eval $fcount = $index_fcount1-1;}<!--{/if}-->
- <td width="$index_fwidth1%" class="altbg2" align="left" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
- <table cellpadding="3" cellspacing="0" border="0" width="100%">
- <tr>
- <td colspan="2" valign="top">
- <table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr>
- <td>$forum[folder] <a href="forumdisplay.php?fid=$forum[fid]" title="$forum[description]"><span class="bold">$forum[name]</span></a></td>
- <td align="right" class=smalltxt><b>{lang forum_moderators}:</b>$forum[moderators]</td></tr></table>
- </td></tr>
- <tr>
- <td align="left" class=smalltxt><!--{if $forum['permission'] == 1}-->{lang private_forum}<!--{else}--><!--{if is_array($forum['lastpost'])}--><div style="overflow: hidden; text-overflow: ellipsis; width: 100px"> <nobr><b>{lang subject}</b>:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{lang title}:$forum['lastpost'][subject]{LF}{lang time}:$forum['lastpost'][dateline]">$forum['lastpost'][subject]</a></nobr></div><!--{else}-->{lang never}<!--{/if}--><!--{/if}--></td><td align="right">{lang forum_threads}: $forum[threads] {lang forum_posts}: $forum[posts] {lang forum_todayposts}:$forum[todayposts]</td></tr>
- </table>
- </td>
- <!--{else}-->
- <tr>
- <td class="altbg2" align="left">
- $forum[icon]<a href="forumdisplay.php?fid=$forum[fid]"><span class="bold">$forum[name]</span></a>
- <br><span class="smalltxt">$forum[description]<!--{if $forum['subforums']}--><br><span class="bold">{lang forum_subforums}:</span> $forum[subforums]<!--{/if}--></span></td>
- <td class="altbg1" align="center">$forum[threads]</td>
- <td class="altbg2" align="center">$forum[posts]</td>
- <td class="altbg2" align="center">$forum[todayposts]</td>
- <!--{if $forum['permission'] == 1}-->
- <td class="altbg1" align="center" class="smalltxt">{lang private_forum}</td>
- <!--{else}-->
- <!--{if is_array($forum['lastpost'])}-->
- <td class="altbg1"><table cellpadding="0" cellspacing="0" border="0" width="100%">
- <tr><td class="smalltxt" nowrap>
- <div style="overflow: hidden; text-overflow: ellipsis; width: 150px"> <nobr>{lang title}: <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum['lastpost'][subject]</a></nobr></div>
- {lang author}: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang guest}<!--{/if}--><br>
- {lang time}: $forum[lastpost][dateline]</td><td align="right"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[folder]</a></td>
- </tr></table></td>
- <!--{else}-->
- <td class="altbg1" align="center" class="smalltxt">{lang never}</td>
- <!--{/if}-->
- <!--{/if}-->
- <td class="altbg2" align="center" class="smalltxt" style="word-break: keep-all">$forum[moderators]</td></tr>
- <!--{/if}-->
- <!--{/if}-->
- <!--{/loop}-->
- <!--{if empty($gid) && ($_DCACHE['forumlinks'] || $whosonlinestatus)}-->
- <!--{if empty($forumlist)}--><br><br></div><!--{else}--><!--{if $fcount}--><td colspan="$fcount"> </td><!--{/if}--></tr></tbody></table></div><div class="maintable"><!--{/if}--><br>
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="{TABLEWIDTH}" align="center" class="tableborder">
- <!--{/if}-->
复制代码
我电脑里的index.htm代码为:
问怎么改才能解决上面的两个问题
1、有无新帖的图片显示在左边 。
2、和原来一样最后回复那里 只显示时间和会员名称??
不要显示标题等这些信息 |