1
I was hoping someone could help with a script problem I am having. I am running the below script in a "Custom Block (PHP)" and I am trying to get the script to call to the XOOPS database that has the registered members username (nickname). I have got it to start the chatroom and IM program, but it keeps identifying the user as:
< ? I have ran this as a "Custom Block (HTML)" with better results, but still shows the user as:
< ? I have highlighted in
RED the code where I believe the problem is, but after a week of pulling out what little hair I left, I am now totally at a lost.
include("../../mainfile.php");
include("../../header.php");
?>
CODE='com.net.chat.client.ChatApplet'
WIDTH='200' HEIGHT='100' ALIGN='middle'
ARCHIVE=Client.jar
MAYSCRIPT>
[color=CC0000] echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uname') : $GLOBALS['xoopsConfig']['anonymous']; ?>
echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uid') : 0 ?>">[/color]
include("../../footer.php");
?>
Just a note, there are no Anonymous user on this website, it is a VPN (Virtual Private Network) for State Employees, so everyone is registered member. I know the chatroom and IM are working as it starts and runs the programs with their autologin, it just will not show their uname.