MyBB WelcomeBlock_Header [Help?] - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36) +---- Forum: Forum Software Help (https://www.supportforums.net/forumdisplay.php?fid=49) +---- Thread: MyBB WelcomeBlock_Header [Help?] (/showthread.php?tid=21143) Pages:
1
2
|
MyBB WelcomeBlock_Header [Help?] - BreShiE - 08-05-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. RE: MyBB WelcomeBlock_Header [Help?] - Hei - 08-26-2011 I dont think omni has done that , its default from mybb , lol Well it was easy to find how to do that and please no need to love me <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. RE: MyBB WelcomeBlock_Header [Help?] - BreShiE - 08-26-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. RE: MyBB WelcomeBlock_Header [Help?] - AceInfinity - 08-26-2011 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. RE: MyBB WelcomeBlock_Header [Help?] - BreShiE - 08-27-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. I know it would work, and I thank him or that, but I cant find where the username part is in the template files. RE: MyBB WelcomeBlock_Header [Help?] - Peter L - 08-27-2011 They just told you what it is.. RE: MyBB WelcomeBlock_Header [Help?] - AceInfinity - 08-27-2011 (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 RE: MyBB WelcomeBlock_Header [Help?] - BreShiE - 08-28-2011 (08-27-2011, 09:34 AM)Ace Wrote: I thought you found it? :S 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. RE: MyBB WelcomeBlock_Header [Help?] - AceInfinity - 08-28-2011 (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. 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. RE: MyBB WelcomeBlock_Header [Help?] - HaX420 - 08-28-2011 (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. Haha thats right and is making me laugh right now. |