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.
Yes. The reason I asked was that I had tried that b4. When I point it(chat button) at /chat/index.php, I'm redirected back to the forum home page, as if the user had joined, and then left chat. I then tried index.lb.php3, but get a blank screen.
This is because of the hack that was added to index.php3 via the thread I mentioned before. It dicussed your hack and two other parts, which affected index.php in the VB forum directory, and
index.php3, and index.lib.php3, and exit.php3 for myphpchat.
thank you for your time. I will continue to analyze my setup. I am still thinking that I have the hack in VB INDEX.PHP misplaced. I tried to represent the variable ($numchatusers) on the home page via the forum_loggedinusers template, and got a blank field display for my efforts. That would indicate to me the code isn't being executed where it needs to.
I placed the hack at the very end of index.php in the VB forum directory. One of the other reasons I know I've something out or ordung is that the chat doesn't open in a seperate window, as the hack documentation indicated it should.
Down the thread about 4 or 5 replies is a response by Tom. Thats the one I used. It incorporates your process, and some additional parts to get it all working.