egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Need forum tcl
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Namik
Guest





PostPosted: Mon Jul 26, 2004 1:56 pm    Post subject: Need forum tcl Reply with quote

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

PostPosted: Mon Jul 26, 2004 5:13 pm    Post subject: Reply with quote

*Click* Mr. Green
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Namik
Guest





PostPosted: Tue Jul 27, 2004 1:19 am    Post subject: Reply with quote

]Kami[ wrote:
*Click* Mr. Green

Thanks
Back to top
PLUGGER
Voice


Joined: 30 Nov 2002
Posts: 24

PostPosted: Tue Jul 27, 2004 2:25 pm    Post subject: Reply with quote

]Kami[ wrote:
*Click* Mr. Green



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
View user's profile Send private message Visit poster's website
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Tue Jul 27, 2004 2:40 pm    Post subject: Reply with quote

PLUGGER wrote:
]Kami[ wrote:
*Click* Mr. Green



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 Mr. Green

Well, there was topic about this in Forums allready, so he can find it with 'search' function...
_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Nash0r
Guest





PostPosted: Wed Jul 28, 2004 1:12 am    Post subject: Reply with quote

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

PostPosted: Wed Jul 28, 2004 1:21 am    Post subject: Reply with quote

no problem its sent
_________________
http://www.Plugger.info
Back to top
View user's profile Send private message Visit poster's website
Nash0r
Guest





PostPosted: Wed Jul 28, 2004 1:46 am    Post subject: Reply with quote

Wow, that was fast Surprised

Thank you big time! <3 Mr. Green
Back to top
Nash0r
Guest





PostPosted: Wed Jul 28, 2004 5:31 am    Post subject: Reply with quote

Hmm, it's not working Sad

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 Sad

Did you experience simliar probs?
Any help is appreciated.
Back to top
PLUGGER
Voice


Joined: 30 Nov 2002
Posts: 24

PostPosted: Wed Jul 28, 2004 2:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
PLUGGER
Voice


Joined: 30 Nov 2002
Posts: 24

PostPosted: Wed Jul 28, 2004 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Nash0r
Guest





PostPosted: Wed Jul 28, 2004 7:31 pm    Post subject: Reply with quote

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

Sounded to good to be real Sad
Back to top
]Kami[
Owner


Joined: 24 Jul 2003
Posts: 590
Location: Slovenia

PostPosted: Wed Jul 28, 2004 8:01 pm    Post subject: Reply with quote

*Click*



_________________
Slovene Eggdrop Page
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PLUGGER
Voice


Joined: 30 Nov 2002
Posts: 24

PostPosted: Thu Jul 29, 2004 1:10 am    Post subject: Reply with quote

well im sorry but this does work



Quote:

[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/mainsite/forums/viewtopic.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
_________________
http://www.Plugger.info
Back to top
View user's profile Send private message Visit poster's website
Nash0r
Guest





PostPosted: Thu Jul 29, 2004 2:11 am    Post subject: Reply with quote

Hey PLUGGER, really appreciate your help.
PM send. See you soon =)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber