[DEV] phpbb2eggdrop irc mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Garp
Registered User
Posts: 15
Joined: Tue Feb 24, 2004 8:27 pm
Location: Germany
Contact:

[DEV] phpbb2eggdrop irc mod

Post by Garp »

I found some snipppets for a board2eggdrop scripts and worked on it to get it into a distributedable state. It works with a tcl and a function file, the installation is easy. I have tested it with phpBB2.0.7 and eggdrop 1.6.15 on undernet.

The mod provides automated and highly customisable posting of the newest message from your phpbb into your irc channel


Please give me a feedback.

Here is the download : http://phpbb2egg.pixelsndots.com/phpbb2egg.zip
The zip contains:

README : Install instruction
phpbb2egg.tcl for installation into a eggdrop
phpbb2egg.php for the /includes folder

On the phpbb2egg.php are 5 lines for bot-ip, botport, forum-id's and... well ...


Ok here we go with a list of features for the coming releases:

Step I
* Admin can decide which posts are displayed into the channel: by id of the forum or AND by mode (only new topic, only polls ... or only posts of THE BOSS :P
* Poster on the board can decide weather they want their post additional appearing in the irc channel or not [60% ready]
* Boardmin can enable / disable the posts into the channel. [100% - phpmyadmin table config allow_phpbb2
* botmaster can set +/-phpbb2egg (should be easy but the board will still messaging the bot.)
* boardadmin can set maxlength of messages.
* randomly choosen posts all xx minutes, to prevent the channel to be flooded - set by the botmaster or the boardadmin. (idea)
* easy to manipulate look of the messages into the channel. (flat file editing at the moment, but not so hard to maintain)
* three differnet layouts for 'small and decent' , NOISY and COLORFULL posts. easy and maybe funny :P

Step II
* bbCode -> eggdrop tcl color addaption. choosen settings on phpbb for bold, underline, italic and colors should be transformed into irc code.
* ACP add-on for all above described settings.
* channel-@ should have a way to stop messages if they start to be anoying vie pub_command refering to their flags.

Step III
* multiple language support
* message design via acp


Really, it's fun. it has big advantages from both - a channel manager and a board admins view. It allows deeper discussions then the usual channel- chit-chat, it is good for community building on irc channels. It helps phpBB to be #1 as platform for channel homepages on large networks.
Last edited by Garp on Sat Jun 17, 2006 9:46 am, edited 7 times in total.
Rapid Dr3am
Registered User
Posts: 198
Joined: Sun Jul 13, 2003 4:14 pm
Location: Incommunicado
Contact:

Post by Rapid Dr3am »

:)

Finally someone made this.
JuggleNuts
Registered User
Posts: 117
Joined: Mon Apr 22, 2002 8:24 pm
Location: LightWave 3D
Contact:

Post by JuggleNuts »

awesome. just started using eggdrop on my irc server. will try this out soon.
User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

Hello

Post by Xxh2kxX »

I just go to the demo board u just installing and i try to test .. to post a topic ..

here what i got ...

Code: Select all

no connection made 
Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web1/html/phpbb2egg/includes/phpbb2egg.php:81) in /srv/www/htdocs/web1/html/phpbb2egg/posting.php on line 595

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web1/html/phpbb2egg/includes/phpbb2egg.php:81) in /srv/www/htdocs/web1/html/phpbb2egg/includes/page_header.php on line 474

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web1/html/phpbb2egg/includes/phpbb2egg.php:81) in /srv/www/htdocs/web1/html/phpbb2egg/includes/page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web1/html/phpbb2egg/includes/phpbb2egg.php:81) in /srv/www/htdocs/web1/html/phpbb2egg/includes/page_header.php on line 477
Xiph3r
Registered User
Posts: 342
Joined: Sun Oct 27, 2002 8:21 pm
Location: the wired
Contact:

Post by Xiph3r »

looking forward to the later versions :)
whoo
Registered User
Posts: 575
Joined: Fri Mar 07, 2003 4:12 am

Post by whoo »

Rapid Dr3am wrote: :)

Finally someone made this.


it was done months ago, that script is just not being shared

I already see problems with it being done the way he's doing it.. one, hes opening raw sockets with php, quite a few webhosts disallow that. hes also potentially bogging down a busy forum the way hes calling it with every post, dunno about that, I attempted a similar method and had issues just on my forum. And, as was already mentioned its erroring after posting, and not echoing to the channel. I idle on undernet 24/7, so ill have to keep a watch out
-=DARKMAN=-
Registered User
Posts: 13
Joined: Fri Dec 27, 2002 3:00 pm
Location: Croatia

