分享贴内左侧会员资料美化代码
先看修改后效果:[attach]25895[/attach]
不喜勿喷!
修改方法:
1、按图先勾去“帖子内容页”贴内左侧的信息显示,提交。
[attach]25896[/attach]
2、打开viewthread_node.htm模板编辑,找到[code]<p>{eval showstars($post['stars']);}</p>[/code]替换为[code]<!--用户名显示-->
<p class="v_user"><p class="v_atten" style="width:120px; text-align:center;"><a target="_blank" href="space.php?uid=$post['authorid']" style="padding-right:20px">$post[author]</a></p></p>
<!--用户组显示-->
<p class="v_info">职务: <em style="text-decoration:none; color:#FF6600">$post[authortitle]</em></p>
<!--性别显示 -->
<p class="v_info">性别: <em style="text-decoration:none; color:#000000"><!--{if $post['gender'] == 1}-->帅哥<!--{elseif $post['gender'] == 2}-->美女<!--{else}-->未知<!--{/if}--></em></p>
<!--帖子及精华 -->
<p class="v_info">帖子: <em style="text-decoration:none; color:#000000">$post[posts] 篇</em></p>
<p class="v_info">精华: <em style="text-decoration:none; color:#000000">$post[digestposts] 篇</em></p>
<!--失踪判断 -->
<p class="v_info">失踪:<!--{eval $post[offdays] = intval(($timestamp - $post['lastactivity']) / 86400);}--> <em style="text-decoration:none; color:#000000">$post[offdays] 天</em></p>
<!--注册时间 -->
<p class="v_info">注册时间: <em style="text-decoration:none;">$post[regdate]</em></p>
<!--好友互动 -->
<p class="v_info" style="margin-top:5px"><a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" title="{lang add_to_buddylist}" onclick="ajaxmenu(this, 3000);doane(event);">加好友</a> <a href="pm.php?action=new&uid=$post[authorid]" onclick="hideMenu('userinfo$post[pid]');showWindow('sendpm', this.href);return false;" title="{lang send_pm}">打招呼</a> <!--{if $post['qq']}--><a href="http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$bbname&Menu=yes" target="_blank" title="Q他(她)一下!">Q 一下</a><!--{/if}--></p>
<!--<p class="v_atten"><a href="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes" target="_blank" id="ajax_buddy_$post['count']" title="{lang add_to_buddylist}" onclick="ajaxmenu(this, 3000);doane(event);">加好友</a></p>-->
<p style="display:none">{eval showstars($post['stars']);}</p>[/code]提交即可。
效果预览网址:
[url]http://tlb.258club.com/thread-2183-1-1.html[/url] 謝謝樓主熱心分享 感谢分享~ 感谢分享! [b]回復 [url=http://sclub.com.tw/discuz/redirect.php?goto=findpost&pid=203270&ptid=26317]1#[/url] [i]无界[/i] [/b]
不错诶!学习了 感谢分享 怎样将多余的管理员去掉? 感謝分享 我也來跟樓主學習呀 感谢分享
頁:
[1]