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 just want this integrated with "Currently Active Users" Its working but how to get it integrated?
Code:
<?php
// This script is an example of display, in another page of your website,
// the list or number of users connected to the chat
// Lines below must be at the top of your file and completed according
// to your settings
// relative path from this page to your chat directory
$ChatPath = "../../chat/web/";
// HTML link to launch the chat (used by constants below)
$ChatLaunch = "<A HREF=\"http://my.url.nl\~chat\" TARGET=\"_self\">chatting</A>";
$ShowPrivate = "1"; // 1 to display users even if they are in a private room,
// 0 else
$DisplayUsers = "1"; // 0 to display only the number of connected users
// 1 to display a list of users
define("NB_USERS_IN","users are ".$ChatLaunch." at this time."); // used if $DisplayUsers = 0
define("USERS_LOGIN","User ".$ChatLaunch." at this time:"); // used if $DisplayUsers = 1
define("NO_USER","Nobody is ".$ChatLaunch." at this time.");
require("./${ChatPath}/lib/connected_users.lib.php3");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<?php
display_connected($ShowPrivate,$DisplayUsers,($DisplayUsers ? USERS_LOGIN : NB_USERS_IN),NO_USER);
?>
</HTML>
ok ok! I am closer--it seems to work fine except I still can't exit. I read and re-read everything, but I must be doing something wrong. It keeps redirecting me to the chat. and i set the
$exiturl = "http://www.texasflashers.org/forums/";
going nuts here.
Could you toss me a working exit.lib.php3?
May be you can help.. I want to add the Current Chat Active User to the Forum Main Page, same as Who's Online. Is it possible to do that ? Can you help ?
Thank, I found that file and I modify it to my need. Then I insert this line into forumhome_loggedinusers, but I don't know how to add that file into this statement. Can you please help.. Thanks
<normalfont color="{categoryfontcolor}"><b> [ Currently Chat Active Users</b></normalfont>
</a><normalfont color="{categoryfontcolor}"><b>: ] </b>