| View previous topic :: View next topic |
| Author |
Message |
Namik Guest
|
Posted: Mon Jul 26, 2004 1:56 pm Post subject: Need forum tcl |
|
|
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 |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
|
| Back to top |
|
 |
Namik Guest
|
Posted: Tue Jul 27, 2004 1:19 am Post subject: |
|
|
Thanks |
|
| Back to top |
|
 |
PLUGGER Voice
Joined: 30 Nov 2002 Posts: 24
|
Posted: Tue Jul 27, 2004 2:25 pm Post subject: |
|
|
very helpfull
think this is something your looking for Namik
| Code: |
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 _________________ http://www.Plugger.info |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
Posted: Tue Jul 27, 2004 2:40 pm Post subject: |
|
|
| PLUGGER wrote: |
very helpfull
think this is something your looking for Namik
| Code: |
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
Well, there was topic about this in Forums allready, so he can find it with 'search' function... _________________ Slovene Eggdrop Page |
|
| Back to top |
|
 |
Nash0r Guest
|
Posted: Wed Jul 28, 2004 1:12 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
PLUGGER Voice
Joined: 30 Nov 2002 Posts: 24
|
|
| Back to top |
|
 |
Nash0r Guest
|
Posted: Wed Jul 28, 2004 1:46 am Post subject: |
|
|
Wow, that was fast
Thank you big time! <3  |
|
| Back to top |
|
 |
Nash0r Guest
|
Posted: Wed Jul 28, 2004 5:31 am Post subject: |
|
|
Hmm, it's not working
posting.php (.txt)
| Code: |
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: | # 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. |
|
| Back to top |
|
 |
PLUGGER Voice
Joined: 30 Nov 2002 Posts: 24
|
Posted: Wed Jul 28, 2004 2:06 pm Post subject: |
|
|
well heres my phpbb2egg.php file
| Code: |
// 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: |
# 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..." |
_________________ http://www.Plugger.info |
|
| Back to top |
|
 |
PLUGGER Voice
Joined: 30 Nov 2002 Posts: 24
|
Posted: Wed Jul 28, 2004 2:09 pm Post subject: |
|
|
oh and yes your right there is no functions_phpbb2egg.php file
that should read functions/phpbb2egg.php file _________________ http://www.Plugger.info |
|
| Back to top |
|
 |
Nash0r Guest
|
Posted: Wed Jul 28, 2004 7:31 pm Post subject: |
|
|
Still not working
It doesnt return an error message or anything at all actually.
Sounded to good to be real  |
|
| Back to top |
|
 |
]Kami[ Owner

Joined: 24 Jul 2003 Posts: 590 Location: Slovenia
|
|
| Back to top |
|
 |
PLUGGER Voice
Joined: 30 Nov 2002 Posts: 24
|
Posted: Thu Jul 29, 2004 1:10 am Post subject: |
|
|
well im sorry but this does work
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 _________________ http://www.Plugger.info |
|
| Back to top |
|
 |
Nash0r Guest
|
Posted: Thu Jul 29, 2004 2:11 am Post subject: |
|
|
Hey PLUGGER, really appreciate your help.
PM send. See you soon =) |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|