MyBB Community Forums

Full Version: unstyled equivalent to $post['profilelink']?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to show the username of the poster without the usergroup's inline styling. Possible?
I recently did this in my showteam.php
I'll tell you how I did it.
I opened showteam.php and found this

$user['username'] = (some code that styles it)

So I added above that
$user['uname'] = $user['username'];

So it sets uname as the username before it styles it

I guess you could use the same method depending on where you want it
Do you want it to work as a link? This is just a template edit.

<span class="smalltext"><a href ="{$mybb->settings['bburl']}/member.php?action=profile&uid={$post['uid']}">{$post['username']}</a></span>
that did it! thanks
You use Google SEO, so Leefish edit may not be the best (unless only registered users will see the link, in which case it doesn't matter imo).

<?build_profile_link($post['username'], $post['uid'])?>

If you are in postbit_* templates and don't want to mess with conditionals plugin:
<span class="smalltext"><a href ="{$mybb->settings['bburl']}/{$post['profilelink_plain']}">{$post['username']}</a></span>

(Leefish code Toungue).

Edit: XD
(2012-07-05, 11:44 PM)Omar G. Wrote: [ -> ](Leefish code Toungue).

Edit: XD

See - I told you that you should do that WOL plugin - are a better coder than I am Big Grin
great, thank you as well omar!