News Ticker
  • “We cannot expect people to have respect for law and order until we teach respect to those we have entrusted to enforce those laws.” ― Hunter S. Thompson
  • “And I can fight only for something that I love
  • love only what I respect
  • and respect only what I at least know.” ― Adolf Hitler
  •  Click Here To Watch Latest Movie secret-superstar (2017) 

Welcome to Funday Urdu Forum

Guest Image

Welcome to Funday Urdu Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of Funday Urdu Forum by signing in or creating an account via default Sign up page or social links such as: Facebook, Twitter or Google.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
  • Upload or Download IPS Community files such as:  Applications, Plugins etc.
  • Upload or Download your Favorite Books, Novels in PDF format. 

Sign in to follow this  
Followers 0
ADMIN

IPS4-Tutorial
Fix Group Formatting on Userlink

Rate this topic

1 post in this topic

Invision Power Board had already implemented the code into their system but somewhere along the lines the code got broken and before long you needed a plugin to fix it.

This fix however is really simple and doesnt require any plugins, it fixes the userlink formatting pretty much all over the website.

Step 1:

Go to the theme you want to implement the fix to, and select the HTML Template "userLink"

its found under core > front > global

Step 2:

Replace the entire code in "userLink" with the following below

{{if $member->member_id AND \IPS\Member::loggedIn()->canAccessModule( \IPS\Application\Module::get( 'core', 'members' ) ) }}<a href='{{if $warningRef}}{$member->url()->setQueryString( 'wr', $warningRef )}{{else}}{$member->url()}{{endif}}' data-ipsHover data-ipsHover-target='{$member->url()->setQueryString( array( 'do' => 'hovercard', 'wr' => $warningRef, 'referrer' => urlencode( \IPS\Request::i()->url() ) ) )}' title="{lang="view_user_profile" sprintf="$member->name"}" class="ipsType_break">{$member->group['prefix']|raw}{$member->name}{$member->group['suffix']|raw}</a>{{endif}}

 

and your done just reload your forum and you will see the difference

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Forum Statistics

    1,751
    Total Topics
    7,724
    Total Posts