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.
I am having a problem with SOME of my users not being able to get into the chatroom. I've followed all of the suggestions etc, and I think I know where the problem is.
Where you suggest in the FAQ:
Quote:
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).
When I do that, it messes up my cookies for my secondary domain. For example, my site domain is familycorner.com, but because I didn't own that for the first couple of years, I had everything on thefamilycorner.com, hence there are hundreds of links on the net pointed to thefamilycorner.com, so I have both set up to work. So if I set my cookie domain to familycorner.com, then it screws up the cookies on thefamilycorner.com, and vice versa.
I think this may be the problem that some users are experiencing. Do you have any suggestions on how I can handle this domain problem?
Originally posted by MomofThree 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?
Thanks!
I am having the same problem, but it has been fixed for some users by having them go into their control panel and edit their options. They need to make sure that they have "browse the board with cookies" set to "yes" and tell them to allow the board to log them in automatically when they return (the other cookie option). Thsi worked for some!
Just want to make sure I understand what you are saying ...
You are saying to go into the admin control panel and set the cookie domain to familycorner.com, then to have the registered users only use that domain when they enter the boards, is that right?
Problem with this is that I get visitors for both thefamilycorner.com and familycorner.com. Therefore, when someone clicks the link for the boards, they are taken to the /forums directory for whatever domain they entered on. For example, if they arrived through www.thefamilycorner.com then they will be taken to www.thefamilycorner.com/forums, but NOT to www.familycorner.com/forums
Did that mak sense? Sorry for the trouble, and thank you for your help