Changing Username's to link directly to profile page

thunderup

Active member
Okay, so I have noticed one thing that is a tad annoying with my XenForo (personal preference)

When you click a user's avatar, it will pop up their membercard , which is great.
However, when you click on their username (the link next to the avatar) it will still link to the membercard...

Is there a way to modify this so that the avatar still does link to the member card, but the username/link will go directly to their profile page?

Thanks!
 
Are you referring to in the postbit/message user info?

If you are, open up template message_user_info
Find:
Code:
<xen:username user="$user" itemprop="name" rich="true" />

Replace:
Code:
<xen:username user="$user" itemprop="name" rich="true" class="NoOverlay" />
 
The username link in the postbit, and on the profile page comments... As well as on the main page with the latest post in each board (on the right side box where it shows the newest post in each board)
 
OK well you'd have to do template edits, see my post above for the postbit one.
For profile post comments, open profile_post_comment and
Find:
Code:
<xen:username user="$comment" class="poster" />

Replace:
Code:
<xen:username user="$comment" class="poster NoOverlay" />

Latest poster you want to open node_forum_level_2 and
Find:
Code:
<xen:username user="$forum.lastPost" />

Replace:
Code:
<xen:username user="$forum.lastPost" class="NoOverlay" />

You get the idea... apply class="NoOverlay" to every <xen:username /> tag.
 
OK well you'd have to do template edits, see my post above for the postbit one.
For profile post comments, open profile_post_comment and
Find:
Code:
<xen:username user="$comment" class="poster" />

Replace:
Code:
<xen:username user="$comment" class="poster NoOverlay" />

Latest poster you want to open node_forum_level_2 and
Find:
Code:
<xen:username user="$forum.lastPost" />

Replace:
Code:
<xen:username user="$forum.lastPost" class="NoOverlay" />

You get the idea... apply class="NoOverlay" to every <xen:username /> tag.

Legit, the postbit one works properly... However for profile post comments it still does the membercard popup
 
Admin CP -> Appearance -> Templates -> message_simple

Rich (BB code):
					</xen:hook>
				</xen:contentcheck>
			</ul>
		</xen:if>

		<div class="messageContent">
			<xen:username user="$message" class="poster NoOverlay" />
			<article><blockquote class="ugc baseHtml{xen:if $message.isIgnored, ' ignored'}">{xen:helper bodyText, $message.message}</blockquote></article>
		</div>

		{xen:raw $messageAfterTemplate}
	</div>
</li>
 
Top Bottom