vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [RELEASE] - Chat hack (https://vborg.vbsupport.ru/showthread.php?t=1818)

07-16-2000 02:46 PM

Here is the hack to integrate phpMyChat with vB. This is just a rudimentary integration that I plan on improving. Place the following under the line set_magic_quotes_runtime(0); in the index.php file of phpMyChat. If you would like to see a demo visit http://www.linuxquestions.org/questions and click on chat.

Code:

// start vB hack version .01
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org

require("/path/to/global.php");

if ($userinfo[cookieuser]==1) {
$U=$userinfo[username];
$N=20;
$password = "1";
$E=10;
}
else {
print "Please register at <A HREF=\"Url to site\">Site Name</A>";
$U = "";
exit;
}

// end vB hack


07-17-2000 04:29 PM

A few people have emailed me questions so I will clarify. You DO need to be a registered vB user to enter the chat room. Why? To enter the chat room you need the vB cookie (and to get the vB cookie you need to be a vB member ;) ).

07-18-2000 02:15 AM

WOW, this is a VERY coo! hack. I've always wanted to use this. Really though this is sweeet :)

07-18-2000 02:03 PM

Thanks. I just made a few improvements (you can now logout :) ). I have a few more things I want to do and I'll release a .02 version. Are there any specific features that anyone is looking for?

07-18-2000 03:20 PM

Nice hack!
Can it be possible to have a pop-up or seperated window instant message function included in the chat room?
Private chat room is possible?

07-18-2000 04:09 PM

PaulLin,
Not sure why you would want an instant message feature? Is the chat not instant enough? I was trying to keep the interface simple and clean which is why I have it setup so everyone enters the same default room. If enough people want it I may add a private chat room option.

07-20-2000 01:00 PM

A new version of phpMyChat was released today. The vB integration hack still works great. The link on my site now points to the new version. Here is version .02 of the hack.
Code:

// start vB hack version .02
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org

require("/path/to/global.php");
 
if ($userinfo[cookieuser]==1) {
$U=$userinfo[username];
$N=20;
$password = "1";
$D=10;
}
else {
print "To use the chat room you must be a registered user. <BR>";
print "Please register at <A HREF=\"../index.php\">YourSiteName</A>";
$U = "";
exit;
}
 
// end vB hack


07-25-2000 09:52 PM

Does the chat script put very much of a strain on the server?

07-26-2000 12:25 PM

So far the load on the machine has been VERY minimal. To be honest though I have never had more than 6 simultaneous chat room users. As more people start to use it I will keep you posted.

07-26-2000 08:48 PM

A few people have asked me where to get phpMyChat. Here is a link: http://www.phpheaven.net/download.php3?a=phpMyChat

07-28-2000 03:10 AM

I tried to log into your chat page after registering, but my user name was too long and had a space between the names and was rejected.

On my board, many of the members use their full names, so does that mean that this chat software will not work for such people?

07-28-2000 03:55 AM

I have corrected the error. You should now be able to log in. Thanks for the feedback.

Iliana 07-04-2001 03:13 PM

I am getting the following message when I integrate the hack.

Fatal error: Failed opening required './admin/config.php' (include_path='') in /home/www/theparentclub/forums/global.php on line 66


The weird thing is the link below is as follows in the index.lib.php3 file:require("/home/theparentclub/www/forums/global.php");
I am assuming that the global.php file is the one associated with the vbulletin forum.

The fatal message above has theparentclub/www reversed and I cannot find where to fix this problem. I entered the code exactly as described above and I only updated the required link.

What am I doing wrong?

For test go to http://www.theparentclub.com/chat/

Thanks

Iliana 07-04-2001 03:45 PM

Also,

Which global.php file are you talking about. The one in forums dir or forums/admin dir?

I assume is the first one...

Iliana 07-05-2001 05:26 PM

Can anyone help us?

Fred 07-05-2001 06:58 PM

cause he made the hack for version 1.1.x... not 2.x

Iliana 07-05-2001 07:03 PM

Quote:

Originally posted by customcpu
A new version of phpMyChat was released today. The vB integration hack still works great. The link on my site now points to the new version. Here is version .02 of the hack.
Code:

// start vB hack version .02
// Please send bug reports, questions and suggestions to:
// jeremy@linuxquestions.org

require("/path/to/global.php");
 
if ($userinfo[cookieuser]==1) {
$U=$userinfo[username];
$N=20;
$password = "1";
$D=10;
}
else {
print "To use the chat room you must be a registered user. <BR>";
print "Please register at <A HREF=\"../index.php\">YourSiteName</A>";
$U = "";
exit;
}
 
// end vB hack


Fred,

He did make the hack for the latest version as you can see above.

:)

Fred 07-05-2001 10:11 PM

Nope, he made it for version 1.0.2 if I'm correct. Because he made the hack on 07-16-2000 and vBulletin 2.0.0 was NOT released back then.. lol

customcpu 07-05-2001 11:43 PM

I *think* I released the hack for phpMyChat .13 and vB 1.x. It probably doesn't work with newer versions of phpMyChat and I don't currently use it on my site, so I will probably not be updating it (altough you never know). Sorry.


All times are GMT. The time now is 10:57 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.01126 seconds
  • Memory Usage 1,752KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (19)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete