vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Show users in IRC Chat (no eggdrop) (https://vborg.vbsupport.ru/showthread.php?t=43963)

Smirks 09-25-2002 10:00 PM

Show users in IRC Chat (no eggdrop)
 
Hello,

Current Version: 1.1b

This hack is in very very (very!) beta stage. I'm only announcing in here for documentation and testing purposes. I'm in the process of re-working and re-writing it, so don't expect this to be relevant in a week or two.

Description:
This hack will display a list of users in your IRC based chat room. It will/should work with any chat hack, so long as it's IRC based. The only hack I've tested it with is the eIRC hack. I've tested the script on both Linux and FreeBSD.

How it works:
This hack uses a small perl script and POE::Component::IRC to connect to IRC, join a channel, grab the users, save the info to a file and then exit. It is run via cron to update the list as often as you choose. vB will display this info with a template mod.

What is planned:
I've re-written the script using POE::Component::IRC, which is a little more flexible, so my previous 'planned' list is already complete.

Since this hack is in it's beta state I will only be giving it out via email. If you'd like to have the beta version, please email me, or PM me and I'll get it to you.

Once a week of beta testing is complete I will make this hack available to the general public.

You can see this hack in action at http://bbs.pearl-jam.net or via the screenshot attached.

Version History:
1.0b -
* Inital Release
* Written using Net::IRC perl module

1.1b -
* Re-written using POE::Component::IRC perl module
* Got rid of topic retrieval
* Modified user display to show # of users, and users
* Took out user status (ie- @, +, etc)
* Comified user list
* Can now detect users w/out being in channel (fixes a nasty feature which cause the "bot" to join the channel, gather the info and quit. Now the channel doesn't even know it's being watched)
* Can hide certian users (with a slight code hack [unsupported feature])

garoboldy 09-26-2002 04:10 PM

ok, sign me up for testing...I am needing this really bad....since I cant use eggdrop on my site...thanks...

garoboldy 09-26-2002 04:44 PM

I emailed you back...now I know what you are talking about...sorry..

garoboldy 09-26-2002 04:59 PM

ok, I follow your install....and when I go to my irc-users.pl

I get an internal server error.

not sure whats going on there...

any ideas?

Smirks 09-26-2002 05:05 PM

Quote:

Originally posted by garoboldy
ok, I follow your install....and when I go to my irc-users.pl

I get an internal server error.

not sure whats going on there...

any ideas?

irc-users.pl is to be run from the command line, or cron. It is not meant to be run via the browser.

C

snyx 09-26-2002 05:55 PM

yeah I would LOVE to try this out!!
www.form-kaos.com/board

shoot me a msg to snyxmedia@hotmai.com if ya like :)

Smirks 09-26-2002 06:05 PM

Quote:

Originally posted by snyx
yeah I would LOVE to try this out!!
www.form-kaos.com/board

shoot me a msg to snyxmedia@hotmai.com if ya like :)

I've sent you the hack via email.

snyx 09-26-2002 06:07 PM

will install it after skool man, thx
uhhhh what would I put into the cron "command" feild in my hostcp?

thx,
-myles

Smirks 09-26-2002 06:12 PM

Quote:

Originally posted by snyx
will install it after skool man, thx
uhhhh what would I put into the cron "command" feild in my hostcp?

thx,
-myles

/path/to/irc-users.pl

Crontab file should look something similar to:

Code:

*/5 * * * * /path/to/irc-users.pl
*/5 = run every 5 minutes

garoboldy 09-26-2002 09:28 PM

will let you know if any new errors occur.

ok, updated my post instead of posting again...lol
I did my cron job and made it for every minute....it has yet to make my file and as far as I know all my information is correct....

snyx 09-26-2002 10:01 PM

im getting in error 500 on when I try to run irc-users?
huh..

Smirks 09-26-2002 10:03 PM

Quote:

Originally posted by snyx
im getting in error 500 on when I try to run irc-users?
huh..

Like I said, run it from the command line or cron. The perl module Net::IRC must be installed to work.

snyx 09-26-2002 10:03 PM

smirks u got icq? hit me up if so.. 71926358 or msn snyxmedia@hotml.com

www.form-kaos.com/cgi-bin/irc-users.pl

garoboldy 09-26-2002 10:03 PM

you shouldnt run it in the browser window...I did the same thing without thinking...LOL

you have to run it on cron or command line.

