This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Need forum tcl

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
N
Namik

Need forum tcl

Post by Namik »

Hi everybody!
I need script wich can read posts from forum (exactly from phpbb2) and post a litle anouncment about this post and who has wrote this post also to show the link to this post.
Can you help me?
if you have such tcl pls send it to namiq_x@yahoo.com or post here.
Thank''s in advance
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

N
Namik

Post by Namik »

]Kami[ wrote:*Click* :mrgreen:
Thanks
P
PLUGGER
Voice
Posts: 24
Joined: Sat Nov 30, 2002 6:54 am
Contact:

Post by PLUGGER »

]Kami[ wrote:*Click* :mrgreen:

very helpfull




think this is something your looking for Namik

Code: Select all

I found in some forums requests on a good script for posting new posts from a phpbb into a irc #channel. On http://forum.egghelp.org I found a fragment of a script from an unknow author for a payboard. Well. Here we go.

INSTALLATION:

Put the phpbb2egg.tcl into your bots /scripts directory and add the line

source scripts/phpbb2egg.tcl

at the end of your bot's .conf. Rehash your baby would be a good idea.

OPEN: posting.php

Search for:

$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
include($phpbb_root_path . 'includes/phpbb2egg.'.$phpEx);

After it add:

include($phpbb_root_path . 'includes/phpbb2egg.'.$phpEx);

Search for:

	if ( $error_msg == '' )
	{
		if ( $mode != 'editpost' )
		{
			$user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
			update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);

Add after:

	//
	//  mod : php2egg
	//
			send2egg($mode, $forum_id, $topic_id, $user_id, str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $channel, $ids, $botip, $botport, $boardurl);
	//
	//   fini mod : php2egg
	//

Now open the included file phpbb2egg.php and fill the following variables with some usefull content:

$channel = "#gaydummies"; //channel to post stuff
$ids = "1 2 3 4 5"; // Id's of your forum to post stuff from
$botip = "62.80.118.90"; // sure the ip to reach your bot
$botport = "13481"; // a good botport
$boardurl = "www.phpbb2egg.pixelsndots.com"; // yes sure :)

Save phpbb2egg.php in /your/phpBB/includes/

That's it.
Garp <garp@pixelsndots.com>

if you want the whole archive give me a shout, and it does work on phpbb cause i have it running on my site and my irc server
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

PLUGGER wrote:
]Kami[ wrote:*Click* :mrgreen:

very helpfull




think this is something your looking for Namik

Code: Select all

I found in some forums requests on a good script for posting new posts from a phpbb into a irc #channel. On http://forum.egghelp.org I found a fragment of a script from an unknow author for a payboard. Well. Here we go.

INSTALLATION:

Put the phpbb2egg.tcl into your bots /scripts directory and add the line

source scripts/phpbb2egg.tcl

at the end of your bot's .conf. Rehash your baby would be a good idea.

OPEN: posting.php

Search for:

$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
include($phpbb_root_path . 'includes/phpbb2egg.'.$phpEx);

After it add:

include($phpbb_root_path . 'includes/phpbb2egg.'.$phpEx);

Search for:

	if ( $error_msg == '' )
	{
		if ( $mode != 'editpost' )
		{
			$user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id'];
			update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id);

Add after:

	//
	//  mod : php2egg
	//
			send2egg($mode, $forum_id, $topic_id, $user_id, str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $channel, $ids, $botip, $botport, $boardurl);
	//
	//   fini mod : php2egg
	//

Now open the included file phpbb2egg.php and fill the following variables with some usefull content:

$channel = "#gaydummies"; //channel to post stuff
$ids = "1 2 3 4 5"; // Id's of your forum to post stuff from
$botip = "62.80.118.90"; // sure the ip to reach your bot
$botport = "13481"; // a good botport
$boardurl = "www.phpbb2egg.pixelsndots.com"; // yes sure :)

Save phpbb2egg.php in /your/phpBB/includes/

That's it.
Garp <garp@pixelsndots.com>

if you want the whole archive give me a shout, and it does work on phpbb cause i have it running on my site and my irc server
Ty :mrgreen:

Well, there was topic about this in Forums allready, so he can find it with 'search' function...
N
Nash0r

Post by Nash0r »

Ohh wow, i'm very interested in this script.
Would you be so kind to send it to c.prahl@gmx.de ?

Would really appreciate it =)

/Nash
P
PLUGGER
Voice
Posts: 24
Joined: Sat Nov 30, 2002 6:54 am
Contact:

Post by PLUGGER »

no problem its sent
N
Nash0r

Post by Nash0r »

Wow, that was fast :o

Thank you big time! <3 :mrgreen:
N
Nash0r

Post by Nash0r »

Hmm, it's not working :(

posting.php (.txt)

Code: Select all

From phpbb2egg.php:
==============

<?php
// version 1.0.1 beta[development]
$channel = "#spider.priv";
$ids = "1 2 3 4 5"; // forums to display posts from
$botip = "82.96.72.4"; // your bot's ip
$botport = "7580"; // a nice port
$boardurl = "http://www.teamspider.org/uber/phpBB2";
(Tried with and without "http://".

Bot IP + Port, URL and Channel is 100%ish correct.

I also changed the Port in the phpbb2egg.tcl.
Added the script, restarted the Bot etc..

One thing is weird tho:

Code: Select all

# you can change the port here, but pls think about to change it to
# the same port on functions_phpbb2egg.php:
There wasn't a file named functions_phpbb2egg.php in the .zip :(

Did you experience simliar probs?
Any help is appreciated.
P
PLUGGER
Voice
Posts: 24
Joined: Sat Nov 30, 2002 6:54 am
Contact:

Post by PLUGGER »

well heres my phpbb2egg.php file

Code: Select all

// version 1.0.1 beta[development]

$channel = "#snakehouse";
$ids = "45 48 4"; // forums to display posts from
$botip = "snakehouse.no-ip.info"; // your bot's ip
$botport = "3334"; // a nice port
$boardurl = "http://www.Plugger.info/mainsite/forums";

also one thing to note - the port number is the same number set in your eggdrop conf file aswell

and here is my .tcl file for the eggy

Code: Select all

# found on egghelp.org a posting by ShavdApe about a phpbb2egg script
# to post live into a channel when a post on a board is made
# add the line source/phpbb2egg.tcl into your .conf and rehash the bot

# you can change the port here, but pls think about to change it to
# the same port on functions_phpbb2egg.php:
listen 3334 script phpbb2eggaccept

proc phpbb2eggaccept {idx} {
control $idx phpbb2eggincoming
}

proc phpbb2eggincoming {idx args} {

putlog "$args"
             set line [join $args]
        if {[join $args] != "" } {
              set chan [lindex $line 0]
set line [lrange $line 1 end]
set line [join $line]
               set line [split $line ";"]
foreach line $line { putserv "PRIVMSG $chan :$line" }
putlog "$line"
        }
killdcc $idx
}
putlog "phpbb2egg.tcl Loaded..."
P
PLUGGER
Voice
Posts: 24
Joined: Sat Nov 30, 2002 6:54 am
Contact:

Post by PLUGGER »

oh and yes your right there is no functions_phpbb2egg.php file

that should read functions/phpbb2egg.php file
N
Nash0r

Post by Nash0r »

Still not working :(
It doesnt return an error message or anything at all actually.

Sounded to good to be real :(
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

P
PLUGGER
Voice
Posts: 24
Joined: Sat Nov 30, 2002 6:54 am
Contact:

Post by PLUGGER »

well im sorry but this does work


[06:11] <|SnakeBot|> New topic! on the Forums:
[06:11] <|SnakeBot|> about the subject test post for eggdrop :
[06:11] <|SnakeBot|> test post to show eggdrop will paste this text
[06:11] <|SnakeBot|> Link: http://snakehouse.no-ip.info/snakehouse ... .php?t=397
and if you reply to this the eggdrop will display it too

are you on MSN messenger if so pm me you addy and ill help you out with it
N
Nash0r

Post by Nash0r »

Hey PLUGGER, really appreciate your help.
PM send. See you soon =)
Post Reply