Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Eggdrop Irc Manager Details »»
Eggdrop Irc Manager
Version: 1.0.0.1, by Akex Akex is offline
Developer Last Online: Jan 2008 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 03-13-2006 Last Update: 03-14-2006 Installs: 55
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

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:
As a bot owner, type !refresh to manually refresh the channel. Type !startact to do the initial start of the activity timer. Both these commands should be performed when you first place your bot on the channel or after you rehash it when installing the script. You wont have to run these scripts again, unless your bot exits the channel.

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)
  • Irckey : Do not need to edit irconline.php anymore, just set the key in admincp
  • Irc informations position : You have now 4 diff?rent positions (Not sure it works if you edited FORUMHOME template) : Below navbar, above forum, below forum, below who's online.
Bug fix :
  • Template caching
  • Alteration of FORUMHOME template in plugin (forgot to put the code in ...) try to remove FORUMHOME modifcations you made with this script and test 'Irc informations position' option .
** Don't forget to click install

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 05-23-2008, 08:45 PM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope so, cause this mod a lone might keep my from upgrading if there isn't.
Reply With Quote
  #73  
Old 07-02-2008, 03:17 PM
Ingress Ingress is offline
 
Join Date: Nov 2007
Location: Germany
Posts: 49
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd also be interested in an update for 3.7.x.

Ingress
Reply With Quote
  #74  
Old 07-31-2008, 07:43 PM
reesev reesev is offline
 
Join Date: Dec 2005
Location: TeXaS
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this works fine for 3.7
Reply With Quote
  #75  
Old 08-16-2008, 10:26 PM
tweakmonkey tweakmonkey is offline
 
Join Date: Jul 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']);
}


//////////////////////////
To check to see if the array was blank and only contained "Array", I added:
Code:
                        if ($user!= "Array")
Code:
                        if ($op!= "Array")
Code:
                        if ($halfop!= "Array")
Code:
                        if ($voice!= "Array")
Reply With Quote
  #76  
Old 08-18-2008, 06:55 PM
tweakmonkey tweakmonkey is offline
 
Join Date: Jul 2006
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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']);
Below it add:
Code:
$channel['topic'] = preg_replace('@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@', '<a href="$1" target="_blank">$1</a>', $channel['topic']);
Reply With Quote
  #77  
Old 01-01-2010, 04:08 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #78  
Old 01-01-2010, 05:11 PM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #79  
Old 01-01-2010, 08:05 PM
Raptor Raptor is offline
 
Join Date: Nov 2001
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep I got the Topic sorted (just had to change it in the channel)

Everything works now except the Activity Graphic.
Reply With Quote
  #80  
Old 06-12-2010, 02:05 PM
Warnink Warnink is offline
 
Join Date: Apr 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #81  
Old 06-12-2010, 02:14 PM
HondaATC HondaATC is offline
 
Join Date: May 2004
Posts: 96
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


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 04:15 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.05447 seconds
  • Memory Usage 2,315KB
  • Queries Executed 26 (?)
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
  • (7)bbcode_code
  • (1)bbcode_quote
  • (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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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