I am using this chat.php in my /forums
it is an integrated chat page so it logs in users in realchat from vbulletin (those who are logged in)
now its working fine, but if the person is not logged in vbulletin forums and clicks on chat.php then he gets entered as the nick "Unregistered".
I want it so that if its not a logged in user from vbulletin then he should end up with a error msg or like the login applet.
Here is the php code for the embeded vb thing:
PHP Code:
<param name="nick" value="<?php echo $vbulletin->userinfo[username]; ?>">
<param name="embedded" value="yes">
so what shud i change so only registered and logged in vb users can enter chat, and other guests get a error msg or login applet