MyBB Community Forums

Full Version: My profile link
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There was a tutorial at LearnMyBB regarding this, but again, it closed. Sad

So what I want is a piece of code that leads to the user's profile.
Sorry, faviouz, I don't think there's a variable to do that. I think you could modify global.php to create a new one but I'm not sure.
Try this:
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>
(2010-06-12, 11:10 PM)x-Treme Wrote: [ -> ]Try this:
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>

Huh. I didn't know it could work like that Toungue
I was absolutely sure there was something for this, because I saw this once on LearnMyBB before it closed.

And thanks x-Treme! Toungue
You're welcome
(2010-06-12, 11:21 PM)computergeek67 Wrote: [ -> ]
(2010-06-12, 11:10 PM)x-Treme Wrote: [ -> ]Try this:
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>

Huh. I didn't know it could work like that Toungue

We all learn something new every day =].