本帖最后由 popuppp 于 2013-4-1 20:47 编辑
网址演示:驻马店论坛 http://bbs.zmd5.com/
图片演示:
X2.5美化前(3.0修改待正式版本发布后提供)
X2.5美化后
修改方法(说明:下方中压缩包中有修改好的懒人包,可以直接覆盖)
打开 template/default/forum中的viewthread_node.htm文件(或你默认风格的此文件)
搜索:- <!--{if $post['invisible'] == 0}-->
- <div id="p_btn" class="mtw mbm cl">
- <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
- <div class="tshare cl">
- <strong>{lang viewthread_share_to}:</strong>
- <!--{hook/viewthread_share_method}-->
- </div>
- <!--{/if}-->
- <!--{if !$post['anonymous'] && helper_access::check_module('follow')}-->
- <a href="home.php?mod=spacecp&ac=follow&op=relay&tid=$_G[tid]&from=forum" id="k_relay" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('relaynumber').innerHTML + ' {lang activity_member_unit}{lang thread_realy}'"><i><img src="{IMGDIR}/rt.png" alt="{lang thread_realy}" />{lang thread_realy}<span id="relaynumber">{$_G['forum_thread']['relay']}</span></i></a>
- <!--{/if}-->
- <!--{if !$_G['forum']['disablecollect'] && helper_access::check_module('collection')}-->
- <a href="forum.php?mod=collection&action=edit&op=addthread&tid=$_G[tid]" id="k_collect" onclick="showWindow(this.id, this.href);return false;" onmouseover="this.title = $('collectionnumber').innerHTML + ' {lang activity_member_unit}{lang collection}'"><i><img src="{IMGDIR}/collection.png" alt="{lang thread_share}" />{lang collection}<span id="collectionnumber">{$post['releatcollectionnum']}</span></i></a>
- <!--{/if}-->
- <!--{if helper_access::check_module('share')}-->
- <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>
- <!--{/if}-->
- <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>
- <!--{if ($_G['group']['allowrecommend'] || !$_G['uid']) && $_G['setting']['recommendthread']['status']}-->
- <!--{if !empty($_G['setting']['recommendthread']['addtext'])}-->
- <a id="recommend_add" href="forum.php?mod=misc&action=recommend&do=add&tid=$_G[tid]&hash={FORMHASH}" {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>
- <!--{/if}-->
- <!--{if !empty($_G['setting']['recommendthread']['subtracttext'])}-->
- <a id="recommend_subtract" href="forum.php?mod=misc&action=recommend&do=subtract&tid=$_G[tid]&hash={FORMHASH}" {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>
- <!--{/if}-->
- <!--{/if}-->
- <!--{if $_G['group']['raterange'] && $post['authorid']}-->
- <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>
- <!--{/if}-->
- <!--{hook/viewthread_useraction}-->
- </div>
- <!--{/if}-->
- <!--{/if}-->
复制代码 修改为:- <link href="popuppp_img/css.css" type="text/css" rel="stylesheet">
- <div class="read_appbtn_wrap">
- <a role="button" rel="nofollow" href="home.php?mod=spacecp&ac=favorite&type=thread&id=$_G[tid]" class="icon_read_like J_like_btn J_qlogin_trigger" id="k_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" onmouseover="this.title = $('favoritenumber').innerHTML + ' {lang activity_member_unit}{lang thread_favorite}'" >
- <span>喜欢</span><em class="J_like_count">{$_G['forum_thread']['favtimes']}</em>
- </a>
-
- <!--{if $_G['group']['raterange'] && $post['authorid']}-->
-
- <a role="button" rel="nofollow" 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}" class="icon_read_mark J_plugin_read_mark" ><span>评分</span><em>{echo count($postlist[$post[pid]][totalrate]);}</em></a>
-
- <!--{/if}-->
- </div>
- <!--{if $post['invisible'] == 0}-->
- <div id="p_btn" class="mtw mbm cl">
- <!--{if !empty($_G['setting']['pluginhooks']['viewthread_share_method'])}-->
- <div class="tshare cl">
- <strong>{lang viewthread_share_to}:</strong>
- <!--{hook/viewthread_share_method}-->
- </div>
- <!--{/if}-->
-
- <!--{hook/viewthread_useraction}-->
- </div>
- <!--{/if}-->
- <!--{/if}-->
复制代码 将附件下载解压后得到文件夹 popuppp_img 上传到论坛根目录,然后更新缓存即可。
AD:由恒泰华生产充气蹦床公司提供文章
|