The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Eggdrop Irc Manager Details »» | ||||||||||||||||||||||||||
Informations
Port of Velocd hacks here : https://vborg.vbsupport.ru/showthrea...threadid=61570 I needed this hack on my forum and I decided to share it with you I didn't create any code, just modified it to suit vBulletin 3.5.x code, and added phrases to allow quick translation . Description A script which report your channel activity on you forum homepage. It give informations about ops, halfops, voice, normal users, topic, channel activity. It will put theses infos under whosonline row in forumhome. You can see on the demo (bottom of this post), that the informations are under navbar (will put it in next version). All you need is an eggdrop : http://www.egghelp.org/ and a channel to scan . Installation 1 : Upload all files in forum root folder to your ftp (follow the folder hierarchy) 2 : Import the product in vBulletin (product-eggdrop_irc_manager.xml) 3 : Go to admincp > vBulletin Options > Eggdrop irc manager options and edit irckey. 4 : Edit ircrefresh.tcl, set the irckey (same as above), path of irconline.php, channel 5 : Upload ircrefresh.tcl to your eggdropt script forlder For Eggdrop, usually "/home/{username}/eggdrop/scripts" For Windrop, usually "c:\windrop\scripts" 6 : Modify your eggdrop conf, add "sources scripts/ircrefresh.tcl" at the bottom of the file 7 : Rehash your eggdrop (.rehash in dcc window in mirc) 8 : First things to do after installation : First refresh your admincp , then go to irc channels menu and set a new channel. Quote:
Demos http://forum.vbulletin-fr.org/ Support Don't ask how to set up an irc channel (it's not the purpose of this topic) Don't ask how to set up an eggdrop : http://www.egghelp.org/ Changelog =============== 1.0.0.1 =============== Adding of two options (Admincp > vBulletin Options > Eggdrop irc manager)
Supporters / CoAuthors Show Your Support
|
Comments |
#72
|
|||
|
|||
I hope so, cause this mod a lone might keep my from upgrading if there isn't.
|
#73
|
|||
|
|||
I'd also be interested in an update for 3.7.x.
Ingress |
#74
|
|||
|
|||
this works fine for 3.7
|
#75
|
|||
|
|||
Great mod!
Works fine for me with 3.7.2 and eggdrop 1.6.18. It took a few minutes to show who was in there but works fine now. One question: Can you show the who's chatting dialog on other template pages? I tried $irc_channels but it does not show anything except on forum_home. Any suggestions? EDIT - I just changed the hook position to global_start for now to make this work. One problem I'm seeing is it says "Array" as a member in the list. Like: Topic: robots are cool, but so are sponges @mattdev, @tweakmonkey, @Voltron, Array, Array, juballharsha EDIT 2 - In case anyone else had this problem, I fixed it by editing the Plugin called [Eggdrop IRC Manager]forum template alteration: Code:
$replace = '<!-- start logged in IRC --> $irc_channels <!-- end logged in IRC -->'; switch ($vbulletin->options['eim_location']) { case 1: $search = '#\$navbar#'; $replace = '\\0 ' . $replace; break; case 2: $search = '#<!-- main -->#'; $replace .= ' \\0'; break; case 3: $search = '#<!-- what\'s going on box -->#'; $replace .= ' \\0'; break; case 4: $search = '#<!-- end logged-in users -->\s*?"\) : \(""\)\)\\."#'; $replace = '\\0 ' . $replace; break; } $vbulletin->templatecache['FORUMHOME'] = preg_replace($search, $replace, $vbulletin->templatecache['FORUMHOME']); /////////// Eggdrop IRC Manager - By Velocd /////////// /////////// Ported By Akex /////////// $channels = $db->query_read(" SELECT * FROM " . TABLE_PREFIX . "irc_channel "); while ($channel = $db->fetch_array($channels)) { $nick_style = explode('||', $channel['nick_style']); $ops = explode(' ', $channel['operators']); $halfops = explode(' ', $channel['halfops']); $voiced = explode(' ', $channel['voiced']); $users = explode(' ', $channel['users']); if (!empty($ops[0])) { foreach ($ops AS $op) { if ($op != "Array") $channel['nick_list'] .= str_replace('{nick}', $op, $nick_style[0] . ', '); } } if (!empty($halfops[0])) { foreach ($halfops AS $halfop) { if ($halfop != "Array") $channel['nick_list'] .= str_replace('{nick}', $halfop, $nick_style[1] . ', '); } } if (!empty($voiced[0])) { foreach ($voiced AS $voice) { if ($voice != "Array") $channel['nick_list'] .= str_replace('{nick}', $voice, $nick_style[2]) . ', '; } } if (!empty($users[0])) { foreach ($users AS $user) { if ($user!= "Array") $channel['nick_list'] .= str_replace('{nick}', $user, $nick_style[3]) . ', '; } } $channel['nick_list'] = substr($channel['nick_list'], 0, -2); if ($channel['activity'] > 40) { $channel['alevel'] = 5; } else if($channel['activity'] == 0) { $channel['alevel'] = 0; } else { $channel['activity'] = $channel['activity']/8; $channel['alevel'] = round($channel['activity']); if ($channel['alevel'] < 1) { $channel['alevel'] = 1; } } $channel['aname'] = $channel["act$channel[alevel]"]; $channel['online_max'] = number_format($channel['online_max']); $channel['online'] = number_format($channel['online']); $channel['date_max'] = vbdate($vbulletin->options['dateformat'], $channel['dateline_max']); $channel['time_max'] = vbdate($vbulletin->options['timeformat'], $channel['dateline_max']); eval('$irc_channels .= "' . fetch_template('irc_loggedin') . '";'); unset($channel['nick_list']); } ////////////////////////// Code:
if ($user!= "Array") Code:
if ($op!= "Array") Code:
if ($halfop!= "Array") Code:
if ($voice!= "Array") |
#76
|
|||
|
|||
Another feature I wanted was to have the topic being shown on my site automatically link URLs, since they are often used in IRC topics.
To do this, edit the [Eggdrop IRC manager]Forumhome template alteration in the Plugin and Plugin Manager in the control panel. Find the line: Code:
$channel['dateline_max']); Code:
$channel['topic'] = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $channel['topic']); |
#77
|
|||
|
|||
I have it working - shows on forumhome also
Only have 2 problems so far Topic isn't showing Activity Graphic isn't changing Suggestions ? Other than that its working great on vb 3.8.4 PL2 |
#78
|
|||
|
|||
I never got the activity graphic working for my setup. The topic does refresh after a while. You need someone to leave/rejoin for it to change if I remember correctly.
|
#79
|
|||
|
|||
Yep I got the Topic sorted (just had to change it in the channel)
Everything works now except the Activity Graphic. |
#80
|
|||
|
|||
Unfortunately this has stopped working for vb4, would anyone be willing to make it compatible again as it was a great addition to our board, I'd do it myself but I wouldn't know where to start.
Also for the people having trouble with the acivity graphic, you need to put the images in the images folder of your style then they'll show up just fine. |
#81
|
|||
|
|||
I could definitely use this on my 4.0 site too. I could make it. Work if I had enough time to gmess with it.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|