Version: , by Stasik
Developer Last Online: May 2009
Version: 2.2.x
Rating:
Released: 06-25-2001
Last Update: Never
Installs: 31
No support by the author.
Hi.... it is my first hack - phpProbe
here is it... it was tested under vbb2x RC2 and phpMyChat 0.14.4
News:
Updated on 19.07.01
- FAQ has been add
Updated on 18.07.01 The hack is compatible with version 0.14.5 of phpMyChat
- there is some javaScript code there, so the hack will not work with browsers without JS support (phpMyChat will not work with these browsers too )
- the Exit link in chat works ok now
Hack: Step 1:
open /lib/index.lib.php3 in yours phpMyChat Derictory
find:
PHP Code:
// Fix some security holes
replace it with
PHP Code:
//a VBB integration hack by Stasik (stasik@t-online.de)
//v0.1
//(C)2001
$exiturl = "http://www.blabla.com"; // the url the user will be redirected exiting the chat
if ($bbuserid == 0)
{
print "no"; //Message if the user has no cookie
exit;
}
else
{
if ($bbusername == "" || (isset($bbusername))==0)
{
$getusername=$DB_site->query_first("SELECT username FROM user WHERE userid=$bbuserid");
$username=$getusername[username];
$bbusername = $username;
}
else
{
$username = $bbusername;
} }
FAQ:
Q: I`m getting "no" every time.
A: You need to upgrade a cookie option in your VB control panel. Write under: Options->Change Options->[HTTP Headers and output]->Cookie Domain your domainname ONLY (blabla.com).
Q: I`m getting "you need to register" error.
A: Enable chat using for not registered users in your phpMyChat config (/config/config.lib.php3).
Q: I`m getting "wrong password" error.
A: Make shure you have deleted all user accounts in your chat and have only administrative one. If you are logging is as administrator note that you have to enter your password EVERY time you are logging in.
Questions or Bug reports?
Post it here I`ll answer ASAP.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hi. I was suprised when this problem wasn't mentioned. If a user bookmarks the chat while in the chatroom they will get a suprise when they try to come back. They get an error page. And The administrator of vbulletin gets a message saying there was an error with the vbulletin database. I might have missed this solution to the problem. Any takers?
Thanks.
Dave.
P.S. The integration works fine except for this problem.
How would that solve the problem? Look here to see what I mean. This was bookmarked while inside the chatroom. Apparently people are bookmarking the chat while inside.
I've had this hack working with no problems. Today a member was trying to get into the chat room and was not able to. Instead the member got the page for the unregistered users to join in order to use this feature. She made sure she was logged in and still got to this page. Anyone here have any clues why this member is the only one not able to get in?