vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Eggdrop Irc Manager (https://vborg.vbsupport.ru/showthread.php?t=110362)

Akex 03-13-2006 10:00 PM

Eggdrop Irc Manager
 
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 ;)

Akex 03-14-2006 05:24 PM

No need of template modifications as I created a plugin which modifies the forumhome template.

If you can't manage to get the forumhome template edited do this :

Template forumhome :

Find :

Code:

<!-- end logged-in users -->
Below add :

Code:

<!-- start logged in IRC -->

$irc_channels

<!-- end logged in IRC -->'


Hoffi 03-14-2006 06:45 PM

Ah... So I do not need to release my Port I just wanted to do yet. ;)

bang 03-14-2006 07:52 PM

if your port has any additional features, please release it! :)

Akex 03-14-2006 08:19 PM

You can be sure I will do it.

XanTrax 03-15-2006 04:11 AM

Apparently dreamhost doesnt allow an eggdrop on their hosting. Can anyone else confirm this?

soulface 03-15-2006 05:08 AM

aaahhhhh, been waiting for this...

[high]* soulface installed & working gr8[/high]

Just need to fix this :p

Page generated in 0.53140 seconds with 44 queries (1 queries for uncached templates) [Server Loads: 0.15 0.15 : 0.10]
Uncached templates: irc_loggedin (1)

Code:

<plugins>
        <plugin active="1" product="vbulletin">
                <title>Cache irc_loggedin</title>
                <hookname>cache_templates</hookname>
                <phpcode><![CDATA[$globaltemplates = array_merge($globaltemplates, array('irc_loggedin'));]]></phpcode>
        </plugin>
</plugins>


PitchouneN64ngc 03-15-2006 06:40 AM

More simple to include this plugin in the style_fetch hook with this code:

PHP Code:

$globaltemplates[] = 'irc_loggedin'

Akex, I've put this modification on vbulletin-fr.org, you can get in from there :)

Akex 03-15-2006 08:28 AM

Well, I just forgot to put this :/, I wanted to but as lot of stuff do to, I forgot.

Will fix it in the next version :).

Akex 03-15-2006 09:44 AM

New version : 1.0.0.1 see the changelog above :).

soulface 03-15-2006 10:38 AM

hmmmm Below navbar & below forum working but above forum & below who's online not working... :/

Akex 03-15-2006 10:45 AM

As it works for me, I thinks it's because the html code searched (for replacement) is not in the FORUMHOME template.

I put here the list of searched strings :

Below the navbar : $navbar

Above the forum : <!-- main -->

Below the forum : <!-- what's going on box -->

Below who's online : <!-- end logged-in users --></if>

soulface 03-15-2006 12:44 PM

hmm thx akex, my forumhome templates is heavy modified, so had to fix this things, but 1 thing i couldnt make it work is bellow who's online. so just edit in plugins area from
PHP Code:

$search '#<!-- end logged-in users -->\s*?"\) : \(""\)\)\\."#'

to
PHP Code:

$search '#<!-- end logged-in users -->#'

.
now its working in all area :p

Akex 03-15-2006 01:14 PM

OK, good to read that :).

Reef 03-15-2006 04:35 PM

I don't understand the channel setup and probably am trying the wrong things.. The info for the eggdrop is done and running however I can't figure out how to connect to it..

Could someone please give me an example of the correct info/format to put in the below options?

Handle #
Server

Thanks

Akex 03-15-2006 04:39 PM

Eg.

Handle : #vborg
Server : irc.vbulletin.org

Reef 03-15-2006 04:46 PM

Thanks for the reply

So is Handle actually the room name then?

I just can't figure out how it connects to the proper room and the bot itself in the room...

Akex 03-15-2006 05:02 PM

It doesn't connect to the room. The Eggdrop sends a http request to irconline.php with informations as url arguments.

Man1c M0g 03-16-2006 07:00 PM

WHOA! I've been looking for a conversion of VeloCD's hack for MONTHS! Many thanks m8 - you are my hero of the moment! :D

El_Muerte 03-17-2006 03:08 PM

I can't get it to work. It updates the channel title, but not the activity or the users.

Akex 03-17-2006 03:15 PM

Ok I forgot to put in my first post the first things to do after install ...

I update it ...


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.
Try that :), It should work then.

El_Muerte 03-17-2006 03:32 PM

ok fixed it... halfops wasn't supported

JaniU 03-17-2006 04:56 PM

My egg is working ok and it is sending information to the irconeline.php, so the IRC part whould be just fine. I just can't get this to show anything in the forum. It does not change the FORUMHOME template for whatever reason so I have been trying to add that $irc_channels in various places in the FORUMHOME, but nothing shows up. I don't get any errors either.

