News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Userbar at top of page?

Started by LuLz, June 05, 2011, 08:04:45 PM

Previous topic - Next topic

LuLz



Anyone know how too make that butt add it at the top of the page?

All Colours Sam

a div on your theme's Index.template.php right after the <body>  tag or right at the beginning of the template_body_above() function should do the trick:


<div> Welcome:  ', $context['user']['name'], ' </div>

I dont know what the notifications and settings buttons will do, the other ones are pure text:

<a href="',$scripturl,'?action=profile">My Profile</a>   for the my profile link.

<a href="',scripturl . '?action=logout">Log Out</a>  for the log out one.


thats pretty much what I can do with the details provided.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

Advertisement: