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.
My www site is on the DSL line and the beta site is at VO. I can't tell huge speed differences and I don't even have caching or gzip on the one on the DSL yet. I hope the beta doesn't get slower once I make it the main one.
ANYWAY, I should let us return to the topic at hand. Thanks!
Does anybody else have some sort of refresh problem? Everything works great except sometimes it repeats what you type over and over.
Seems like only I can see it and the others on the chat can't. Yet at the same time their text is repeating and I don't see it. If you refresh the chat room it goes back to normal only to do it again soon after.
Do you have to dump the tables from the phpMyChat database and then load them in to the vB forums database? Or do you just have to create some blank tables with the same names?
TIA!
Quote:
Originally posted by SneakyDave OK, here is what I've done. I've created a separate script for phpMyChat and vBulletin integration. It includes the hacks discussed here, and should work well for more people. I've made a few small enhancements, and added a few installation notes.
Some points of interest.
1) These files are all .php extensions.
2) No chat registration exists, including administration. You can create rooms in the setup, but that's it. No private rooms, no banning, etc. That's because the setup that works for me has the "no registration" option on. So if you can handle that, this should work.
3) I can answer the questions I can, but not detailed specifics on phpMyChat or vBulletin.
4) I don't have CVS available for any fixes or changes, if I update anything, I'll post it here.
5) This is of course, an unofficial release of the phpMyChat script, but I've left all documentation intact.
Thanks to phpProbe, Tom, phpMyChat, and vBulletin for great hacks and products.
I love the idea of this!! but I am having a few problems with installing mychat:
Error message I receive is;
Warning: MySQL Connection Failed: Access denied for user: '*************' (Using password: YES) in ./lib/database/mysql.lib.php3 on line 26
Database error: Link_ID == false, connect failed
MySQL error: 0 ()
Session halted.
any idea's how to fix this, then I can start to use it.
i have completely integrated phpmychat with vbulletin on my site. it authenticates via the 'users' table, determines permissions via 'usergroupid' and is also integrated with the gender hack. all commands are working (ie. /kick, /ban, /promote) and has been nicely customized to match the style of my site. come take a look at http://www.enterthemuse.com/ username/password: test
it's not very easy, you have to manually edit each file and replace quite a few hardcoded references to 'perms' to 'usergroupid', and all references of 'a' to '6', 'm' to '7' and 'u' to whatever groupid you have assigned to normal users. you have to either add a few fields into your 'user' table that phpmychat requires (ie. 'latin1', etc), or else edit it out of the files. it's much easier to add it to the DB, in my opinion.