Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: LuLz on June 05, 2011, 08:04:45 PM

Title: Userbar at top of page?
Post by: LuLz on June 05, 2011, 08:04:45 PM
(http://i51.tinypic.com/2lia8tt.png)

Anyone know how too make that butt add it at the top of the page?
Title: Re: Userbar at top of page?
Post by: All Colours Sam on June 05, 2011, 11:26:25 PM
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.