Log in

View Full Version : Welcome back ... and forum stats


R34GTT
12-24-2005, 09:21 PM
Hi all,

Ive been looking on here for ages now, but cant find the answer. Is there a hack here which enables a table at the top of the main forum page which comes up with Things like 'Welcome back xxxx!' and 'Total Treads and Total Posts' along with 'users online'

I have see a few sites with this info on it, but I cant find a hack anywhere. Please help!

Thanks,
Dan

Julie
12-25-2005, 12:19 AM
To display a user's username you can use

$bbuserinfo[username]

Or for a little more coding [source (http://www.vbulletin.com/docs/html/main/template_conditionals)];

<if condition="$bbuserinfo['userid'] == 0">
<p>Welcome to the forum!<br />
If this is your first visit, we hope you enjoy your stay!</p>
<else />
<p>Welcome back, $bbuserinfo[username].<br />
<a href="search.php?do=getnew">Click here to view new posts</a>.
</if>