Log in

View Full Version : Small bit of Help (Archive)


Impreza04
09-10-2005, 08:14 PM
I've been trying to put a Message that displays only to guests..

However, it either disappears or displays to everyone...

So far ive tried

if ($show == 'guest')
{
echo "<div class=\"post\">$vbphrase[first_visit_message]<br/>$vbphrase[archive_guest]</div><br/>";
}

and tried "is_member_of"..
In the archive_postheader hook..

Neither work..
Anyone have any idea or point me in the correct location.

boatdesign
02-15-2008, 04:31 AM
Did you ever solve this? I'm wanting to do the same thing (customize the archive/index.php with a different message for guests than registered users near the top) but I don't know how to do this...

Any help would be greatly appreciated.

--------------- Added 1203058489 at 1203058489 ---------------

Figured it out:
if ($vbulletin->userinfo['userid'] == 0)
{
$output .= "
html here
";
}