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)
-   -   IRC Manager ( without Eggdrop/Mirc ) (https://vborg.vbsupport.ru/showthread.php?t=99758)

leonsio 10-30-2005 10:00 PM

IRC Manager ( without Eggdrop/Mirc )
 
This is the first release of my irc manager for VB 3.5.
You don't need eggdrop or mirc to run this script.

Multiple irc-servers & channels are supported

This script is based on "Eggdrop IRC Manager"
You can use your old config, you must only change every config and add server_id

Extract and upload all the files from the ROOT folder to your forum root. ( 1x admincp script, 1x admincp-xml, 1x cron script )

After upload, import product-ircmanager.xml.

This product will automatically add a vb-cronjob which runs every 15 min.

How does this script works?
It uses a socket connection to your irc server.
After a successful connection, the script joins your channel(s), collects information then leaves the channel(s).

This is a first version of the script. Later on, I plan to send some forum information to the channel, e.g. 10 last posts.

how does this script works
it use a socket connection to some irc server
after connect is success, the script join your channels collects information and leaves the Channel

this is a first version of the script, later it is planed to leave some forum information in the channel, e.g. 10 last forum messages ?

jluerken 10-31-2005 02:53 PM

Sounds good, can you post some screenshots?

mindfrost82 10-31-2005 03:00 PM

How do you get it to show on your forumhome? There's no template edits or anything.

Also, in the AdminCP, its looking for an act0.gif. Where do I get this?

Sooner95 10-31-2005 04:15 PM

Yea, kinda wondering how this will show up on my board as well..LOL

did everything, whiched went smooth, but if we need a template edit, let us know.

didnt get the act0.gif error here tho..

sctsnipe 10-31-2005 04:25 PM

I would love to try this, but I would also love to see some screenshots first :)

Sooner95 10-31-2005 04:27 PM

based on the last irc manager, for 3.0 It needed the creation of a template (irc loggedin) and also modified a couple others, forumhome ect...

Gonna guess something like this would have to be done in order for this to work, otherwise its doesnt know where to send the data.

Man1c M0g 10-31-2005 06:22 PM

It sounds like a nice idea... but I'd find it super annoying if a bot kept joining and leaving the channel every 15 mins. Is there any way to make it persistent?

thedvs 10-31-2005 09:00 PM

dont mean to be rude but why release this when it doesnt work

leonsio 11-01-2005 06:38 AM

you must activate the irc manager in your admincp

this script doesent make any template changes, just set the script to "on"

go to admincp/VB-Settings/IRC Manager

and set first setting "IRC-Manager aktiviert?" to yes

second setting is the name which the script in IRC has

leonsio 11-01-2005 06:40 AM

Quote:

Originally Posted by Man1c M0g
It sounds like a nice idea... but I'd find it super annoying if a bot kept joining and leaving the channel every 15 mins. Is there any way to make it persistent?


it is posible to write a script (in php ) which is running as a daemon, but for this you need shell account on your server and this solurions need more memory as eggdrop

leonsio 11-01-2005 07:04 AM

so i have fixed some bugs, all settings are now in english
if you use original templates ( forumhome) or modified template but this line is exists "<!-- end logged-in users -->" you doesnt need to make template changes

else you must add "$irc_channels" to the place where you want to have it

thedvs 11-01-2005 10:21 AM

ok leonsio, sorry for being a bit mean yesturday, i'll give it another go.

thedvs 11-01-2005 10:39 AM

Quote:

Originally Posted by leonsio
you must activate the irc manager in your admincp

this script doesent make any template changes, just set the script to "on"

go to admincp/VB-Settings/IRC Manager

and set first setting "IRC-Manager aktiviert?" to yes

second setting is the name which the script in IRC has

i dont see that option activate in my irc manager settings

Sooner95 11-01-2005 11:02 AM

Yea i dont have this either. only thing it admincp is on the left column IRC Manager, where you can add the server and the channels.

If this hack uses a previous hack, as in template edits, then you really need to be more clear. I think you need to start over and update the download files.

leonsio 11-01-2005 11:42 AM

Quote:

Originally Posted by Sooner95
Yea i dont have this either. only thing it admincp is on the left column IRC Manager, where you can add the server and the channels.

If this hack uses a previous hack, as in template edits, then you really need to be more clear. I think you need to start over and update the download files.


hmm youre right
my vbulletin doesent export "product options"...

