View Full Version : Modification to the jpilot chat hack
JJR512
12-07-2001, 10:00 PM
This hack is a modification to Trog's original hack integrating jpilot into vBulletin, as seen here: http://www.vbulletin.com/forum/showthread.php?s=&threadid=17866
Basically, all my modification does is removes the necessity of having a whole extra template set just for one modified template. It also makes it very simple to add the chat location to your Who's Online, especially by using FireFly's hack here: https://vborg.vbsupport.ru/showthread.php?s=&threadid=32849
I can't really give you a demo, because this hack requires you to be a registered member to enter the chat room. (If you need a version open to anyone, let me know.)
DarkReaper
12-10-2001, 08:03 PM
Works great...but $50 for jIRC? I'm broke :(
Are there any other good applets out there that would work with this, and that aren't crap?
drives fast
01-26-2002, 02:17 PM
I have used this hack (great hack by the way) and I have over 11,000 members. The problem I am having is that a large handfull of members get the "you do not have permission to access" message showing they are in fact logged in
I tried registering an account and did not have that problem. I tried logging in as one of the people haveing the problem and I got the same error they were having.
I tried replacing this:
<?php
require("global.php");
if( $bbuserid ) {
$user = $DB_site->query_first( "SELECT username FROM user WHERE userid = $bbuserid" );
$bbusername = $user[username];
eval("dooutput(\"".gettemplate('main_chat')."\");");
} else {
eval("dooutput(\"".show_nopermission()."\");");
} // end if
?>
with this:
<?php
require("global.php");
if($bbuserinfo[usergroupid] == 6 or $bbuserinfo[usergroupid] == 5 or $bbuserinfo[usergroupid] == 7 or $bbuserinfo[usergroupid] == 11 or $bbuserinfo[usergroupid] == 2 or $bbuserinfo[usergroupid] == 9) {
$user = $DB_site->query_first( "SELECT username FROM user WHERE userid = $bbuserid" );
$bbusername = $user[username];
eval("dooutput(\"".gettemplate('main_chat')."\");");
} else {
eval("dooutput(\"".show_nopermission()."\");");
} // end if
?>
but that causes a database error only when those members that were have the nopermission page come up before. If I login as the account I registered I didn't get that error but if I logged in as one that was having trouble I get the database error.
A "view sourse" of the error page shows this:
=======================================
<!-- Database error in vBulletin 2.2.1:
Invalid SQL: SELECT username FROM user WHERE userid =
mysql error:
mysql error number: 0
Date: Saturday 26th of January 2002 12:36:00 AM
Script: http://www.outerealms.com/vbportal/forums/vbportal/forums/main_chat.php?s=
Referer: http://www.outerealms.com/vbportal/forums/index.php?
-->
=======================================
any idea why not all registered members are getting that no permission screen and when I set the actual usergroups those same members that have probs the other way get an error and the rest don't?
drives fast
02-03-2002, 06:44 PM
nobody? nothing? no idea?
Erwin
02-06-2002, 09:19 AM
I am getting the same errors too.
Anybody know how to fix this???
[email protected]
vbmenu_register("postmenu_232793", true);
03-25-2002, 07:10 PM
great Hack, i have it installed and it is working great, but a problem i encountered is i have vbportal home page installed also , and the irc chat link only works when you are in the forums are and not the home page? any sugestions?
you can check it out at http://www.hack100.com
sk187
06-29-2002, 05:29 AM
has anyone figured out why certian users dont have access?
im realy desperate to know
SiXXGuNNZ
08-31-2002, 12:39 AM
anybody know how to let guests view this page? I would like my guests to be able to chat also.
SiXXGuNNZ
09-27-2002, 10:14 PM
[QUOTE]Originally posted by SiXXGuNNZ
anybody know how to let guests view this page? I would like my guests to be able to chat also.
SiXXGuNNZ
09-27-2002, 10:32 PM
for those who care
change the content of main_chat.php to
<?php
require("global.php");
eval("dooutput(\"".gettemplate('main_chat')."\");");
?>
now everyone can chat.
mackers8923
01-28-2003, 01:00 AM
I also have a vb portal as my home page and I could do with some help in how to show chat users on my home page.
Cheers
dookie
10-11-2003, 09:59 AM
Change the content of main_chat.php to:
<?php
require("global.php");
if( $bbuserid ) {
$user = $DB_site->query_first( "SELECT username FROM user WHERE userid = $bbuserid" );
$bbusername = $user[username];
}
eval("dooutput(\"".gettemplate('main_chat')."\");");
?>
Now the nickname-field is blank if a user is not registered or nor logged in.
Guests now can chat too.
If you are logged in your nick is set automatically.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.