PDA

View Full Version : Info box in the header?


hitmann
11-08-2007, 11:05 PM
How is it possible to add an info box on the right of the header, like the one on vb.org saying:

Welcome, username. You have # unread messages; Total ##.
You last visited: Yesterday at 12:00.

Triky
11-12-2007, 03:10 PM
You have to edit your header template and put this code into a <span style="float: right" class="smallfont"> tag, before the banner part of code:


<span style="float: right" class="smallfont">

<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>

</span>