Show username in loggedin.php

wookie
Topics: 2
Posts: 13
Rep: 2
I can't figure out how to show the username in the menu's like health, money and so on. Anyone who could help me ?
2014-06-11 16:40:03
Chris Day
Topics: 9
Posts: 71
Rep: 32
To add it to the loggedin.php template file

Open up /class/user.php and find these lines:

			$page->addToTemplate('credits', $this->info->US_credits);
$page->addToTemplate('health', $this->info->US_health.'%');
$page->addToTemplate('location', $this->getLocation());


And after those add this line
			$page->addToTemplate('username', $this->info->name);


Then in your loggedin.php just ass {username} where you want the username displayed
2014-06-12 08:04:37
wookie
Topics: 2
Posts: 13
Rep: 2
Thank you so much ! :)
2014-06-12 11:19:48