:/ i must make this by hand

in one min 1 will upload new xml file

sorry :(

leonsio 11-01-2005 11:51 AM

okay new xml ist online

it was a bug in VB ?
product export dont not export settings for one produkt

thedvs 11-01-2005 12:15 PM

working now leonsio :)

GamerJunk.net 11-01-2005 04:46 PM

leonsio, 2 things, you need to change the zip so it is the "includes" folder or people will have trouble getting the cron and IRC Manager nav panel to appear.

Also it doesn't display the time, even your attachment didn't show the time.

Btw, is there a way to prevent this script from stretching the screen when the topic is very long, example http://www.gsnforce.com/forum

Also great script!

MadMan8 11-01-2005 04:58 PM

Hey,

I tried it before you put up the new xml file and it didn't work, i've now uploaded the new xml file (by overwriting the old one) and it still doesn't work. I thought i would try a clean install, i went to the "Manage Products" tab and clicked on uninstall but i get this error message that stops it from uninstalling -

Quote:

Database error in vBulletin 3.5.0:

Invalid SQL:

DROP TABLE
'irc_channel` ,
`irc_server`;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''irc_channel` ,
`irc_server`' at line 2
Error Number : 1064
Date : Tuesday, November 1st 2005 @ 12:56:08 PM
Script : http://******.com/forumba/admincp/plugin.php
Referrer : http://******.com/forumba/admincp/pl...=ircmanager&s=
IP Address : ******
Username : ******
Classname : vb_database
:ermm:

Its a nice idea though and i hope to get it working!

Sooner95 11-01-2005 05:53 PM

Yea, uploaded your "new" xml file, but didnt seemed to do anything diff. Still getting no updates.

I also get same error, when try to uninstall it.

There are no files to uplaod for my mirc correct? nothing to configure?

Sooner95 11-01-2005 06:01 PM

Edit

Ok, i see the additional options.

Vbulletin Options, scroll down to IRC manager

You can set the bot name and enable the forumhome stats.

Will let it go, and see if it works..

Sooner95 11-01-2005 06:39 PM

well, been over a hlaf an hr, still nothin. Should I see the bot connect to our channel?

leonsio 11-01-2005 07:48 PM

Quote:

Originally Posted by RasMasta
leonsio, 2 things, you need to change the zip so it is the "includes" folder or people will have trouble getting the cron and IRC Manager nav panel to appear.

Also it doesn't display the time, even your attachment didn't show the time.

Btw, is there a way to prevent this script from stretching the screen when the topic is very long, example http://www.gsnforce.com/forum

Also great script!



your topic ist to long ^^

i will try to fix this problem :D


Drop Table problem

go to the product settings and click to edit the IRC Manager product

on the right site is the uninstall code

please change


'irc_channel` ,

to

`irc_channel` ,

after this change you can uninstall this script

TyleR 11-01-2005 08:02 PM

very nice :)

[high]* TyleR clicks install[/high]

Sooner95 11-01-2005 10:54 PM

ok, was able to uninstall, tho had to manually remove the irc server table from my sql..

imported the new xml file, so far so good. Now I will wait to see it connect tochan and update board.

(BTW, if you delete your XML file for the Arcade it realy messes things up!! haha)

Sooner95 11-01-2005 11:25 PM

Well, i've had enuff with this one. Doesnt update. at all. I assume it should actually connect to the chan and get the data, however, its been half hr, and nothing. I'l wait for the Eggdrop one, it worked just fine.

Blam Forumz 11-02-2005 12:34 AM

I am unable to change the settings on where to connect... no option and nothing appears on the nav list.

GamerJunk.net 11-02-2005 01:24 AM

I made a quick fix for the wrapping issue but I don't want it in a frame. But this fixes it from stretching the screen.

Template : forumhome_irc_onlineuser

Code:

<tbody>
        <tr>
                <td class="thead" colspan="2">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_$channel[channel_id]')"><img id="collapseimg_forumhome_$channel[channel_id]" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
                        $channel[handle] @ $channel[server_name]: $channel[online] online
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumhome_$channel[channel_id]" style="$vbcollapse[collapseobj_forumhome_activeusers]">
        <tr>
                <td class="alt2"><img src="$channel[icon]" alt="$vbphrase[view_whos_online]" border="0" /></td>
                <td class="alt1" width="100%">
                        <div class="smallfont">
                                <div style="white-space: nowrap">Most users in the chat was $channel[online_max] on $channel[date_max] at $channel[time_max].<br /> <TEXTAREA NAME="wrap_hard" ROWS=5 COLS=120>
Topic:&nbsp; $channel[topic] </textarea>
                                <div style="padding-top: 7px">$channel[nick_list]</div>
                        </div>
                </td>
        </tr>
</tbody>


GamerJunk.net 11-02-2005 01:28 AM

Quote:

Originally Posted by Blam Forumz
I am unable to change the settings on where to connect... no option and nothing appears on the nav list.

You need to upload the "include" folder contents into your "includes" folder.

GamerJunk.net 11-02-2005 01:28 AM

Quote:

Originally Posted by Sooner95
Well, i've had enuff with this one. Doesnt update. at all. I assume it should actually connect to the chan and get the data, however, its been half hr, and nothing. I'l wait for the Eggdrop one, it worked just fine.

Same thing I told Blam. The cron file is not in the correct folder. Move everything from "include" into "includes" on your server.

thedvs 11-02-2005 10:21 AM

This script works fine, but for some reason the bot joins too fast and leaves without counting the correct number of people in the chat channel

MadMan8 11-02-2005 11:14 AM

Well i managed to uninstall it and re-upload the files and i've now got all the options.

The problem now is it doesn't seem to be doing the cron job, well it might be but the bot is not joining the channel. The IRC manager is listed in the "Scheduled Task Manager" but nothing seems to happen every 15 mins. The "Scheduled Task Log" doesn't seem to show any action from the IRC manager.

I've got all the files in the correct folders. :ermm:

Sooner95 11-02-2005 11:58 AM

yea same here Madman... its been about 12 hrs now, and this things hasnt ran once yet.

Have the files in the correct folder, I assumed he ment includes and not include when i started.

ah well...

Sooner95 11-02-2005 12:00 PM

Forced run in Scheduled taska give me this error.

IRC Manager

Warning: Invalid argument supplied for foreach() in /includes/cron/ircmanager.php on line 67

Warning: Invalid argument supplied for foreach() in /includes/cron/ircmanager.php on line 74

Done

MadMan8 11-02-2005 12:58 PM

Just done a forced run myself. Ended up getting the "The page cannot be displayed" error. Tried it again and got this error, it didn't stop bringing the error up until i used my browsers stop button -

Quote:

Warning: fsockopen(): unable to connect to uk.quakenet.org:6667 in /includes/cron/ircmanager.php on line 23

Warning: fputs(): supplied argument is not a valid stream resource in /includes/cron/ircmanager.php on line 24

Warning: fputs(): supplied argument is not a valid stream resource in /includes/cron/ircmanager.php on line 25

Warning: feof(): supplied argument is not a valid stream resource in /includes/cron/ircmanager.php on line 26

Warning: fgets(): supplied argument is not a valid stream resource in /includes/cron/ircmanager.php on line 29

Warning: feof(): supplied argument is not a valid stream resource in /includes/cron/ircmanager.php on line 26

leonsio 11-02-2005 12:59 PM

updated version is online

the scripts stay now 5 seconds in a channel

the titel became after 150 chars breakline

leonsio 11-02-2005 01:01 PM

Quote:

Originally Posted by MadMan8
Just done a forced run myself. Ended up getting the "The page cannot be displayed" error. Tried it again and got this error, it didn't stop bringing the error up until i used my browsers stop button -


your server must have valid network configuration ( DNS )

you can test it by typing from shell

"telnet uk.quakenet.org 6667"

if you get connect to the server, your network settings are correct ;)

MadMan8 11-02-2005 01:12 PM

Quote:

Originally Posted by leonsio
your server must have valid network configuration ( DNS )

you can test it by typing from shell

"telnet uk.quakenet.org 6667"

if you get connect to the server, your network settings are correct ;)

Thanks for your help.

Just tried that and each time it Timed Out. So i'm guessing i can't use this on my forum at the moment. Might ask my web host about it ... not sure what to ask though lol :nervous:

LoOnEyToOnZ 11-02-2005 01:35 PM

Anyone has a demo of this ?

GamerJunk.net 11-02-2005 02:17 PM

Some +++++++ probably banned your bot, like what happened to me because they think they are funny. I put a notice on my forums if anyone messes with the bot they will be banned and he got banned!


All times are GMT. The time now is 05:59 AM.

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.01391 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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