Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB WelcomeBlock_Header [Help?]
#1
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.
Reply
#2
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.
Reply
#3
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.
Reply
#4
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.
Reply
#5
(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.
Reply
#6
They just told you what it is..
Reply
#7
(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
Reply
#8
(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.
Reply
#9
(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.
Reply
#10
(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.
[Image: sig-1.png]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Install MyBB | MyBB Installation Guide BreShiE 2 1,413 03-10-2012, 06:33 AM
Last Post: BreShiE
  MyBB question @OMNI or any other mybb Guru's 0xE9 13 29,579 07-28-2011, 01:29 PM
Last Post: Pompano
  How to Make your MYBB Central Plugin Compatible with new Mybb Billy Mays 3 2,130 07-12-2011, 06:40 PM
Last Post: Billy Mays

Forum Jump:


Users browsing this thread: 2 Guest(s)