Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] X3.0横排美化,显示版主,申请版主,最后发表主题,版块简介

[复制链接]
kernel_、 发表于 2013-5-22 13:02:03 | 显示全部楼层 |阅读模式
插件发布
插件名称: 驻马店论坛横排美化 for X3.0
插件来源: 原创插件
适用版本: Discuz! X3
语言编码: GBK简体 
最后更新时间: 2013-05-22
插件作者: zmd6.com
插件简介: 驻马店论坛横排美化
本帖最后由 kernel_、 于 2013-8-5 16:30 编辑

老规矩先上效果图:
1.美化头部会员信息:
修改代码:template/您的模板文件夹/forum/discuz.htm
找打代码:<p class="chart z">{lang index_today}:大约在40行
修改为:
  1. <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">| </span><img src="{IMGDIR}/yestoday.gif" alt="昨日贴数" style="position:relative; top:4px;">  <em>$postdata[0]</em><span class="pipe"> | </span><img src="{IMGDIR}/replay.gif" alt="总贴数" style="position:relative; top:4px;">  <em>$posts</em><span class="pipe"> | </span><img src="{IMGDIR}/members.gif" alt="会员数" style="position:relative; top:4px;">  {lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe"> | </span><img src="{IMGDIR}/welcome.gif" alt="欢迎新会员" style="position:relative; top:4px;">  </span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p><span class="Apple-tab-span" style="white-space: pre; ">                        </span><div class="y">
复制代码
把下面的图标另存为上传到你正在使用模板下存放图片的文件夹内
不知道默认图片文件夹在哪?没关系,等你修改完上传到服务器后会显示不出图片,点击红叉右击属性,属性里面会有路径。上传到那个路径就ok了。
所有的图片素材都会包含在附件文件夹内。
                                 
效果图:


2.美化横排显示版块简介
添加显示版主,没有版主是显示申请版主:
找到下面的代码:
  1. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  2.                                                                         <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
复制代码
在下面添加:                                                                       

其中  http://xxx 修改成自己的申请版主地址,<img src="template/comiis_x3dfmh/comiis_pic/banzhu.png" 图片在附件素材包里面你把图片上传到哪里就填写哪个地址。
添加显示最后发表的主题和版块简介:
找到:
  1. <dd>
  2.                                                                         <!--{if $forum['permission'] == 1}-->
  3.                                                                                 {lang private_forum}
  4.                                                                         <!--{else}-->
  5.                                                                                 <!--{if $forum['redirect']}-->
  6.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  7.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  8.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  9.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  10.                                                                                         <!--{else}-->
  11.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  12.                                                                                         <!--{/if}-->
  13.                                                                                 <!--{else}-->
  14.                                                                                         {lang never}
  15.                                                                                 <!--{/if}-->
  16.                                                                         <!--{/if}-->
  17.                                                                         </dd>
复制代码
修改成:
  1. <dd>
  2.                                                                         <!--{if $forum[description]}--><p class="xg2"><font color="#007500"><!-- 本版简介: -->$forum[description]</p></font><!--{/if}-->
  3.                                     <dd><!-- 最后发表:  --><!--{if is_array($forum['lastpost'])}--><a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="template/comiis_x3dfmh/comiis_pic/new.gif" /><font color="#6C3365">{echo cutstr($forum[lastpost][subject], 30)}</font></a><!--去掉时间by用户-->
  4.                                                                      <!--{else}-->
  5.                                                                              {lang never}
  6.                                                                                 <!--{/if}-->

  7.                                                                         </dd>
复制代码
其中<img src="template/comiis_x3dfmh/comiis_pic/new.gif" />这个图片的地址和上个一样,都在附件素材包里面,上传到哪填写哪里的地址。

ok,大功告成,下面附上效果图:


演示站点:www.zmd6.com
附件有图片素材和懒人包,不想手动修改直接下载附件上传到服务器即可。








本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
1314学习网 发表于 2013-5-22 13:54:16 | 显示全部楼层
前排支持下
回复

使用道具 举报

可爱的轩轩 发表于 2013-5-22 14:21:04 | 显示全部楼层
好多人找横排 这里有了
回复

使用道具 举报

 楼主| kernel_、 发表于 2013-5-22 14:39:12 | 显示全部楼层
本帖最后由 kernel_、 于 2013-5-22 14:41 编辑

版块简介修改颜色:
<!--{if $forum[description]}--><p class="xg2"><font color="#007500"><!-- 本版简介: -->$forum[description]</p></font><!--{/if}-->
红色字体是增加的代码。其中color="#007500" 可以自己修改,按照html颜色代码表修改成自己喜欢的颜色。百度一下html字体颜色代码表。


修改最后发表主题颜色:
                                    <dd><!-- 最后发表:  --><!--{if is_array($forum['lastpost'])}--><a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost"><img src="template/comiis_x3dfmh/comiis_pic/new.gif" /><font color="#FF0080">{echo cutstr($forum[lastpost][subject], 30)}</font></a><!--去掉时间by用户-->


找到上面的代码添加红色的部分。

附上效果图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

277438786 发表于 2013-5-22 18:22:29 | 显示全部楼层
很高兴见到我找了几天的东西,真的很感谢。可是我按照楼主的教程反复试了好几次,皆未成功。起初以为是我用了恩斯道的魔板,但就算我修改了默认的也不见简介出现,所以恳请哪位高手真诚帮助呢?
回复

使用道具 举报

277438786 发表于 2013-5-22 18:23:08 | 显示全部楼层
我的暂用域名:http://samy5000.web067.host666.net
回复

使用道具 举报

277438786 发表于 2013-5-22 18:24:57 | 显示全部楼层
我的QQ277438786很希望得到您的帮助,老乡
回复

使用道具 举报

 楼主| kernel_、 发表于 2013-5-22 21:53:33 | 显示全部楼层
277438786 发表于 2013-5-22 18:24
我的QQ277438786很希望得到您的帮助,老乡

我的扣扣是35257286  上班时间周一到周五9:00-17:00   在正确的时间联系我我帮你。
回复

使用道具 举报

dddgm 发表于 2013-5-22 23:47:21 | 显示全部楼层
支持下 支持
回复

使用道具 举报

空间克隆 发表于 2013-5-23 10:05:49 | 显示全部楼层
不错 !!支持一下~~·
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-26 22:37 , Processed in 0.103762 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表