vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   IRC Manager ( without Eggdrop/Mirc ) (https://vborg.vbsupport.ru/showthread.php?t=99758)

thedvs 11-02-2005 05:27 PM

the scritps working fine, but now even if the bot stays in for a minute or more, its still not counting the correct number of users & ops

GamerJunk.net 11-02-2005 05:31 PM

What where it says 0 online?

nitro 11-02-2005 05:34 PM

Nice mod but only really good for dedicated server renters/owners Most web hosts block all known irc ports.

Sooner95 11-02-2005 06:22 PM

Quote:

your server must have valid network configuration ( DNS )

you can test it by typing from shell

"telnet uk.quakenet.org 6667"

if you get connect to the server, your network settings are correct
These are the kinda things you should really let people know up front. If the fail the test, then they don't have to bother wasting time with this.

JohnBee 11-03-2005 03:04 AM

I installed it, yes... telnet responds fine.

I get this when I run the cronjob:
Code:

IRC Manager
Warning: Invalid argument supplied for foreach() in /includes/cron/ircmanager.php on line 68
Done

The bot joins and leave the channel, stats are updated on the homepage but not properly there is no time/date stamp or topic and the currently online stats are not display'd either.
Code:

#myirc @ irc.server: 0 online
Most users in the chat was 2 on at .
Topic:
ST_Away, eM_eSS_Kay

NOTE: The stats are not carried over properly on the homepage however they are recorded and display'd in the ACP > Channel Administration > Modify a channel, there is not topic set btw. so I can't confirm that is a problem at this time:
Code:

#myirc          irc.server.net:6667                              0          2          11-03-2005          ST_Away, eM_eSS_Kay          [edit]
So the cronjob doesn't work properly at this time, perhaps this release should go into beta, at least until it works a little more.

JohnBee 11-03-2005 03:33 AM

UPDATE: The invalid argument cronjob error is caused by missing #channel topic.
Code:

IRC Manager
Warning: Invalid argument supplied for foreach() in /includes/cron/ircmanager.php on line 68
Done

I added a topic and the error disapeared. I guess a condition in ircmanager.php on weither a topic is present could help resolve this error.

leonsio 11-03-2005 06:47 AM

Quote:

Originally Posted by JohnBee
UPDATE: The invalid argument cronjob error is caused by missing #channel topic.
Code:

IRC Manager
Warning: Invalid argument supplied for foreach() in /includes/cron/ircmanager.php on line 68
Done

I added a topic and the error disapeared. I guess a condition in ircmanager.php on weither a topic is present could help resolve this error.

which server ( irc ) software do you use?
can you tell me per PM addresse from your server, i will test it

i have testet this bot with the Unreal IRCd and it works fine

JohnBee 11-03-2005 09:24 AM

its unreal iRCD running under win32 server. Do you think all the other anomalies "no date stamp, no of people in chan. etc." are related to that?

jluerken 11-03-2005 11:37 AM

Please include an act0.gif image to the .zip file :D

Vizionz 11-05-2005 09:29 PM

how long till there is a eggdrop version of this with the updated features like posting the last so many posts or topics in the chatroom. also if its eggdrop you should script it where it acts like this

every 15 minutes

it will display forum stats

there are currently 20 members 120 guests active on Your@site.com
There has been 20 new topics and 40 replies in the last 15 minutes
( type !topics for a list of The lastest topics or !posts for a list of the latest posts...

then the eggdrop should Check every minute or every 5 minutes how many users are in the chat and display that to the forum...

Is that possible for you to accomplish ?

SoulForge 11-06-2005 09:47 AM

Where can u get an IRC server from??

rzpvile 11-07-2005 02:02 PM

I upload the files but I dont see where I put the xml file.

Vizionz 11-08-2005 04:59 AM

Quote:

Originally Posted by SoulForge
Where can u get an IRC server from??

you can rent one for like 10 bucks a month or twenty search google .. or you can use a already existing irc server. like irc.efnet.net or irc.rizon.com and so on

Mith 11-08-2005 02:55 PM

A couple of questions.

1. would you use irc.uk.quakenet.org or just uk.quakenet.org ?
(yes my channel is on the quakenet network)

2. server name and server address... which would i use for which? it should give examples of what to put in the boxes...

Also I think handle should be renamed to channel name... it is a bit ambiguous.

Lastly the bot does not get the stats for me....

If i force-run the cron job i get this:

Code:

IRC Manager

Warning: main(): Unable to access /usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman in /admincp/cronadmin.php on line 64

Warning: main(/usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 64

Warning: main(): Failed opening '/usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /admincp/cronadmin.php on line 64

Done

Any help from the author with these problems appreciated.

HansMuenchen 11-10-2005 08:34 PM

Hi!

Can it be that the bot can't use rooms who are password protected?
I don't get any error from the script when I run it. But I also don't see the bot.
I also don't see the line at the bottom like on the screenshot??

What I must do, if I want let join the bot a password protected room and how I can check if the bot works or not?

Thnx for your help.

Greetings out of Munich
Hans

quasan 11-11-2005 04:06 PM

hi :)

I use euirc.net because they will give you a bot which provides you an url with an array of the chatting users. From there it is very easy to grab the array from the url and integrate the "who is chatting" list into your vb or site :ninja:

thedvs 11-11-2005 04:15 PM

the only thing wrong with this script is that its not showing the realtime users in the irc channel (it shouldnt part the channel)

leonsio 11-11-2005 05:09 PM

on monday in will release an bugfix

for current users online ( count )
and other little fixes

lanc3lot 11-12-2005 09:44 AM

Exm so better wait till monday or install it rightway?
:)

HansMuenchen 11-12-2005 10:01 AM

Quote:

Originally Posted by leonsio
on monday in will release an bugfix

for current users online ( count )
and other little fixes

Hi!

Well if you post a bugfix, maybe you also have a look on the performance.
Because I see the script has open onto the server a lot of tasks. Means allways if the bot start there will be open a new http task on the server.

Greetings
Hans

Dstephan 11-13-2005 01:51 AM

What information needs to go in this line:

"This name the scrippt will use on IRC-Server" is it the URL to your channel? or something else?

Also nothing displays on ForumHome and yes I've set it to "active" under the vB options.

And also has anyone integrated this as a module into vbAdvanced?

leonsio 11-14-2005 10:40 AM

updated version ist online

some bugs fixed

password protected channels are now accepted, please give the channels in this form
"#channel password"

on the forum home you will find only the channel name


Quote:

Originally Posted by leonsio
if you use original templates ( forumhome) or modified template but this line is exists "<!-- end logged-in users -->" you doesnt need to make template changes

else you must add "$irc_channels" to the place where you want to have it (FORUMHOME)

in the Server Manager you must give the IP or hostname of your irc-server
at channel manager you must give the channel name ( #example )

Jenta 11-14-2005 02:28 PM

thanks, installed
not sure why but its not counting ops

EasyTarget 11-14-2005 06:31 PM

/me installs
thanks for the hack.
seems to be counting ops for me. I was wondering on how to keep the bot in the room instead of joining/dropping, and if the query can happen everytime the forumhome is loaded.

I need the change the text too because for me its all the same color. (chan info, topic and users)

leonsio 11-14-2005 06:53 PM

the way to lets the bot in the channel, is to run the cript as daemon under linux
you can make this only if you have shell account

php is not the right script-language to make daemons which runs permamently ( but it is posible ), whe script needs more memory as eggdrop, so you should install eggdrop ;)

GamerJunk.net 11-14-2005 08:27 PM

Quote:

Originally Posted by quasan
hi :)

I use euirc.net because they will give you a bot which provides you an url with an array of the chatting users. From there it is very easy to grab the array from the url and integrate the "who is chatting" list into your vb or site :ninja:

I keep getting a not authorized to connect to the server and I entered in /notice FB651338 nospoof like it said but no help.

EasyTarget 11-15-2005 12:09 AM

Quote:

Originally Posted by leonsio
the way to lets the bot in the channel, is to run the cript as daemon under linux
you can make this only if you have shell account

shell access to the webserver or the irc server? I can use the shell on the website but I don't have access to that for the irc server.

leonsio 11-15-2005 06:34 AM

you must have shell access on your webserver

Jenta 11-15-2005 08:23 AM

I was mistaken before when I said it was not counting ops. What it seems to be doing is missing one person. When I first tested it, it was only me and an op. Right now there are 4 people in the channel and it counts 3 plus the scripts connection but not the 4th person.

Any idea what is causing this?

leonsio 11-15-2005 09:58 AM

is the 4th person the script self?

Jenta 11-15-2005 10:12 AM

No the 4th person is a real person but what I get is this...
Quote:

4 online
Person1, Person2, Person3, the script
It should be 5 counting the script. It would be better if it didnt count the script username.

Jenta 11-15-2005 10:17 AM

I took a chance and changed a 6 to a 5 and it is counting correctly now but the last person gets a ":" in front of their name.

