本帖最后由 yanli2020110 于 2011-4-5 01:05 编辑
增加了后台 > 界面 > 界面设置 > 帖子内容页 >
设置用户信息显示的位置.可自由设置显示某个选项以及上下位置. show.htm为GBK版本.如果需要转换,请另存为自己所需的编码上传即可! 修改步骤: 1.后台 > 界面 > 界面设置 > 帖子内容页 > 作者用户名显示位置: 显示在帖子内部 color=red>2.如果是默认风格的话就直接把 template static 两个文件夹传到论坛跟目录.如果是单独的风格.请自行修改相关文件. 3.打开template/default/forum/viewthread.htm(模块文件) 查找: <!--{eval $postcount = 0;}--> 在下面加入: <SCRIPT>
<!--
function flip(ud, img) {
if (ud.style.display == "block") {
ud.style.display="none";
img.src = './static/image/In-meihua/qqshow_1.gif';
}else{
ud.style.display="block";
img.src = './static/image/In-meihua/qqshow_2.gif';
}
}
// --></SCRIPT>
3.打开:template/default/forum/viewthread_node.htm
查找:
$post[newpostanchor] $post[lastpostanchor]
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<!--{if $_G['setting']['authoronleft']}-->
<div class="pi">
<div class="authi"><a href="home.php?mod=space&uid=$post['authorid']" target="_blank" class="xw1">$post[author]</a>$authorverifys</div>
</div>
<!--{/if}-->
<div class="p_pop blk bui" id="userinfo$post[pid]" style="display: none; {if $_G['setting']['authoronleft']}margin-top: -11px;{/if}">
<div class="m z">
<div id="userinfo$post[pid]_ma"></div>
<ul>
<li class="pm2"><a href="home.php?mod=spacecp&ac=pm&op=showmsg&handlekey=showmsg_$post[authorid]&touid=$post[authorid]&pmid=0&daterange=2&pid=$post[pid]" title="{lang send_pm}">{lang send_pm}</a></li>
<!--{if $post[authorid] != $_G[uid]}-->
<li class="buddy"><a href="home.php?mod=spacecp&ac=friend&op=add&uid=$post[authorid]&handlekey=addfriendhk_{$post[authorid]}" id="a_friend_li_{$post[pid]}">{lang add_to_buddylist}</a></li>
<!--{/if}-->
</ul>
<!--{if $_G['setting']['magicstatus']}-->
<!--{if !empty($_G['setting']['magics']['showip'])}-->
<img src="{STATICURL}/image/magic/showip.small.gif" class="vm" /> <a href="home.php?mod=magic&mid=showip&idtype=user&id={echo rawurlencode($post[author])}" id="a_showip_li_{$post[pid]}">$_G['setting']['magics']['showip']</a><br />
<!--{/if}-->
<!--{if !empty($_G['setting']['magics']['checkonline']) && $post['authorid'] != $_G['uid']}-->
<img src="{STATICURL}/image/magic/checkonline.small.gif" class="vm" /> <a href="home.php?mod=magic&mid=checkonline&idtype=user&id={echo rawurlencode($post[author])}" id="a_repent_$post[pid]">$_G['setting']['magics']['checkonline']</a><br />
<!--{/if}-->
<!--{hook/viewthread_magic_user $postcount}-->
<!--{/if}-->
<!--{hook/viewthread_profileside $postcount}-->
</div>
<div class="i y">
<div>
<strong><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[author]</a></strong>
<!--{if $_G['setting']['vtonlinestatus'] && $post['authorid']}-->
<!--{if ($_G['setting']['vtonlinestatus'] == 2 && $_G[forum_onlineauthors][$post[authorid]]) || ($_G['setting']['vtonlinestatus'] == 1 && (TIMESTAMP - $post['lastactivity'] <= 10800) && !$post['authorinvisible'])}-->
<em>{lang online}
<!--{else}-->
<em>{lang offline}
<!--{/if}-->
</em>
<!--{/if}-->
</div>
<dl class="cl"><!--{eval @eval('echo "'.$customauthorinfo[2].'";');}--></dl>
<div class="imicn">
<!--{if $post['qq']}--><a href="[url=http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G[]http://wpa.qq.com/msgrd?V=1&Uin=$post[qq]&Site=$_G['setting']['bbname']&Menu=yes[/url]" target="_blank" title="QQ"><img src="{IMGDIR}/qq.gif" alt="QQ" /></a><!--{/if}-->
<!--{if $post['icq']}--><a href="[url=http://wwp.icq.com/scripts/search.dll?to=$post[icq]http://wwp.icq.com/scripts/search.dll?to=$post[icq[/url]]" target="_blank" title="ICQ"><img src="{IMGDIR}/icq.gif" alt="ICQ" /></a><!--{/if}-->
<!--{if $post['yahoo']}--><a href="[url=http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg]http://edit.yahoo.com/config/send_webmesg?.target=$post[yahoo]&.src=pg[/url]" target="_blank" title="Yahoo"><img src="{IMGDIR}/yahoo.gif" alt="Yahoo!" /></a><!--{/if}-->
<!--{if $post['taobao']}--><a href="javascript:;" title="{lang taobao}"><img src="{IMGDIR}/taobao.gif" alt="{lang taobao}" /></a><!--{/if}-->
<!--{if $post['site']}--><a href="$post[site]" target="_blank" title="{lang member_homepage}"><img src="{IMGDIR}/forumlink.gif" alt="{lang member_homepage}" /></a><!--{/if}-->
<a href="home.php?mod=space&uid=$post[authorid]&do=profile" target="_blank" title="{lang member_viewpro}"><img src="{IMGDIR}/userinfo.gif" alt="{lang member_viewpro}" /></a>
<!--{hook/viewthread_imicons $postcount}-->
</div>
<div id="avatarfeed"><span id="threadsortswait"></span></div>
</div>
</div>
<!--{/if}-->
<!--{if $post['authorid'] && $post['username'] && !$post['anonymous']}-->
<div>
<!--{if $_G['setting']['bannedmessages'] & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))}-->
<div class="avatar">{lang member_avatar_banned}</div>
<!--{elseif $post['avatar'] && $showavatars}-->
<div class="avatar"><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
<!--{/if}-->
<!--{if $post[groupicon]}--><p>$post[groupicon]</p><!--{/if}-->
<p><em><a href="home.php?mod=spacecp&ac=usergroup&gid=$post[groupid]" target="_blank">{$post[authortitle]}</a></em></p>
<!--{if $post['customstatus'] && $_G['group']['allowcstatus']}--><p class="xg1">$post[customstatus]</p><!--{/if}-->
</div>
<p{if $post['upgradecredit'] !== false} id="g_up$post[pid]"{/if}><!--{eval showstars($post['stars']);}--></p>
<!--{if $post['upgradecredit'] !== false}-->
<div id="g_up$post[pid]_menu" class="g_up" style="display:none">
<div class="crly">
$post['authortitle'], {lang credits} $post['credits'], {lang thread_groupupgrade} $post['upgradecredit'] {lang credits}
</div>
<div class="mncr"></div>
</div>
<!--{/if}-->
<!--{hook/viewthread_sidetop $postcount}-->
<!--{if $customauthorinfo[1]}--><dl class="pil cl"><!--{eval @eval('echo "'.$customauthorinfo[1].'";');}--></dl><!--{/if}-->
<!--{if $post['medals']}--><p>
<!--{loop $post['medals'] $medal}-->
<img src="{STATICURL}image/common/$medal[image]" alt="$medal[name]" title="$medal[name]" />
<!--{/loop}--></p>
<!--{/if}-->
<!--{hook/viewthread_sidebottom $postcount}-->
<!--{else}-->
<div class="pi">
<!--{if !$post['authorid']}-->
<a href="javascript:;">{lang guest} <em>$post[useip]</em></a>
<!--{elseif $post['authorid'] && $post['username'] && $post['anonymous']}-->
<!--{if $_G['forum']['ismoderator']}--><a href="home.php?mod=space&uid=$post[authorid]" target="_blank">{lang anonymous}</a><!--{else}-->{lang anonymous}<!--{/if}-->
<!--{else}-->
$post[author] <em>{lang member_deleted}</em>
<!--{/if}-->
</div>
<!--{/if}-->
<!--{if $_G['group']['allowedituser'] || $_G['group']['allowbanuser'] || ($_G['forum']['ismoderator'] && $_G['group']['allowviewip'] && !$post['first'])}-->
<p>
<!--{if $_G['forum']['ismoderator'] && $_G['group']['allowviewip']}-->
<a href="forum.php?mod=topicadmin&action=getip&fid=$_G[fid]&tid=$_G[tid]&pid=$post[pid]">IP</a>
<!--{/if}-->
<!--{if $_G['group']['allowedituser']}-->
<a href="{if $_G['adminid'] == 1}admin.php?frames=yes&action=members&operation=search&uid=$post[authorid]&submit=yes{else}forum.php?mod=modcp&action=member&op=edit&uid=$post[authorid]{/if}" target="_blank">{lang edit}</a>
<!--{/if}-->
<!--{if $_G['group']['allowbanuser']}-->
<!--{if $_G['adminid'] == 1}-->
<a href="admin.php?action=members&operation=ban&username=$post[usernameenc]&frames=yes" target="_blank">{lang ban_member}</a>
<!--{else}-->
<a href="forum.php?mod=modcp&action=member&op=ban&uid=$post[authorid]" target="_blank">{lang ban_member}</a>
<!--{/if}-->
<!--{/if}-->
<a href="forum.php?mod=modcp&action=thread&op=post&do=search&searchsubmit=1&users=$post[usernameenc]" target="_blank">{lang posts}</a>
</p>
<!--{/if}-->
</td> 替换成:
{subtemplate forum/show}
|