Post by -=DARKMAN=- »

Edit:
Nevermind. Seems I have enter wrong port
Garp
Registered User
Posts: 15
Joined: Tue Feb 24, 2004 8:27 pm
Location: Germany
Contact:

Post by Garp »

[08:33:59] * Now talking in #phpbb2egg
[08:33:59] * Topic is 'Test the phpbb2egg mod - here and on www.phpbb2egg.pixelsndots.com'
[08:42:05] <WonderBoy> New topic! on our board:
[08:42:06] <WonderBoy> Garp about the subject before I went to sleep I disabled the script :
[08:42:07] <WonderBoy> UUUN I am stupid, before I went to sleep I disabled the script for ... well ... not a real reason :) Now it''s working again ( I am again)
[08:42:09] <WonderBoy> Link: www.phpbb2egg.pixelsndots.com/viewtopic.php?t=25
whoo
Registered User
Posts: 575
Joined: Fri Mar 07, 2003 4:12 am

Post by whoo »

you need help, feel free to ask

Code: Select all

<FATSO> -=[KU]=- New post on forum: Help! :: RE: very very small detail
<FATSO> -=[KU]=- Posted: 03.16.2004 21:58 by [KU]IronMaiden
<FATSO> -=[KU]=- Go see it at http://kuclan.com/board/viewtopic.php?p=4400#4400
Garp
Registered User
Posts: 15
Joined: Tue Feb 24, 2004 8:27 pm
Location: Germany
Contact:

Post by Garp »

Ok it's working again

Another way would be:

Write the post into a flat file and !fetch it with a public trigger or periodically all xx minutes. That would require to run the phpBB and the eggdrop on the same box.

Or you have a proc in the tcl to fetch the flatfile from the phpbb account.

Hmm sounds complicated. Should the mod offer this additional ways?
whoo
Registered User
Posts: 575
Joined: Fri Mar 07, 2003 4:12 am

Post by whoo »

Garp wrote: Ok it's working again

Another way would be:

Write the post into a flat file and !fetch it with a public trigger or periodically all xx minutes. That would require to run the phpBB and the eggdrop on the same box.

Or you have a proc in the tcl to fetch the flatfile from the phpbb account.

Hmm sounds complicated. Should the mod offer this additional ways?


heres what I do.. and its VERY simple :)

I output my forums to TWO xml files via rss feed.. one is for the public, one is for the bot. The bot then reads the RSS feed (the timing is configurable).... since our forum is not especially busy, FATSO checks every 5 mins, it parses the xml into something worth sharing, writes it to a file while comparing the timestamps, and echos it to the channel. It also has a configurable trigger, and nope you dont have to have the bot on the same server, not even for flat text files.. http.tcl allows you to accomplish that.
Your wayis ok, i just have the few concerns I already mentioned here and in the channel.
HelpMePls
Registered User
Posts: 131
Joined: Tue Jul 01, 2003 8:23 am

Post by HelpMePls »

Woah..ive been looking for this and finnaly someone made it...thanks garp. So does it work in all networks and what is the difference between this and eggdrop?
Garp
Registered User
Posts: 15
Joined: Tue Feb 24, 2004 8:27 pm
Location: Germany
Contact:

Post by Garp »

HelpMePls wrote: So does it work in all networks and what is the difference between this and eggdrop?


Thanks to the unknown author of the tcl! :lol:

You need an eggdrop bot for runing that mod. There is no "difference" between it.
Jynks
Registered User
Posts: 242
Joined: Fri May 23, 2003 7:41 am

Post by Jynks »

very interested in this idea for a script... some ideas..

1) Instead of listing all new posts as the happen, have a bot command where you can type say "!new forum name" and in a private massage to the user you typed command you get a list of say the top 5 new posts.

2) add a cmd modifier to it.. "!new forum name #10" so instead of say the default 5 new posts you get 10 etc etc

3) A function so the bot only grabs NEW TOPICS not replys. So say you have a application release forum for various scripts and stuff typing "!new scripts" will only list the new topics and become a kind of release announcer.
gopunkyourself
Registered User
Posts: 122
Joined: Mon Dec 01, 2003 9:41 pm

Post by gopunkyourself »

i use the pjirc chat mod and i was wondering if you could make an addon that would allow me to display what users are in the chat room. It wouldnt even have to involve the chat mod im using but it would grab the users from the irc channel with a script...could you do this?
Post Reply

Return to “[2.0.x] MODs in Development”