• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Changing Username's to link directly to profile page

toodlez

Active member
#1
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!
 

James

Well-known member
#2
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" />
 

toodlez

Active member
#3
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)
 

James

Well-known member
#4
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.
 

toodlez

Active member
#5
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
 

Jake Bunce

XenForo moderator
Staff member
#6
Admin CP -> Appearance -> Templates -> message_simple

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>