1
SLEO577
Having a Serious Script Problem...
  • 2005/9/16 4:44

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


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.
<?php
include("../../mainfile.php");
include(
"../../header.php");
?>
<applet NAME='Chat' CODEBASE='http://MyWebSite/Chat/Classes/'
CODE='com.net.chat.client.ChatApplet' 
WIDTH='200' HEIGHT='100' ALIGN='middle' 
ARCHIVE=Client.jar 
MAYSCRIPT>
<param name="cabbase" value="Client.cab">
<param name='language' value='client.lang'>
<param name="textcolor" value="000000">
<param name="browserClose" value="false">
<param name="WindowHeight" value="500">
<param name="WindowWidth" value="500">
<param name=siteID value=577>
<param name="background" value="FFFFFF">
<param name="BuddiesTab" value="true">
[color=CC0000]<param name="nickname" value=<? echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uname') : $GLOBALS['xoopsConfig']['anonymous']; ?>
<param name="url" value="http://MyWebSite/userinfo.php?viewuser=<? echo $GLOBALS['xoopsUser'] ? $GLOBALS['xoopsUser']->getVar('uid') : 0 ?>">[/color]
</applet>
<?php
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.

2
SLEO577
Re: Having a Serious Script Problem...
  • 2005/9/16 13:14

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


I have ran it with the absolute URL and still no luck. I am somehow not getting this script to find the uname.

3
SLEO577
Re: Having a Serious Script Problem...
  • 2005/9/19 16:41

  • SLEO577

  • Not too shy to talk

  • Posts: 110

  • Since: 2005/6/27


*Bump*

4
Herko
Re: Having a Serious Script Problem...
  • 2005/9/19 16:46

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


have you tried value="<?all your php code here?>", adding the "quotes?

Herko