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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[修改] 贴子内容页的一个小美化,很美的哦~~~~~~~~~~~标题要长~~~~~~~

[复制链接]
费翔他表弟 发表于 2011-7-22 21:52:06 | 显示全部楼层 |阅读模式
本帖最后由 费翔他表弟 于 2011-7-26 23:57 编辑

先看图看效果

修改后

注:我只是把分享那一排放到下面来了,后面那些贴子与本贴无关,请自己找插件去;
喜欢的拿去,要是愿意就送个IP
演示地址:http://www.jxrzhz.com/forum.php?mod=viewthread&tid=259#lastpost
风格目录里viewthread_node.php找到


  1. <div id="p_btn" class="mtw mbm cl">
  2.    <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
  3.     <div class="tshare cl">
  4.      <strong>{lang viewthread_share_to}:</strong>
  5.      <!--{hook/viewthread_share_method}-->
  6.     </div>
  7.    <!--{/if}-->
  8.    <!--{if $_G['setting']['homestatus']}-->
  9.     <a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G[tid]" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
  10.    <!--{/if}-->
  11.    <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
  12.    <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
  13.     <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
  14.     <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</span></i></a>
  15.    <!--{/if}-->
  16.    <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  17.     <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  18.    <!--{/if}-->
  19.    <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  20.     <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
  21.    <!--{/if}-->
  22.    <!--{hook/viewthread_useraction}-->
  23.   </div>
复制代码

用下面内容替换
  1. <div id="p_btn" class="mtw mbm cl">

  2. <!--{if $_G['setting']['homestatus']}-->
  3. <a href="home.php?mod=spacecp&ac=share&type=thread&id=$_G[tid]" id="k_share" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('sharenumber').innerHTML + ' {lang activity_member_unit}{lang thread_share}'"><i><img src="{IMGDIR}/oshr.png" alt="{lang thread_share}" />{lang thread_share}<span id="sharenumber">{$_G['forum_thread']['sharetimes']}</span></i></a>
  4. <!--{/if}-->
  5. <a href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'"><i><img src="{IMGDIR}/fav.gif" alt="{lang thread_favorite}" />{lang thread_favorite}<span id="favoritenumber">{$_G['forum_thread']['favtimes']}</span></i></a>
  6. <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
  7. <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate({$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_add').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][addtext]'"><i><img src="{IMGDIR}/rec_add.gif" alt="$_G['setting']['recommendthread'][addtext]" />$_G['setting']['recommendthread'][addtext]<span id="recommendv_add">$_G[forum_thread][recommend_add]</span></i></a>
  8. <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]" {if $_G['uid']}onclick="ajaxmenu(this, 3000, 1, 0, '43', 'recommendupdate(-{$_G['group']['allowrecommend']})');return false;"{else} onclick="showWindow('login', this.href)"{/if} onmouseover="this.title = $('recommendv_subtract').innerHTML + ' {lang activity_member_unit}$_G[setting][recommendthread][subtracttext]'"><i><img src="{IMGDIR}/rec_subtract.gif" alt="$_G['setting']['recommendthread'][subtracttext]" />$_G['setting']['recommendthread'][subtracttext]<span id="recommendv_subtract">$_G[forum_thread][recommend_sub]</span></i></a>
  9. <!--{/if}-->
  10. <!--{if $_G['group']['raterange'] && $post['authorid']}-->
  11. <a href="javascript:;" id="ak_rate" onclick="showWindow('rate', 'forum.php?mod=misc&action=rate&tid=$_G[tid]&pid=$post[pid]', 'get', -1);return false;" title="{echo count($postlist[$post[pid]][totalrate]);} {lang people_score}"><i><img src="{IMGDIR}/agree.gif" alt="{lang rate}" />{lang rate}</i></a>
  12. <!--{/if}-->
  13. <!--{if $post['first'] && $_G[uid] && $_G[uid] == $post[authorid]}-->
  14. <a href="misc.php?mod=invite&action=thread&id=$_G[tid]" onclick="showWindow('invite', this.href, 'get', 0);"><i><img src="{IMGDIR}/activitysmall.gif" alt="{lang invite}" />{lang invite}</i></a>
  15. <!--{/if}-->

  16. <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
  17. <div class="tshare cl">
  18. <strong>{lang viewthread_share_to}:</strong>
  19. <!--{hook/viewthread_share_method}-->
  20. </div>
  21. <!--{/if}-->



  22. <!--{hook/viewthread_useraction}-->
  23. </div>
复制代码


本帖子中包含更多资源

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

x
loveguobbs 发表于 2011-7-22 21:55:14 | 显示全部楼层
前排留名  
回复

使用道具 举报

460724213 发表于 2011-7-22 21:58:28 | 显示全部楼层
这个  这个 已经修改了啊。。。。。。。。。。。
回复

使用道具 举报

skyaaron 发表于 2011-7-22 22:15:50 | 显示全部楼层
默认的挺好啊
回复

使用道具 举报

手机堂 发表于 2011-7-23 00:09:35 | 显示全部楼层
先不用
表示支持
回复

使用道具 举报

虎林网 发表于 2011-7-23 01:41:33 | 显示全部楼层
使用了 搞定 挺好的 二排总是多余一块

演示地址:http://www.hulinwang.net/thread-29550-1-1.html
回复

使用道具 举报

huiaizj 发表于 2011-7-23 01:51:08 | 显示全部楼层
http://www.098my.com/sitemap.php
http://www.fjthy.com/sitemap.php

不错的帖子 要顶

楼主辛苦了!      
回复

使用道具 举报

DayMcc.Com 发表于 2011-7-23 08:30:21 | 显示全部楼层
支持,不错啊
回复

使用道具 举报

rozenja 发表于 2011-7-23 23:55:00 | 显示全部楼层
用了,自己懒得找了,谢谢
回复

使用道具 举报

ilei365 发表于 2011-7-24 00:20:40 | 显示全部楼层
样子不错。。。。。。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 15:41 , Processed in 0.131355 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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