Support Forums

Full Version: MyBB WelcomeBlock_Header [Help?]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.
I dont think omni has done that , its default from mybb , lol Tongue

Well it was easy to find how to do that and please no need to love me Tongue

<a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}">{$mybb->user['username']}</a>

It will do the same thing as you are asking.
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.
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.
(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.
They just told you what it is..
(08-27-2011, 03:21 AM)BreShiE Wrote: [ -> ]I know it would work, and I thank him or that, but I cant find where the username part is in the template files.

I thought you found it? :S

You even have the correct location in your thread title lol
(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.
(08-28-2011, 10:15 AM)BreShiE Wrote: [ -> ]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.

You aren't supposed to see the username in the code, it's a variable, if you stick in "Ace" it will show "Ace" as the username for everyone.

The code we provided is the code.
(08-28-2011, 01:56 PM)Ace Wrote: [ -> ]You aren't supposed to see the username in the code, it's a variable, if you stick in "Ace" it will show "Ace" as the username for everyone.

The code we provided is the code.

Haha thats right and is making me laugh right now.
Pages: 1 2