REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved]User profile in header
#1
So I want it to be that when you click on your name, it will link to your profile.

Default header:
Code:
<strong>Welcome Back to {$mybb->settings['bbname']} {$mybb->user['username']}!
<span style="float: right;"><a href="{$mybb->settings['bburl']}/private.php"><b>{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</b></span><br></strong>

What I tried:
Code:
<strong>Welcome Back to {$mybb->settings['bbname']} <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}>{$mybb->user['username']}</a>!
<span style="float: right;"><a href="{$mybb->settings['bburl']}/private.php"><b>{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}</b></span><br></strong>

What should I do?
Reply
#2
Solved, I'm not sure how but I just retried it with the same code on a different them and it worked.
Odd.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Profile Field on Index minionsweeper 2 854 May 01, 2017, 02:26 PM
Last Post: actavis
  Get Steam profile and set it ssah8 3 735 Apr 19, 2017, 12:47 AM
Last Post: Barbarjreusser
  [Solved]Smilies not showing when posting Riverthief 7 4,636 Nov 27, 2016, 09:48 AM
Last Post: next438
  How do you show user titles instead of groups in postbit? MzStevens 1 1,533 Oct 19, 2015, 12:19 AM
Last Post: MzStevens
  Login as User? kel 0 1,227 Jun 18, 2015, 03:32 PM
Last Post: kel

Forum Jump:


Users browsing this thread: 1 Guest(s)