vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB eIRC chat intergration hack 1.0 (https://vborg.vbsupport.ru/showthread.php?t=37424)

Slynderdale 04-17-2002 10:28 AM

you could change every thing in the template with mine too, and you can edit how the whole page looks and set up with that one template, you could have it look like your normal forum page with a chat or make something completly different for it, all mine takes it a small php and 1 template to tun the whole thing and set every thing up, i also have a X bot too so the irc chat is always open and you dont have to worry about some one getting admin power

andrew67 04-17-2002 10:39 AM

Well it doesn't do that the way you posted it, all the config is in the php file. My update will also have 1 php and 1 template instead of 2, a who's chatting now type deal (if I can work out the bugs) and the instructions on how to compile Eirc. for use on your own web/irc server.

Also no offence, but so what if you have X-bot, why make it sound like it is part of you hack? Its a bot in your chat room... What does that have to do with the hack? Anyone can have X-bot, its simply the channel server as I explained in a previous post.

Slynderdale 04-17-2002 10:54 AM

sorry, i didnt want to get one any ones bad side, i just offered another way of doing it, the top one
PHP Code:

<?php
error_reporting
(7);

require(
'./global.php');


eval(
"dooutput(\"".gettemplate('forumchat')."\");");

?>

is what you put in the php file the rest is a template

mojotim 04-17-2002 10:55 AM

Dude, nice job. Very easy install. No chmod, no fuss, no muss! :)

andrew67 04-17-2002 11:01 AM

No need to aplogise, I was asking a question is all, things dont seem to come out right when I typing and I always come across like I'm angry or something, I not, Sorry if seemed that way.. I was just pointing why I had set thing up the way I had and what I updates I had install and simply asking a Q...

Slynderdale 04-17-2002 11:01 AM

Quote:

Originally posted by mojotim
Dude, nice job. Very easy install. No chmod, no fuss, no muss! :)
Thank, i also seached for a hack that lets you show whos in the chat on the main page if any one wants to add it.

https://vborg.vbsupport.ru/showthrea...threadid=34065

Slynderdale 04-17-2002 12:10 PM

ok i added a little update to my version, if an account has spaces in it, it will only use the first part of the name not the whole name so i made a little fix that removes the space. If your useing my version change:

PHP Code:

<?php
error_reporting
(7);

require(
'./global.php');


eval(
"dooutput(\"".gettemplate('forumchat')."\");");

?>

to:
PHP Code:

<?php
error_reporting
(7);

require(
'./global.php');

$chatusername=str_replace(" ","",$bbuserinfo[username]);

eval(
"dooutput(\"".gettemplate('forumchat')."\");");

?>

now in the forumchat template find:

PHP Code:

$bbuserinfo[username

and replace it with:

PHP Code:

$chatusername 

it apears twice so change both and there, when a user goes to the chat it removes any spaces from there name

Slynderdale 04-17-2002 12:12 PM

hope that helps some people out

wooolF[RM] 04-17-2002 01:07 PM

]
Quote:

Originally posted by Slynderdale
PHP Code:

$chatusername=str_replace(" ","",$bbuserinfo[username]); 


nice! Thanx for sharing :)

Castel 04-17-2002 11:08 PM

Good job andrew, works like a charm. I used Slynderdale's chat.php method that way you don't have to modify online.php either since chat.php is already provided for.


All times are GMT. The time now is 09:34 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.01192 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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