Posts: 2,216
Threads: 187
Joined: Jul 2011
I noticed that on SF, Omni has made it so your name is clickable and takes you to your profile, now I know all this is, is
http://www.supportforums.net/member.php?action=profile
But I was wondering how he makes it so the name is clickable? I've tried looking through my template files to figure where about it is, but couldn't, I also tried googling it. If anyone can help in anyway then I'll love you, lol.
Posts: 2,216
Threads: 187
Joined: Jul 2011
No, I don't want an extra link for the profile I want it the same as on here and HF. Do you know how to do that?
I'll be starting a new forum soon and I'm hoping to get it going good, and I want this feature on it.
Posts: 2,216
Threads: 187
Joined: Jul 2011
(08-26-2011, 10:43 AM)Ace Wrote: BreShiE he gave you the answer, if you want the username clickable you have to use that link around the username in the welcome block area.
Code:
<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>
Is the same as:
Code:
http://www.supportforums.net/member.php?action=profile
It's just that {$mybb->settings['bburl']} returns the value of the forum's board url. (Example for supportforums = http://www.supportforums.net)
And {$mybb->user['uid']} returns the users UID which is the unique identifier for the persons profile
Inside the link you have {$mybb->user['username']} which would return something like "Ace" for me.
I know it would work, and I thank him or that, but I cant find where the username part is in the template files.
Posts: 1,736
Threads: 198
Joined: May 2010
Reputation:
32
They just told you what it is..
Posts: 2,216
Threads: 187
Joined: Jul 2011
(08-27-2011, 09:34 AM)Ace Wrote: I thought you found it? :S
You even have the correct location in your thread title lol
Yes, because the username is in the WelcomeBlock_Header, but you can't actually see it in the code for some reason.
I've just noticed that it's now a default feature for MyBB now anyway. No need to reply to this.