vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Modification to the jpilot chat hack (https://vborg.vbsupport.ru/showthread.php?t=33050)

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/showt...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/showthrea...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 Code:

<?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 Code:

<?php
require("global.php"); 



if(
$bbuserinfo[usergroupid] == or $bbuserinfo[usergroupid] == or $bbuserinfo[usergroupid] == or $bbuserinfo[usergroupid] == 11 or $bbuserinfo[usergroupid] == 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/f...in_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

Code:

<?php
require("global.php");
 
eval("dooutput(\"".gettemplate('main_chat')."\");");

?>

now everyone can chat.


All times are GMT. The time now is 01:36 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00992 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete