Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[How To] [MyBB] Username with Profile Link auto
#1
You must have wondered how to get the username and profile link automatically in themes.

Well here it is ( a member asked for it and i think i should spread it here too )

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

Many of you may not find is useful ( me too ) but yes its for tutorial purpose.
Reply
#2
There's lots of MyBB variables that you can use. On my forum i've got rep and post count in the top right header block.

Code:
{$mybb->user['postnum']}
Code:
{$mybb->user['reputation']}
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To Install MyBB | MyBB Installation Guide BreShiE 2 1,416 03-10-2012, 06:33 AM
Last Post: BreShiE
  MyBB question @OMNI or any other mybb Guru's 0xE9 13 29,606 07-28-2011, 01:29 PM
Last Post: Pompano
  How to Make your MYBB Central Plugin Compatible with new Mybb Billy Mays 3 2,134 07-12-2011, 06:40 PM
Last Post: Billy Mays
  MyBB Postbit - Add Custom Profile Fields. Sam 8 7,045 07-05-2011, 06:19 AM
Last Post: alv4
  Changing post link properties in MyBB MarkW7 3 1,456 10-09-2010, 08:24 AM
Last Post: MarkW7

Forum Jump:


Users browsing this thread: 1 Guest(s)