Discuz! 论坛官方 » Discuz!插件Hack » 首页美化+横排[ForDZ6.1.0]有更新
头衔 Conqueror
星级
彼岸
安装前请备份相关文件......由于安装不成功造成的一切事故本人概不负责 第一次发这个....希望高手多多指教哦.
先看演示: 演示.jpg (64.67 KB) 2008-4-25 10:42 地址:不写了......不想被以为是AD
说明: 1.横排时必须将其横排数设置为3,超过3错位的不要怪我额. 2.修改不尽完美,左边显示的"版块"2字太靠左,可能需要调整CSS. 3.版块名称;版块描叙;版主列表;子版块显示,不能超过3行,否则错位(此问题有办法可以解决,这个留后说明) 4.因为修改删除了有无新帖图标,只显示版块LOGO,所以必须要设置版块LOGO图
.forumlist th { padding-left: 55px !important; } .forumlist tbody th { background-image: url({IMGDIR}/forum.gif); background-repeat: no-repeat; background-position: 13px 50%; } .forumlist tbody th.new { background-image: url({IMGDIR}/forum_new.gif); }
.forumlist td.lastpost { width: 260px; }
.forumlist td.lastpost { width: 320px; }
<th>{lang forum_name}</th> <td class="nums">{lang forum_threads}</td> <td class="nums">{lang forum_posts}</td> <td class="lastpost">{lang forum_lastpost}</td> </tr> </thead> <!--{loop $cat[forums] $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <tbody id="forum$forum[fid]"> <tr> <th$forum[folder]> $forum[icon] <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2> <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}--> <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}--> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}--> </th> <td class="nums">{if $forum['redirect']}--{else}$forum[threads]{/if}</td> <td class="nums">{if $forum['redirect']}--{else}$forum[posts]{/if}</td> <td class="lastpost"> <!--{if $forum['permission'] == 1}--> {lang private_forum} <!--{else}--> <!--{if $forum['redirect']}--> -- <!--{elseif is_array($forum['lastpost'])}--> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 40)}</a> <cite>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite> <!--{else}--> {lang never} <!--{/if}--> <!--{/if}--> </td> </tr> </tbody> <!--{/loop}--> <!--{else}--> <tr> <!--{loop $cat['forums'] $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}--> </tr></tbody> <!--{if $forum['orderid'] < $cat['forumscount']}--> <tbody><tr> <!--{/if}--> <!--{/if}--> <th width="$cat[forumcolwidth]"{$forum[folder]}> <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: $forum[todayposts])</em><!--{/if}--></h2> <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p> <!--{if $forum['permission'] == 1}--> <p>{lang private_forum} <!--{else}--> <p>{lang forum_lastpost}: <!--{if is_array($forum['lastpost'])}--> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a> {lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> <!--{else}--> {lang never} <!--{/if}--> </p> <!--{/if}--> </th> <!--{/loop}--> $cat['endrows'] <!--{/if}--> </table> </div>
<th>{lang forum_name}</th> <td class="lastpost">{lang forum_lastpost}</td> </tr> </thead> <!--{loop $cat[forums] $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <tbody id="forum$forum[fid]"> <tr> <th$forum[folder]> $forum[icon] <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><!--{/if}--></h2> <!--{if $forum[description]}--><p>$forum[description]</p><!--{/if}--> <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}--> <!--{if $forum['moderators']}--><!--{if $moddisplay == 'flat'}--><p class="moderators">{lang forum_moderators}: $forum[moderators]</p><!--{else}--><span class="dropmenu" id="mod$forum[fid]" onmouseover="showMenu(this.id)">{lang forum_moderators}</span><ul class="moderators popupmenu_popup" id="mod$forum[fid]_menu" style="display: none">$forum[moderators]</ul><!--{/if}--><!--{/if}--> </th> <td class="lastpost"> <!--{if $forum['permission'] == 1}--> {lang private_forum} <!--{else}--> <!--{if $forum['redirect']}--> -- <!--{elseif is_array($forum['lastpost'])}--><cite>帖子:<font color=red title="{lang index_today}">$forum[todayposts]</font> <font color=green title="{lang forum_threads}"> / $forum[threads]</font> <font color=green title="{lang forum_posts}">/ $forum[posts] 帖</font></cite> 标题:<a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 45)}</a> <cite>回复:{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--> - $forum[lastpost][dateline]</cite> <!--{else}--> {lang never} <!--{/if}--> <!--{/if}--> </td> </tr> </tbody> <!--{/loop}--> <!--{else}--> <tr> <!--{loop $cat['forums'] $forumid}--> <!--{eval $forum=$forumlist[$forumid];}--> <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}--> </tr></tbody> <!--{if $forum['orderid'] < $cat['forumscount']}--> <tbody><tr> <!--{/if}--> <!--{/if}--> <th width="$cat[forumcolwidth]"{$forum[folder]}>{$forum[icon]} <h2><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a><em>(<font color=red title="{lang index_today}">$forum[todayposts]</font> <font color=green title="{lang forum_threads}"> / $forum[threads]</font> <font color=green title="{lang forum_posts}">/ $forum[posts] 帖</font>)</em></h2> <p>标题:<!--{if is_array($forum['lastpost'])}--> <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="主题标题:{eval echo cutstr($forum[lastpost][subject], 50)} ">{eval echo cutstr($forum[lastpost][subject], 30)}</a> <!--{/if}--></p> <!--{if $forum['permission'] == 1}--> <p>{lang private_forum} <!--{else}--> <p>回复:<!--{if is_array($forum['lastpost'])}-->{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author'] - $forum[lastpost][dateline] <!--{else}-->{lang anonymous}<!--{/if}--> <!--{else}--> {lang never} <!--{/if}--> </p> <!--{/if}--> </th> <!--{/loop}--> $cat['endrows'] <!--{/if}--> </table> </div>
其实这个没有任何技术含量,大家都可以改,想改成什么样子就改成什么样子额....发出来大家一起学习下吧,不发附件了,免得出问题怪我....
搜索更多相关主题的帖子: 首页 演示
查看详细资料
TOP
头衔 Newbie
头衔 Member
查看个人网站
昵称: RoBotCNC
头衔 Forum Legend
Administrator