Smirks 09-26-2002 10:04 PM

Quote:

Originally posted by garoboldy
will let you know if any new errors occur.

ok, updated my post instead of posting again...lol
I did my cron job and made it for every minute....it has yet to make my file and as far as I know all my information is correct....

Please make sure the perl module Net::IRC is installed and working properly.

Also, try running irc-users.pl from the command line to see if you get any errors.

snyx 09-26-2002 10:04 PM

Net::IRC? lol

Smirks 09-26-2002 10:06 PM

Quote:

Originally posted by snyx
Net::IRC? lol
Yes, if you have root on the box...

perl -MCPAN -e'install Net::IRC'

garoboldy 09-26-2002 10:07 PM

I dont think I can use command line...I have a cpanel for my site...on my server there are a few other people with sites as well...as far as Net::IRC and will check on that right now.

snyx 09-26-2002 10:08 PM

okay sorry but I have no idea what you just said to do..
sorry for being a pain here

snyx 09-26-2002 10:18 PM

is Net::IRC something I have to install seperatly?
otherwise everything is done and ready to fly.. I just cant figure out that Net::IRC thingy..

KISS 09-26-2002 10:28 PM

Smirks, I'd like to give it a shot.... kisster@cox.net

snyx 09-26-2002 10:51 PM

Quote:

Originally posted by Smirks

Yes, if you have root on the box...

perl -MCPAN -e'install Net::IRC'

as in telnet? cuz I dont have acsess to that :(

garoboldy 09-26-2002 10:55 PM

yeah, it seems like hack is going to require that you have a dedicated server of your own with root access....my host Ventures Online does not have eggdrop abilities, so I tried this...and now I still cannot use this I dont think, because I dont have access to root on the server....

snyx 09-26-2002 11:03 PM

yeah im on ventures too

Smirks 09-26-2002 11:33 PM

Quote:

Originally posted by snyx
okay sorry but I have no idea what you just said to do..
sorry for being a pain here

No worries... you just need to check with ventures to make sure they have the Net::IRC perl module installed on their server.

If they don't, or they won't install it, then this hack won't work.

garoboldy 09-26-2002 11:36 PM

what server you on synx??

garoboldy 09-26-2002 11:48 PM

I was just informed that Ventures online has a strict No IRC policy for their virtual server customers....I guess I am going to have to switch hosts or get a dedicated server..... :devious: :confused: :ermm:

snyx 09-27-2002 04:23 AM

damn.. well looks like were out of luck..
what server are you on? I cant remember, but a keyword may refresh my memory.. if we were on the same one we could complain!! :):)

thanks anyways smirks you have the solution to my problem, but my host is sitting on a stick ;)

garoboldy 09-27-2002 02:53 PM

I am on the Metroid server.
not sure if you are on or not.

Smirks 09-27-2002 03:36 PM

I've modified the irc-users script quite a bit. I've edited my orginal post to reflect the changes made.

JulianD 09-27-2002 05:53 PM

Hey man, I'd like to test it on my server. It could be very helpful for me. thanks

My mail is juliand@laneros.com

Higgins 09-28-2002 08:19 AM

Thats exatley this what in need for my Board. Please could you mail me the Hack for testing at higgi1@web.de ? Thanks in advance

DarkDraco07 09-28-2002 06:09 PM

can i test this hack out too? darkdraco07@msn.com
www.darknemesis.com/forums

NietzscheKid 09-29-2002 11:31 AM

HI Smirks,

Could you pm/email me the hack as well?

Thanks :classic:

kuska 09-29-2002 06:50 PM

Hook me UP !!!

DavidKosiba@hotmail.com

Thanks.

NietzscheKid 09-29-2002 07:00 PM

Woooooooops, i forgot my email addy:

tignasse@t-online.de

Thanks again

N!ck 09-29-2002 08:03 PM

i'd like to try this out... phobe62@yahoo.com if you wouldn't mind... thanks.

xeon 10-01-2002 01:36 PM

Interested also... xeoniii@yahoo.com

N!ck 10-02-2002 02:09 AM

Smirks, where'd you go, bud?

nighteyes 10-05-2002 04:54 PM

I'd like to give it a whirl on our servers... nomailhere@wongfaye.com


All times are GMT. The time now is 05:02 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.01295 seconds
  • Memory Usage 1,808KB
  • 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)bbcode_code_printable
  • (8)bbcode_quote_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
  • (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