PHP Code:

// Ab 6 beginnen die Namen
for($i=5$i<count($p); $i++) 

Quote:

5 online
Person1, Person2, Person3, :Person4, the script

leonsio 11-15-2005 10:27 AM

which server software do you use?

Jenta 11-15-2005 10:55 AM

This...
Quote:

Welcome to the Rizon Internet Relay Chat Network Anonymous
Your host is irc.tokyotosho.com[irc.tokyotosho.com/6667], running version PleXusIRCd-2.0.9p1

Mith 11-15-2005 04:49 PM

Quote:

Originally Posted by Mith
A couple of questions.

1. would you use irc.uk.quakenet.org or just uk.quakenet.org ?
(yes my channel is on the quakenet network)

2. server name and server address... which would i use for which? it should give examples of what to put in the boxes...

Also I think handle should be renamed to channel name... it is a bit ambiguous.

Lastly the bot does not get the stats for me....

If i force-run the cron job i get this:

Code:

IRC Manager
 
Warning: main(): Unable to access /usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman in /admincp/cronadmin.php on line 64
 
Warning: main(/usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman): failed to open stream: No such file or directory in /admincp/cronadmin.php on line 64
 
Warning: main(): Failed opening '/usr/local/psa/home/vhosts/blahblah.com/httpdocs/forums/includes/cron/ircman' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /admincp/cronadmin.php on line 64
 
Done

Any help from the author with these problems appreciated.

I updated to your latest version.

I recieve the exact same problems.. and still have the same questions I'd like answered

Thanks

Jenta 11-15-2005 05:02 PM

Use irc.uk....

The server name you would use something like "Quaknet" then for server address something like "irc.quakenet.net".

For your errors, try adding this to the end of includes/cron/ircmanager.php
PHP Code:

log_cron_action('IRC Stats Updated'$nextitem); 


Mith 11-15-2005 05:23 PM

Quote:

Originally Posted by Jenta
Use irc.uk....

The server name you would use something like "Quaknet" then for server address something like "irc.quakenet.net".

For your errors, try adding this to the end of includes/cron/ircmanager.php
PHP Code:

log_cron_action('IRC Stats Updated'$nextitem); 


I've added the code ... the bottom lines of ircmanager.php now look like this.... BUT i still get the same error as before :-(
Code:

}
function parse_topic($data)
{
 $channel=array();
 $p=explode(' ',$data,5);
 $p[3]=strtolower($p[3]);
 $p[4]=preg_replace('/^\s*\:/','',$p[4]);
 
 $channel[$p[3]]=wordwrap($p[4], 150, "<br/>");
 
 return $channel;
}
log_cron_action('IRC Stats Updated', $nextitem);
?>

any further help appreciated

EasyTarget 11-15-2005 05:41 PM

Quote:

Originally Posted by leonsio
the way to lets the bot in the channel, is to run the cript as daemon under linux
you can make this only if you have shell account

is this something that you can explain easily or should I just leave it alone? I'd much rather have the bot just stay in the irc room.
thanks.

Jenta 11-15-2005 06:58 PM

line 64 is this..
PHP Code:

include_once(DIR '/' $nextitem['filename']); 

sounds like its not finding the cronfile

Look at the path in the cronjob. It should be...
./includes/cron/ircmanager.php

lanc3lot 11-15-2005 09:11 PM

I cant get it working, and when i try to uninstall it i have the following sql error:

Code:

Database error in vBulletin 3.5.0:

Invalid SQL:

DROP TABLE
'vb3new_irc_channel` ,
`vb3new_irc_server`;

MySQL Error  : You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near ''vb3new_irc_channel` ,
`vb3new_irc_server`' at line 2
Error Number : 1064
Date        : Wednesday, November 16th 2005 @ 01:05:55 AM
Script      : http://www.gamers.gr/forums/admincp/plugin.php
Referrer    : http://www.gamers.gr/forums/admincp/plugin.php?do=productdelete&productid=ircmanager&s=
IP Address  : 62.1.243.196
Username    : lancelot
Classname    : vb_database

Any help?:(


All times are GMT. The time now is 10:56 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.01675 seconds
  • Memory Usage 1,841KB
  • 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
  • (9)bbcode_code_printable
  • (4)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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