多语言展示
当前在线:1529今日阅读:27今日分享:41

Discuz常用技巧:[15]用户栏放在右侧

应dz站长邀请,做个用户阅读页面用户信息栏放在右侧,以下小编就介绍如何把dz用户栏放在右侧
工具/原料

dreamweaver,discuz

方法/步骤
1

首先在default/forum文件夹里面找到viewthread_node.htm,如图所示

2

用dreamweaver打开这个文件,此次修改需要两步,我们先把用户上面的部分做好,找到如下代码

$post[newpostanchor] $post[lastpostanchor]
$post[author]$authorverifys
{lang member_avatar_banned}
{eval viewthread_profile_node('left', $post);}
$_G[setting][anonymoustext] $post[useip] $_G[setting][anonymoustext]$_G[setting][anonymoustext] $post[author] {lang member_deleted}

IP {lang edit} {lang ban_member} {lang ban_member} {lang posts} {lang clear}

4

我们把上面的代码放到如下图所示的下面,折叠部分的代码为 style="width:100%">

style="height:48px">
{lang thread_redirect_postno_tips}
{lang warn_get} {lang from} {$post[number]}{$postnostick} {lang recommend} $postno[$post[number]] {$post[number]}{$postno[0]}
{echo avatar($post['authorid'], 'small')}  {lang thread_author}| $post[author]$authorverifys {lang poston} $post[dateline] {$_G['setting']['mobile']['mobilecomefrom']}{lang from_mobile} | {lang thread_show_author} {lang thread_show_all} $post[author]  {lang poston} $post[dateline] $_G[setting][anonymoustext]  {lang poston} $post[dateline] |{lang view_bigpic} {lang replycredit} |{lang post_descview} |{lang post_ascview} |{lang read_mode}

{lang replycredit} +{$post['replycredit']} {$_G['setting']['extcredits'][$_G['forum_thread']['replycredit_rule']['extcreditstype']][unit]}{$_G['setting']['extcredits'][$_G['forum_thread']['replycredit_rule']['extcreditstype']][title]}

{lang collection_related}

  • · $var[name]|{lang collection_threadnum}: $var[threadnum], {lang collection_follow}: $var[follownum]
  • · {lang more}
{lang collection_fromctid}
1 2 3 4 5  

推荐信息