Any ideas??

----

Okey I got it working :)
Funny thing, I never logged out from admin after importing the product and stuff. So it never gave me the menu where to set the channel. So I had not done that and I realized it from looking at the screen shots. Perhaps it should say in the instructions, for us dummies, that you might need to logout and login to get all the new menus :)

DragoZERO 03-18-2006 02:01 AM

Quote:

Originally Posted by XanTrax
Apparently dreamhost doesnt allow an eggdrop on their hosting. Can anyone else confirm this?

Yeah.. I just sent a support ticket in like 20 minutes ago and I had this reply:

Quote:

Hello,

On Fri, 17 Mar 2006, you wrote:

> I would like to inquire about the current policy of using IRC bots to
> report channel stats to a forum. Thank you.
>

Sorry, such processes are prohibited on our shared webservers.

James

Akex 03-18-2006 07:53 AM

Quote:

Originally Posted by JaniU
My egg is working ok and it is sending information to the irconeline.php, so the IRC part whould be just fine. I just can't get this to show anything in the forum. It does not change the FORUMHOME template for whatever reason so I have been trying to add that $irc_channels in various places in the FORUMHOME, but nothing shows up. I don't get any errors either.

Any ideas??

----

Okey I got it working :)
Funny thing, I never logged out from admin after importing the product and stuff. So it never gave me the menu where to set the channel. So I had not done that and I realized it from looking at the screen shots. Perhaps it should say in the instructions, for us dummies, that you might need to logout and login to get all the new menus :)

Ok I will add it ;)

Necron 03-19-2006 12:07 AM

For thoes who don't allow guests to view anything,

open irconline.php, find
Quote:

require_once('./global.php')
and replace with
Quote:

require_once('./includes/init.php');
should fix it

mikeylikesitz 03-19-2006 12:44 AM

i cant get this to update. bot is running timer and updating to me in dcc, but no update on forumhome. any ideas?

Akex 03-19-2006 07:42 AM

Did you put the correct url in ircrefresh.tcl ?

mikeylikesitz 03-19-2006 12:33 PM

yes, it has to be something i missed, but i cant see what.

Akex 03-19-2006 02:30 PM

You have to set : in ircrefresh.tcl : the url, the key also (has to be the same than the one defined in admincp/vBulletin Options/eggdrop irc manager options) ...

mikeylikesitz 03-19-2006 02:37 PM

yes, they are all set and everything matches

El_Muerte 03-19-2006 03:34 PM

[feature request]
Add an irc channel setting to ignore a set of usernames.

Akex 03-19-2006 06:57 PM

Quote:

Originally Posted by mikeylikesitz
yes, they are all set and everything matches

Maybe the http module is not loaded ... which version of eggdrop do you use ?


Quote:

Originally Posted by El_Muerte
[feature request]
Add an irc channel setting to ignore a set of usernames.


I was thinking about it :), as I don't want my eggdrop username to be displayed.

mikeylikesitz 03-19-2006 07:05 PM

eggdrop v1.6.17: I havent thought to look to make sure the http module isnt loaded, ill look thru the config and check.

Edit: i dont have the http module, do you have a link to one to use?

Akex 03-19-2006 07:47 PM

eggdrop v1.6.17, http is loaded with the eggdrop, so it's not the problem :(.


In irconline.php

under

PHP Code:

require_once('./global.php'); 

Add this :

Code:

$tmp = fopen("ircdebug.txt", "a");
fwrite($tmp, $_POST['activity']);
fclose($tmp);

It's just for debug purpose.


Then write !startact, and live your channel. This action will make the eggdrop call the irconline.php.

Then look at ircdebug.txt on your ftp and see if it exists and something written in it :).

mikeylikesitz 03-19-2006 08:00 PM

are we sure it loads with eggdrop? any other ideas?

Akex 03-19-2006 08:16 PM

Try the file modification I put above and say me if something is created (it should take some minutes to refresh and write in the file).

mikeylikesitz 03-19-2006 08:33 PM

i dont see that it created a debug file anywhere. I have the irconline.php file in my forum root dir and the ircrefresh.tcl in my bot scripts dir just to give you an idea of where im at

Akex 03-19-2006 08:52 PM

It seems ircrefresh.tcl can't call irconline.php :(. Can't do anything about that.

mikeylikesitz 03-19-2006 09:12 PM

hmm, i dont see any reason it cant. its a dedicated server with the bot runing from my /home and the www running from apache on same machine, there isnt any blocking that im aware of.


All times are GMT. The time now is 05:19 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
  • Page Generation 0.01421 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete