Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Users in Chat -with eggdrop, works no matter what- Details »»
Users in Chat -with eggdrop, works no matter what-
Version: 1.00, by sas1911 sas1911 is offline
Developer Last Online: Mar 2007 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-08-2002 Last Update: Never Installs: 18
 
No support by the author.

First and foremost, I would like to thank Sparkz for a little bit of TCL help. I had been playing with the idea for some time now of using an eggdrop bot and vBulletin to put current chatters on my forum home. Unfortunately, I couldn't find the perfect TCL to use. The current TCL is a mix between my own script, a script I found online and Sparkz script.

** YOU MUST HAVE AN EGGDROP BOT **

After seeing this hack on vbulleting.org, I wanted it for my site. Unfortunately, it was not being released, so I decided to make my own! Here it is, hopefully you can figure most of it out yourself.

What it does is uses an eggdrop bot (not going to explain what it is). The bot refreshes the userlist when a user leaves or enters the channel, this keeps the list up to date always. When you load index.php, the list is downloaded from the shell and read into a variable. This variable can be put on your forumhome template
and viewed by the user. This hack also gets the current channel topic and the current server that the chat is on.

Pros:
* Works for any IRC method (jpilot, mirc, eirc, etc.)
* No page refreshing or database calls
* Is ALWAYS up-to-date

Cons:
* Uses FTP and eggdrop

Support for this hack is limited due to the fact that I am a busy person.

I hope you enjoy this hack, it's my first.

- joey

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-02-2002, 12:45 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the delay but I haven't had internet access at home for a few months now, but finally I do. A few people have pm'd me, and some have mailed, so I better answer publically.

However, I have spoken to my co-admin and he is not interested in releasing the hack, so I am afraid I can't, at least not right now. Sorry guys.
Reply With Quote
  #23  
Old 11-10-2002, 12:42 AM
Deathdealer Deathdealer is offline
 
Join Date: Jul 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does anyone have this working on 2.28 ?
Reply With Quote
  #24  
Old 11-10-2002, 02:27 AM
Freddie Bingham's Avatar
Freddie Bingham Freddie Bingham is offline
 
Join Date: Oct 2001
Posts: 506
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The simplest thing to do is simply have the TCL script output the current list of chatters every X secs. Trying to track users as they come and go via join, kick, leave, netsplit is a novel idea but probably going to far. My TCL script has been outputting the current users every 1 min for over 2 years now on my site.
Reply With Quote
  #25  
Old 11-11-2002, 10:07 PM
banjolawyer banjolawyer is offline
 
Join Date: Aug 2002
Location: Huntsville, Ala.
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

freddie: Can you post your tcl file, stripped of any personal stuff?

My host has agreed to set up the eggdrop for me.

Now I am trying to understand what to do with the tcl file.

Anyone:

(1) Should I upload the tcl file to my site's root directory and have the eggdrop reference it there, or does the tcl file get loaded whereever the host puts the eggdrop?

(2) I see that the variables in the tcl file are
(a) the path to userlist.txt, and
(b) the channel name
My host does not have an IRC server at this time, so I am using an external IRC server. However, I don't see where to specify which IRC server to look for the channel. Can anyone tell me how that is accomplished? Is that done somewhere in the eggdrop's config. file or should another variable be added to this tcl file?
Reply With Quote
  #26  
Old 12-27-2002, 06:39 AM
Axe's Avatar
Axe Axe is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The .tcl file should go in your eggdrop directory, and you should have your eggy load it on startup (this is done via the .conf file).

You give the eggdrop a list of servers in its .conf file also.

Check http://www.egghelp.org, they've got some invaluable tips there (including how to compile your bot for long nicks (nicks over the 9 character standard - Dalnet, etc.)

If the IRC server you're using has "Thales" hooked up to it, see if they have web-based URLs to tie it in. Will be easier/quicker to just grab those n' parse them into your page than messing around setting up an eggdrop (although, you won't have the protection/toys in your channel that a bot is capable of offering).

Check http://www.blitzed.org. That's an IRC server with a web-interface. You can just request raw flat text files of channel info to have you script play with.

"Thales" is an IRC Server (at least as far as other servers are concerned) that writes out data real-time to a MySQL database (although this can cause a lot of headaches unless Thales & the MySQL server are both localhost to each other).

I've been playing around with a Bahamut/SIRV/Thales combo recently on our dedicated box to see how I can integrate it into intract with vB/vBHome, so it'll be interesting to see how it all eventually works out for us.

It's mainly so that channel registrants can do exactly this kind of thing without having to mess around.

It's working quite well so far, and as soon as the site goes live, I'll actually give you all the URL to have a play and see it for yourselves
Reply With Quote
  #27  
Old 12-31-2002, 02:28 PM
Kars10's Avatar
Kars10 Kars10 is offline
 
Join Date: Jun 2002
Location: Germany/Franken
Posts: 748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm!!!
Thank you very much!

/me klicks install!
Reply With Quote
  #28  
Old 01-11-2003, 11:30 PM
SaM please help SaM please help is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi,

i´am not a newbie, but i don´t understand "eggdrop".
If it a Script ? - and when, where i can it download and in which direcory on my server i have the "eggdrop" to upload ?

SaM
Reply With Quote
  #29  
Old 01-12-2003, 12:32 AM
Axe's Avatar
Axe Axe is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Eggdrop is a standalone application.

It runs as an automated IRC client sitting in channel(s) on an IRC server.

It, if correctly configure, keeps order in a channel when there's no humans around. Enforces bans, prevents flooding, etc.

Where it resides is entirely up to you, but I wouldn't put it in a directory accessible from the web - it wouldn't be difficult to grab your eggdrop user file and brute-force the passwords (and seeing all the hostmasks for users in the file would also give a potential attacker clues on where to hunt for proxies to spoof & pose as a legitimate bot user).

You can get it from www.egghelp.org.
Reply With Quote
  #30  
Old 02-10-2003, 07:46 AM
pjgoncalves pjgoncalves is offline
 
Join Date: Dec 2001
Location: Portugal
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!

i'm getting this 2 errors when i do the rehash:

Code:
TCL error in script for 'timer11':
can't read "count": no such variable
any idea how to solve this?
Reply With Quote
  #31  
Old 02-10-2003, 05:08 PM
Axe's Avatar
Axe Axe is offline
 
Join Date: Dec 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like the timer is still running after a .rehash

Try doing a .restart or a .reload instead.

Remember though, .restart will restart the whole bot, disconnecting it from the server and logging it back on.

If you do a .reload, anything that's presently stored in memory that hasn't been saved will be lost. So make sure you do a .save and a .chansave before you do the .reload.

How to fix the problem in the actual script so that it won't break on a .rehash... Well, I'll have to get back to you on that. It's been a couple of years since I did much TCL coding, although I have a script here somewhere, that I wrote a while ago, that grabs the IRC info, and writes it out to a MySQL database every minute or so - That requires the tcl-sql library to be installed (which I believe needs root access to the box), but at least it might give me more of a clue about this timer problem.

Quote:
Originally posted by pjgoncalves
[B]Hi!

i'm getting this 2 errors when i do the rehash:
Code:
TCL error in script for 'timer11':
can't read "count": no such variable
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04673 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete