1. 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

Discussion in 'XenForo Questions and Support' started by toodlez, Nov 1, 2011.

  1. toodlez

    toodlez 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!
     
  2. James

    James Well-Known Member

    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" />
    
     
  3. toodlez

    toodlez Active Member

    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)
     
  4. James

    James Well-Known Member

    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.
     
  5. toodlez

    toodlez Active Member

    Legit, the postbit one works properly... However for profile post comments it still does the membercard popup
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
    James likes this.
  7. James

    James Well-Known Member

    I didn't test them, I just assumed. My bad!
     

Share This Page