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


All times are GMT. The time now is 09:02 PM.

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.01084 seconds
  • Memory Usage 1,727KB
  • 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
  • (2)bbcode_code_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