Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 11 Years, 8 Months, 3 Weeks ago [General] What is the code to display someones username?
#1
Solved: 11 Years, 8 Months, 3 Weeks ago
Hi, what is the code so that a message will show the username a member is logged in as? E.g: Username, Text Text Text Text.................
#2
Solved: 11 Years, 8 Months, 3 Weeks ago
In templates:
{$mybb->user['username']}

For Mass Mail:
[Username]
#3
Solved: 11 Years, 8 Months, 3 Weeks ago
Thanks I couldn't get either to work, I am trying to make the ban message more user friendly by adding Dear Username, .............
#4
Solved: 11 Years, 8 Months, 3 Weeks ago
^ admin panel >> templates >> your forum's active theme templates >> Global Templates >> global_bannedwarning

you can add Dear  {$mybb->user['username']}  before {$lang->banned_warning}
#5
Solved: 11 Years, 8 Months, 3 Weeks ago
Thank you, (both of you) Smile
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)