vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Users in IRC for vB3 - with eggdrop. html access (https://vborg.vbsupport.ru/showthread.php?t=59672)

StevenTN 01-03-2004 10:00 PM

Users in IRC for vB3 - with eggdrop. html access
 
Well, I got sick of waiting for someone else to come up with this, and because of the huge popularity among the members, I was compelled to modify Sasq's IRConline script. However, I did not want to modify files all the time.

The only configuration I tested was the "Bot local, no DB lookup" since I have to have that configuration (because of members with spaces in their names, the DB lookup would've been pointless as they wouldn't have been returned properly, and I really no pre-setup means for other configurations). I encourage help in testing other configurations as well as feedback.

I tested in vB 3.0.0 gamma, 3.0.0 RC1 and 3.0.0 RC2, so it will work in either. There is support offered for this hack. However, past betas and vB 2.x will not be supported. In addition, any attempts to modify vBulletin files for this hack will not be supported either. There is no longer a need to modify them because of the phpinclude_start template.

Templates Modified (You'll have to do this for each available template installed)...
PHP Include Code Templates --> phpinclude_start
Forum Home Templates --> FORUMHOME

Custom Templates Added...
NONE!!!

Files Modified...
NONE!!!

If you want it for vB 2.x, look here.

Attached is a screenshot from my site's forums (http://www.thrillnetwork.com/boards).

nighteyes 01-07-2004 02:54 AM

Thanks for releasing this for vb3. I'm sure I'll make use of it soon and provide feedback.

jancarlo 01-07-2004 08:28 PM

thanks for the wonderful made job :)

I have a problem

I do not succeed to carry this list in the forum, like never?

http://www.pennyshell.net/~playanueva/chat.txt

use the files usc.tcl and nodblocal.txt beyond having like from
install.txt

thanks
jancarlo




Italian

grazie per lo stupendo lavoro fatto :)

ho un problema

non riesco a portare questa lista nel forum, come mai?

uso i files usc.tcl e nodblocal.txt oltre ad aver esugito come da install.txt

grazie
jancarlo

StevenTN 01-07-2004 08:38 PM

jancarlo: What do you mean that you are having problems using the file?

If that file is not hosted where you have the forum, you need to use the nodbremote.txt file that's included, since that code will get the chat.txt file from a remote location. It has not been tested (yet), but if you have any problems, let me know.

jancarlo 01-07-2004 09:04 PM

excuse is mistaken to me.

I have put in phpinclude_start the script:

//Whois on line in irc code - remote http, no db access beta 2.0.0

//check the url exists to save crashing or end of the world

//main routine

$onlinefile = "http://www.pennyshell.net/~playanueva/chat.txt"; //path to online users file

$killname = array("PlayaBoT", "PlayaBoT_"); //kill name array to hide users online - all users name with 'bot' and '_' at the end wont display

$httpfaulttime = 5; //number of seconds before vB decides the bots web server has died

function urlExists($url)

{

$url = ereg_replace("http://", "", $url);

list($domain, $file) = explode("/", $url, 2);

// change the last number below to the timeout you prefer for contacting the server

$fid=fsockopen($domain,80, $errno1, $errstr1,$httpfaulttime);

@fputs($fid,"GET /$file HTTP/1.0\r\nHost: $domain\r\n\r\n");

@$gets = fgets($fid, 1024);

@fclose($fid);

if (ereg("HTTP/1.1 200 OK", $gets)) return TRUE;

else return FALSE;

}

//main routine

if (!urlExists($onlinefile)) {

$chatterson ="IRC Server Fault.\n";

$onlineirc="0";

}

else {

$file = fopen($onlinefile, "r");

while (!feof($file)) {

$buffer .= fgets($file, 4096);

}

fclose($file);

$buffer = strip_tags ($buffer); //get rid of any php or html tags etc

$buffer = chop($buffer); //get rid of the white space

$chatterson ="";

/// routine for placeing the user details into an array and getting online numbers

$temparray = explode ("%20", $buffer);

$temparraysize = sizeof ($temparray);

$k = 0;

for ($i = 0; $i < $temparraysize; $i+=3) {

$bufferarray[handle1][$k] = ($temparray[$i]);

$bufferarray[host][$k] = ($temparray[$i+1]);

$bufferarray[nick][$k] = ($temparray[$i+2]);

$k+=1;

}

$bufferarraysize = (sizeof ($temparray)/3);

$onlineirc = ($bufferarraysize);

$buffercount=0;

//setting the user modes according to the flags set in the nick

for ($buffercount=0; $buffercount < $bufferarraysize; $buffercount++) {

$tempbuff=$bufferarray[nick][$buffercount];

foreach ($killname as $kilvalue) {

if (eregi($kilvalue, $tempbuff)) {

$onlineirc=$onlineirc-1;

$bufferarray[nick][$buffercount] = "";

continue ;

} } }

unset($chatterson);

for ($i = 0; $i < $bufferarraysize; $i++) {

if (!$bufferarray[nick][$i] == "") {

if (!$chatterson == "") {

$chatterson = $chatterson.", ".$bufferarray[nick][$i];

}

else { $chatterson = $bufferarray[nick][$i]; }

}}

}

but nothing to make in the window does not appear the user of
the chat.txt

thanks
jancarlo

Italian

scusa mi sono sbagliato.

ho messo in phpinclude_start lo script:

*****************************

ma niente da fare nella finestra non compaiono gli user del chat.txt

grazie
jancarlo

StevenTN 01-07-2004 10:25 PM

In the future... can you please include code snippets in a text file or at least snip it out?

Anyway...

http://beta.thrillnetwork.net/boards....php?styleid=5

That is using the URL you provided above.

Attached is the nodbremote.txt file that has now been tested with both yours (and mine) text file.

jancarlo 01-07-2004 10:44 PM

excuse for the list.

I see that from you it goes.

to me they give: IRC Serveur Fault.

perhaps it is an allowed problem of of the serveur I will see like
making

thanks of all jancarlo

Italian

scusa per la list.

vedo che da te va.

a me da: IRC Server Fault.

forse è un problema di permessi del server vedrò come fare

grazie di tutto
jancarlo

StevenTN 01-07-2004 11:34 PM

It could simply be that connection problem between your server and where you're getting the text file.

Also, I've been having problems with the DB Local and DB Remote configurations. If anyone who is willing to help me fix these please let me know.

jancarlo 01-11-2004 10:51 PM

if it can make it only appeal to for these rows I have resolved the
problem.

hello
jancarlo

Italian

se può fare piacere solo per questo file ho risolto il problema.

ciao
jancarlo

nighteyes 01-12-2004 08:50 PM

Which eggdrop version are you running this off of btw?


All times are GMT. The time now is 11:19 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.01029 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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