PDA

View Full Version : How can I get the username and other vars?



Depp
02-14-2010, 11:43 AM
I'm coding a PHP-Script that allows registered users to use pjIRC to access our webchat.

Now I need the ability to read their username per PHP. Somewhere I found the variable $userinfo[username] but this does not work. An suggestions?

Thanks

Here is the Code:


<?php
$username = $userinfo[username];
?>
<applet codebase="http://www.automobilboard.de/pjIRC" code="IRCApplet.class" archive="irc.jar,pixx.jar" width=640 height=400>
<param name="CABINETS" value="irc.cab,securedirc.cab,pixx.cab">

<param name="nick" value="<?php echo $username; ?>">
<param name="alternatenick" value="<?php echo $username; ?>???">
<param name="name" value="Javachatuser">
<param name="host" value="irc.cruworx.de">
<param name="gui" value="pixx">

<param name="command1" value="join #automobilboard.de">

</applet>

Brian
02-15-2010, 01:18 PM
$bbuserinfo only works in vB templates. You'll need to use $vbulletin->userinfo['username'] within PHP files.