Author Topic: How can I use {loggedin_user_name} anywhere?  (Read 3426 times)

0 Members and 1 Guest are viewing this topic.

Offline bernd

  • Full Member
  • ***
  • Posts: 214
    • View Profile
How can I use {loggedin_user_name} anywhere?
« on: June 22, 2003, 11:09:19 PM »
In addition to the "you are logged in as USERNAME" I want to be able to use the USERNAME somewhere else on the homepage but when I put the {loggedin_user_name} in the spot where I want to have in in the home.html of my template it doesn't show anything. Do I need to use this in a different way? And if so ... how?

thnx in advcance,
bernd

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
How can I use {loggedin_user_name} anywhere?
« Reply #1 on: June 22, 2003, 11:53:46 PM »
add before closing ?> in your /includes/page_header.php :
Code: [Select]
$site_template->register_vars("loggedin_user_name", $user_info['user_name']);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline bernd

  • Full Member
  • ***
  • Posts: 214
    • View Profile
How can I use {loggedin_user_name} anywhere?
« Reply #2 on: June 23, 2003, 02:39:26 PM »
Thanks a lot V@no. What'd we do without you  8)

cheers,
Bernd