Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #2  
Old 07-09-2002, 01:09 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not everyone has PHP compiled with the ftp-extension. Could cause some problems. Also, this WILL slow down page loading, since it needs to connect to a remote host to grab the users every time the page is loaded. And if you have a busy site, you will also bog down the bot with a lot of traffic.

Just a couple of pointers you might want to consider for a future version
Reply With Quote
  #3  
Old 07-09-2002, 01:10 PM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And where can I get the eggdrop bot? But I guess if guy says it will slow down loading then I'm not installing it XD
Reply With Quote
  #4  
Old 07-09-2002, 01:56 PM
sas1911 sas1911 is offline
 
Join Date: Apr 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was the easiest method I could think of.

If I had a dedicated server, I'd stick the eggdrop right on the same server and eliminate some of the problem. (which you can do anyway).

If the bot load gets too high, you can remove the bind and put in a timer. (if you know tcl - which I am not really good with).

So, to completely optimize this script, get a dedicated server, run your eggdrop off of that and use a timer instead of bind.

Until then, feel free to play/optimize this hack.
Reply With Quote
  #5  
Old 07-11-2002, 06:00 PM
jcroft jcroft is offline
 
Join Date: Nov 2001
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey there!

I've been looking for something like this. Having a bit of trouble with it, though.

I've changed the config vars in userschatting.tcl, and uploaded it. It loads fine with my eggdrop, and the userlist.txt is created. However, no user data is ever appended to the list. Do i have to do something to start the process?
Reply With Quote
  #6  
Old 07-11-2002, 07:20 PM
sas1911 sas1911 is offline
 
Join Date: Apr 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The userlist file is updated when a user joins the channel.
Reply With Quote
  #7  
Old 07-11-2002, 07:33 PM
jcroft jcroft is offline
 
Join Date: Nov 2001
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I understand that's how it's supposed to work. However, it's not working. I've had users going in and out of my channel for two hours now, and I'm left with an empty file.

Any suggestions?
Reply With Quote
  #8  
Old 07-12-2002, 01:31 AM
sas1911 sas1911 is offline
 
Join Date: Apr 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this tcl. If this doesn't work, you installed it wrong, because this is the exact tcl that I'm using on my eggdrop and everything is working for me. What version of eggdrop do you have?
Reply With Quote
  #9  
Old 07-14-2002, 06:10 AM
futureal futureal is offline
 
Join Date: Feb 2002
Location: Del Mar, CA, USA
Posts: 556
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To speed this up, I would suggest having the eggdrop update a database table at regular intervals, and then have vBulletin pull that information straight from the database. That should fix any sort of major page load issues.

(I have not looked at the code or anything, so maybe that is how it already does it? I dunno... but that's how I would do it).
Reply With Quote
  #10  
Old 07-14-2002, 10:34 AM
Martin64's Avatar
Martin64 Martin64 is offline
 
Join Date: Nov 2001
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! I read about this hack here and thought it seemed interesting, so I downloaded the attached file and had a look at it. I decided to have a go at it, so I spoke to one of the other server admins who is operating our IRC bots, and asked him if he could add the script to a bot. He thought it was a great idea as well, so he re-wrote the TLC script and the code implented to index.php and I did some simple template modifications. I turned out great and I love it . I made it look similar to the "Currently Active Users" box and put it right below it.

Users with @ in front of their nicks are Operators, with + in front of their nicks are voiced users and the others are regular users. "Most Users Ever Online in #Channel" will be worked on next. The list is updated whenever someone joins, parts, quits, get kicked or get banned.

The users are sorted by status (Op -> Voiced -> Reg. Members) and alphabetically as well. I would have to check with my fellow server admin if he wants to release it as a hack, but I don't think that would be a problem (if there's interest, that is), and if so, I'll release it as a separate hack since the code is completely different (although Major thanks to sas1911 for presenting this idea). Check out the attached screenshot and view it online at www.emutalk.net
Reply With Quote
Reply

Thread Tools

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 07:40 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.04560 seconds
  • Memory Usage 2,284KB
  • Queries Executed 23 (?)
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
  • (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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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