The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Currently Active IRC Users Details »» | |||||||||||||||||||||||||||||
I will work on a more user-friendly version of this article, I am not a programmer and this is actually my first modification, so there may still be some glitches. I originally wrote this modification, because I couldn't find any working hack for vBulletin 4 (which is the reason why I am writing these lines on vB.org), so I did some research and after two weeks I finally had a working active IRC nicklist on the forums. The main problem was to figure out, how to print the output of a text file on the forums and displaying it below "Currently Active Users" on FORUMHOME.
Those two articles were very helpful to me: [1] http://www.vbulletin.com/forum/showt...P-or-HTML-File [2] https://vborg.vbsupport.ru/showthread.php?t=242454 Okay, let's start... This modification requires an Eggdrop running on your server, please install and configure it first, before proceeding. On a Debian (Lenny) server you do that with the following command: Code:
$ aptitude install eggdrop Code:
$ mkdir /home/eggdrop $ adduser eggdrop $ chown eggdrop:eggdrop /home/eggdrop $ chmod 700 /home/eggdrop -r Code:
$ cp /usr/share/doc/eggdrop-data/examples/eggdrop.conf.gz /home/eggdrop $ cd /home/eggdrop $ gunzip eggdrop.conf.gz Now let's implement the required modification to get the user list. Code:
$ nano eggdrop.conf Code:
# A few IRC networks (EFnet and Undernet) have added some simple checks to # prevent drones from connecting to the IRC network. While these checks are # fairly trivial, they will prevent your Eggdrop from automatically # connecting. In an effort to work-around these, we have developed a couple of # TCL scripts to automate the process. Code:
source /home/eggdrop/nickplus.tcl [1] http://www.egghelp.org/tclhtml/3478-...1-nicklist.htm and upload the nickplus.tcl to /home/eggdrop Edit the nickplus.tcl to make the necessary changes, read the commented lines! Code:
$ nano nickplus.tcl Code:
# Change dumpfile to the path where you'd like the file to be written. Code:
set dumpfile "/path/to/your/forum/nicklist.txt" Code:
ob_start(); require_once('/path/to/your/forum/irc.php'); $php_include = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('FORUMHOME',array('php_include' => $php_include)); Code:
$ touch /path/to/your/forum/irc.php Code:
<html> <head> </head> <body> <?php $lines = file ('/path/to/your/forum/htdocs/nicklist.txt'); $count = count($lines); if ($count == 1) { echo "There is currently ".$count." user online. Network: irc.rizon.net, Port: 6667, Channel: #yourchannel"; } else{ echo "There are currently ".$count." users online. Network: irc.rizon.net, Port 6667, Channel: #yourchannel"; } echo "<br>"; ?> <font color="#417394"> <?php $fh = fopen("/path/to/your/forum/nicklist.txt", 'r'); $pageText = fread($fh, 25000); echo $pageText; ?> </font> </body> </html> Code:
$ touch /path/to/your/forum/nicklist.txt $ chown eggdrop:eggdrop /path/to/your/forum/nicklist.txt $ chmod 775 /path/to/your/forum/nicklist.txt Find: Code:
<!-- end logged-in users --> </vb:if> {vb:raw template_hook.forumhome_wgo_pos2} <vb:if condition="$show['upcomingevents']"> <div id="wgo_events" class="wgo_subblock section"> <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3> <ol> {vb:raw upcomingevents} </ol> </div> </vb:if> {vb:raw template_hook.forumhome_wgo_pos3} <vb:if condition="$show['birthdays']"> Code:
<!-- irc --> <div id="wgo_irc" class="wgo_subblock section"> <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="Currently Active IRC Users" />Currently Active IRC Users</h3> <ol>{vb:raw php_include}</ol> </div> <!-- end irc --> Code:
$ aptitude install su $ su eggdrop $ cd ~ $ eggdrop -m ./eggdrop.conf Code:
$ eggdrop Any comments, feedback, suggestions? Wanna write a plugin for this or improve this modification? Go ahead, this is free for use. Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
davidg |
Comments |
#2
|
|||
|
|||
Wow, you rock. Tagged and will try it out asap. Already have a network and eggie ready to go.
|
#3
|
||||
|
||||
can the eggdrop be running on someone else's server?
|
#4
|
|||
|
|||
That's technically possible, yes. All ya need is a cron job, uploading the nicklist.txt to your web site's ftp (forum root!). But please keep in mind, that you would loose the real time functionality of your who's online list. Do the following on the server, where your eggdrop is configured at:
Code:
$ aptitude install ncftp Code:
$ crontab -e Code:
*/5 * * * * ncftpget -u ftp_username -p ftp_password ftp_ip '/path/to/your/forum/' './nicklist.txt' &> /dev/null |
#5
|
|||
|
|||
Tagged. Thanks a lot
|
#6
|
|||
|
|||
Thanks for this, I used to use THIS one as my eggdrop is hosted on a separate box from my site, I'm not sure what needs fixing since my move to vB4 but the admin side of it works with the irc info updating fine in there, it just gives a template error on the main site when enabled.
Anyway I'll give this one a shot, thx. |
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
Working on 4.1.11.
@Warnick, the way to get it working on separate servers is to have the irc.php and the nicklicklist.txt and the eggdrop all on the 1 server so they can write/read each other, then just change: Quote:
Quote:
installed on the server the eggdrop is on so you can connect via http |
#9
|
|||
|
|||
hi there i would love if u can install me this please i have no idea how i have already an eggdrop bot installed an runnin on my unrealircd server but i dont know how to install this if u can help me install it plz pm me ur msn then we can talk thankyou downloaed but not installed yet
|
#10
|
|||
|
|||
Wow I rememebr a similar hack from the 3.7x days that rocked, it brought a ton of traffic to my IRC channel, and then after I upgraded to 4.x I could never get it to work again and the channel died off. Definitely gonna have save this for a day when I got some time and see if I can get it working again
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|