![]() |
Quote:
|
OK got this working now. Trick is to use the userchatting.tcl from the second .zip file attached to this thread and make this change (also from elsewhere in the thread):
Find: Code:
bind join - "$i2h_chan %" i2h:make Code:
bind sign - "$i2h_chan %" i2h:make replace: Code:
eval("dooutput(\"".gettemplate('forumhome')."\");"); Code:
if(file_exists('<homedir>/www/forums/chatuserlist.txt')) Code:
<smallfont> |
The above only is valid if yuo have your eggdrop running on the same server as you host the forum.
|
If you actually own the IRC server, or have access to add servers to the IRC network (as opposed to just having a channel on somebody's network), it might be worth looking into Thales.
I've been using it on our site for a couple of months now. It basically hooks up to the network, and for all intents & purposes, it's just another IRC server on the network, like Bahamut or IRC services. The only difference is that it doesn't accept users. It stores live data regarding all the channels & users in a MySQL database, then you can just use standard queries to call the information. If you don't have access to add servers, perhaps you could contact the people who do run the network and see if they want to install it and make some kind of web-based API so you can grab information and parse it out in your own scripts (something I've done with Thales so users who run channels on my server can call the live information regarding their channel and publish it on their own sites). Here's a live example of it running. http://chat.reptilerap.com <-- The URL of the main chat site, scripts directly querying the database. ReptileRooms.com Chat Page <-- URL of an external site that has no access to the database, yet manages to show the channel information through the web-based API I wrote. I can't remember the URL off-hand, but just go to google and search for "Thales IRC" and it'll come up on the first page of results :) |
Nice hack! The TCL works great. We added a timer as well and the updates work great, thanks.
We do however have webspace on the same server we run our eggdrop bot and were able to avoid using the FTP method. The eggdrop bot server and the Forums Server are different locations though and we get to the file created by the eggdrop's userschatting.TCL script like this... The TCL script is in /home/username/eggdrop/scripts The web space is at /var/www/html/ We created /var/www/html/ircstats then we linked to /home/username/eggdrop/scripts/userlist.txt To link the files in linux(we did it as root)... link /home/username/eggdrop/scripts/userlist.txt /var/www/html/ircstats/userlist.txt The second file is created by the link command and should not exist. Now whenever the bot updates the main file, the linked file will reflect the changes to be accessable to the web via HTTP. This is the code we used in the index.php file to fetch the userslist.txt when a user accesses index.php, the forumhome. PHP Code:
|
While reading the thread a few things came up that we would like to share. Here are our TCL modifications to Joey's great irc hack.
1) Putting the "No matter what" back in to the title, a Timer. This method allows the script to wait for the user to exit before compiling the stats. No more two users have to exit to decrement the count. Plus since the userslist.txt is updated within 5 seconds of any bound event, there is no need for a constantly running timer. The file updates only when necessary. 2) Remove the bot from the list and the count. Done! If that's what ya want, it's in here. Thanks again to Joey for Excellent code to work with! Although this is TCL, I'm gonna tag it php. PHP Code:
Regards |
hi there,
i try all files and stuff in this Thread, but nothing would work.... ok, here is what i have, make and what comes out: What i have: eggdrop v1.6.13, on Linux 2.4.19-4GB What i make: put the tcl in scripts dir, bind it in config, make rehash/restart and it comes ---> with orginal script... the count problem, with modified orginalscript (like the postings here) (17:38:04) (Bloodcult) [16:37] SaS IRC nick list loaded. (17:38:04) (Bloodcult) [16:37] Userfile loaded, unpacking... (17:38:15) (Bloodcult) [16:38] Tcl error in script for 'timer3': (17:38:15) (Bloodcult) [16:38] wrong # args: should be "auth hand idx args" with the tcl from noppid: (17:33:13) (Bloodcult) [16:32] SaS IRC nick list loaded. (17:33:13) (Bloodcult) [16:32] Userfile loaded, unpacking... (17:33:14) (Bloodcult) [16:33] Tcl error in script for 'timer6': (17:33:14) (Bloodcult) [16:33] wrong # args: should be "auth hand idx args" (17:33:15) (Bloodcult) [16:33] Tcl error in script for 'timer7': (17:33:15) (Bloodcult) [16:33] extra characters after close-quote every time someone leaves or joins my channel it comes the same errors... so what can i do? thanks for answer |
Is it possible to get the status characters in front of a username? (@, %, +) If so, is it also possible to get another? irc.resum.net allows admins (! char), can that be included?
Thanks, ~Bumpaneer |
Code I found if someone can modify it:
PHP Code:
|
Bloodcult, the code posted above has been running fine for us on
Eggdrop v1.6.12 (C) 1997 Robey Pointer (C) 2002 Eggheads and RHL8.0. I'm at a loss for suggestions other then check the path to the files and be sure they exist. |
All times are GMT. The time now is 01:10 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|