The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Users in Chat -with eggdrop, works no matter what- Details »» | |||||||||||||||||||||||||||
Users in Chat -with eggdrop, works no matter what-
Developer Last Online: Mar 2007
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
|
Comments |
#22
|
||||
|
||||
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. |
#23
|
|||
|
|||
does anyone have this working on 2.28 ?
|
#24
|
||||
|
||||
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.
|
#25
|
|||
|
|||
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? |
#26
|
||||
|
||||
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 |
#27
|
||||
|
||||
Works like a charm!!!
Thank you very much! /me klicks install! |
#28
|
|||
|
|||
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 |
#29
|
||||
|
||||
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. |
#30
|
|||
|
|||
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 |
#31
|
||||
|
||||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|