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.
1. I attached the index.lib.php3 in this post. The problem is still there, after press EXIT, usres are not redirected back to forum. Please help checking my attached file.
2. Language : After testing, I found that if the registerd users has been redirect from forum to Chat, they will be stop at the LOGON screen since password need to be enter where Language can be selected. But for the unregistered user, the system bring them directly to the chat windows without stoping at the LOGON screen, so these people can't choose language. Is it possible to move the language selection into chat windows instead of LOGON screen and allow users to select or change their language at any time.
3. Is ok, I understand now.
Let me confirm with you what is the correct way of the step..
1. In case of Registered Users. What happen after they press EXIT. Go back to the LOGON screen or Forum ?
2. In case of Unregistered Users. I think these people will be redirected back to forum. Am I correct ?
I don't care the Language Selection now since unregistered users can't go to the Chat page anyway. So, just fotgot it..
P.S. This question is not concern to Hack Integration. It's conern to the phpMyChat, which I think may be you have answer to my question. Who can you /save command in phpMyChat ? I'm admin, can use it without problem. How about other registered users, can they use /save command ? I ask this because when they issue the /save command, the chat just show another windows of the same chat screen.
If users have already registered with the vBulletin, and if they go to the Chat, can they create/join the private room with the /JOIN command ?
My current situation now is the vBulletin Registered Users cannot crate their own private room, only Admin now can create the private room. If they try to create the private room, the pop up windows will show that they are not registered. Since this integration hack is integrate with VB database, so it should recognize the the Registered User and allow to create the private room. Am I understand correctly ?