07-20-2000, 02:20 PM
This new version will work with the latest version of myPhpChat. (Note that there is one change in the script since my previous post!) Also, in the last version of phpMyChat you need to make these changes to index.php3. In the new version (0.13.0) you need to make the changes to index.lib.php3 which is in the lib folder.
You need to put this right before the line "function Url($str)".
// Start vB hack version .02
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org
require("/path/to/global.php");
if ($userinfo[cookieuser]==1) {
$U = $userinfo[username];
$N = 20;
$D = 10;
$Form_Send = 1;
$PASSWORD = "1";
}
else {
print "To use the chat room you must be a registered user. <BR>";
print "Please register at <A HREF=\"path/to/index.php">YourSite.com</A>";
$U = "";
exit;
}
// end vB hack
You need to put this right before the line "function Url($str)".
// Start vB hack version .02
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org
require("/path/to/global.php");
if ($userinfo[cookieuser]==1) {
$U = $userinfo[username];
$N = 20;
$D = 10;
$Form_Send = 1;
$PASSWORD = "1";
}
else {
print "To use the chat room you must be a registered user. <BR>";
print "Please register at <A HREF=\"path/to/index.php">YourSite.com</A>";
$U = "";
exit;
}
// end vB hack