grrlburn
02-25-2003, 11:16 PM
I got this far with the hack. For some reason it is not passing the parameter to digichat. When I hit the page and view source I can see the name in the nic and real name parameter, but it sends me to the no_permission page even thoug I am registered and logged in. Any thoughts or help? I know that there are other digichat hacks on the board but for some reason they are not working with my mac users. When I called Digichat they said O have to use the full js. Thanks for any help or advice.
_______________________
<?php
include("/home/butchfem/public_html/portal/forums/global.php");
if ($bbuserid == 0);
{
eval("echo standarderror(\"".gettemplate('error_nopermission_digichat')."\");");
exit;
}
if ($bbusername == "" || (isset($bbusername))==0) {
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
?>
<HTML>
<Script Language = 'javascript'>
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
IEmac = (document.all)&&(isMac)) ? true : false;
IEwin = (document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1) &&
!isMac) ? true : false;
NS = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
document.writeln("<APPLET NAME='DigiChat'
CODEBASE='http://www.hostware.com/DigiChat/DigiClasses/' ");
document.writeln("CODE='com.diginet.digichat.client.DigiChatApplet' ");
document.writeln("HEIGHT=100 WIDTH=200 ALIGN='MIDDLE' ");
if (isMac)
document.writeln("ARCHIVE=Client_Mac.jar MAYSCRIPT>");
else if (!isMac)
{
if (IEwin)
{
document.writeln("ARCHIVE=Client_Plugin.jar MAYSCRIPT>");
document.write(" <PARAM NAME=cabbase
value=Client_IE.cab>");
document.write(" <PARAM NAME=useslibrary value=DigiChat
Applet>");
document.write(" <PARAM NAME="nickname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME="realname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME=namespace value=Digi-Net>");
document.write(" <PARAM NAME=useslibrarycodebase
value=Client_IE.cab>");
document.write(" <PARAM NAME=useslibraryversion
value=4,0,1,0>");
}
else if (NS)
document.writeln("ARCHIVE='Client_NS.jar' MAYSCRIPT>");
}
document.write(" <PARAM NAME="nickname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME="realname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME=MenuItem1 VALUE=DigiChat>");
document.write(" <PARAM NAME=MenuLocation1
VALUE=http://www.digichat.com>");
document.write(" <PARAM NAME=MenuItem2 VALUE='DigiPosts BBS'>");
document.write(" <PARAM NAME=MenuLocation2
VALUE=http://www.digiposts.com>");
document.write(" <PARAM NAME=MenuItem3 VALUE='Hubz Instant Messenger'>");
document.write(" <PARAM NAME=MenuLocation3 VALUE=http://www.hubz.com>");
document.write(" <PARAM NAME=MenuItem4 VALUE='Enclave Community
Suite'>");
document.write(" <PARAM NAME=MenuLocation4
VALUE=http://www.enclavesuite.com>");
document.write(" <PARAM NAME=MenuItem5 VALUE='Groopz E-Commerce'>");
document.write(" <PARAM NAME=MenuLocation5
VALUE=http://www.groopz.com>");
document.write(" <PARAM NAME=siteID VALUE=1000>");
document.write(" <PARAM NAME=background VALUE=FFFFFF>");
document.write(" <PARAM NAME=signed VALUE=true>");
document.write(" <PARAM NAME=textcolor VALUE=000000>");
document.write(" GrownUpsChat requires a Java Compatible web browser to
run. ");
document.write(" </APPLET>");
</Script>
</HTML>
_______________________
<?php
include("/home/butchfem/public_html/portal/forums/global.php");
if ($bbuserid == 0);
{
eval("echo standarderror(\"".gettemplate('error_nopermission_digichat')."\");");
exit;
}
if ($bbusername == "" || (isset($bbusername))==0) {
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
?>
<HTML>
<Script Language = 'javascript'>
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
IEmac = (document.all)&&(isMac)) ? true : false;
IEwin = (document.all)&&(navigator.appVersion.indexOf("MSIE")!=-1) &&
!isMac) ? true : false;
NS = (navigator.appName.indexOf("Netscape")!=-1) ? true : false;
document.writeln("<APPLET NAME='DigiChat'
CODEBASE='http://www.hostware.com/DigiChat/DigiClasses/' ");
document.writeln("CODE='com.diginet.digichat.client.DigiChatApplet' ");
document.writeln("HEIGHT=100 WIDTH=200 ALIGN='MIDDLE' ");
if (isMac)
document.writeln("ARCHIVE=Client_Mac.jar MAYSCRIPT>");
else if (!isMac)
{
if (IEwin)
{
document.writeln("ARCHIVE=Client_Plugin.jar MAYSCRIPT>");
document.write(" <PARAM NAME=cabbase
value=Client_IE.cab>");
document.write(" <PARAM NAME=useslibrary value=DigiChat
Applet>");
document.write(" <PARAM NAME="nickname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME="realname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME=namespace value=Digi-Net>");
document.write(" <PARAM NAME=useslibrarycodebase
value=Client_IE.cab>");
document.write(" <PARAM NAME=useslibraryversion
value=4,0,1,0>");
}
else if (NS)
document.writeln("ARCHIVE='Client_NS.jar' MAYSCRIPT>");
}
document.write(" <PARAM NAME="nickname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME="realname" value="<?php echo
$bbusername; ?>">;
document.write(" <PARAM NAME=MenuItem1 VALUE=DigiChat>");
document.write(" <PARAM NAME=MenuLocation1
VALUE=http://www.digichat.com>");
document.write(" <PARAM NAME=MenuItem2 VALUE='DigiPosts BBS'>");
document.write(" <PARAM NAME=MenuLocation2
VALUE=http://www.digiposts.com>");
document.write(" <PARAM NAME=MenuItem3 VALUE='Hubz Instant Messenger'>");
document.write(" <PARAM NAME=MenuLocation3 VALUE=http://www.hubz.com>");
document.write(" <PARAM NAME=MenuItem4 VALUE='Enclave Community
Suite'>");
document.write(" <PARAM NAME=MenuLocation4
VALUE=http://www.enclavesuite.com>");
document.write(" <PARAM NAME=MenuItem5 VALUE='Groopz E-Commerce'>");
document.write(" <PARAM NAME=MenuLocation5
VALUE=http://www.groopz.com>");
document.write(" <PARAM NAME=siteID VALUE=1000>");
document.write(" <PARAM NAME=background VALUE=FFFFFF>");
document.write(" <PARAM NAME=signed VALUE=true>");
document.write(" <PARAM NAME=textcolor VALUE=000000>");
document.write(" GrownUpsChat requires a Java Compatible web browser to
run. ");
document.write(" </APPLET>");
</Script>
</HTML>