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 

PHPBB

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Thu Mar 06, 2008 11:51 am    Post subject: PHPBB Reply with quote

Hello guys

I have now my PHPbb TCL Script. Now i have a Problem, when someone post a thread he post also on the channel thats ok. But we have internal staff forums. And when someone post the bot write also our message:

e.g.
1.
« @ForumBot » New topic! on our board:
« @ForumBot » CyberWar about the subject StaffChat :
« @ForumBot » Hello Test blaaaa
« @ForumBot » Link: www.bla.bla/forum/viewtopic.php?t=194\

I dont know where i can change....the script must write only this

2.
« @ForumBot » New topic! on our board:
« @ForumBot » Nick: TestNick
« @ForumBot » Link: www.bla.bla/forum/viewtopic.php?t=194\

I want this in the Point Two
Back to top
View user's profile Send private message
lazy idiot
Voice


Joined: 30 Nov 2007
Posts: 1

PostPosted: Thu Mar 06, 2008 1:12 pm    Post subject: Reply with quote

Hello!
I also have a script. We should become friends! Wink
PS: You didn't say what script you're using.
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu Mar 06, 2008 1:33 pm    Post subject: Re: PHPBB Reply with quote

CyberWar wrote:
Hello guys

I have now my PHPbb TCL Script. Now i have a Problem, when someone post a thread he post also on the channel thats ok. But we have internal staff forums. And when someone post the bot write also our message:

e.g.
1.
« @ForumBot » New topic! on our board:
« @ForumBot » CyberWar about the subject StaffChat :
« @ForumBot » Hello Test blaaaa
« @ForumBot » Link: www.bla.bla/forum/viewtopic.php?t=194\

I dont know where i can change....the script must write only this

2.
« @ForumBot » New topic! on our board:
« @ForumBot » Nick: TestNick
« @ForumBot » Link: www.bla.bla/forum/viewtopic.php?t=194\

I want this in the Point Two
If you want support for the script, you have to either contact the script's author (at least make the attempt to do so) or post the script here (using 'Code' tags).
No one can help you with a script they do no see.
Back to top
View user's profile Send private message
tueb
Halfop


Joined: 04 Oct 2007
Posts: 76
Location: #quiz.de @ irc.gamesurge.net

PostPosted: Thu Mar 06, 2008 2:52 pm    Post subject: Reply with quote

Hi,

using an rss-reader would do the trick.

tueb
Back to top
View user's profile Send private message Visit poster's website
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Thu Mar 06, 2008 4:29 pm    Post subject: Reply with quote

Code:
listen 7777 script phpbb2eggaccept pub
set check(pass) "MyPass"


proc phpbb2eggaccept {idx} {
control $idx phpbbincoming
}

proc phpbbincoming {idx args} {
global check

set args [join $args]
set inc(pass) [lindex [split $args] 0]
set inc(chan) [lindex [split $args] 1]
set inc(message) [join [lrange [split $args] 2 end]]

 if { $inc(message) != ""} {
  killdcc $idx
 }
 if {[string match [md5 $check(pass)] $inc(pass)]} {

  set line [split $inc(message) ";"]
   foreach line $line {
    putserv "PRIVMSG $inc(chan) :\00304$line"

   }
 } else { return 0 }

}
putlog "\00312phpbb2egg.tcl beta 0.0.2"


and here is the PHP File
http://pastebin.com/m410584f9
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu Mar 06, 2008 7:31 pm    Post subject: Reply with quote

need more information on $inc(message) after being split

how many lines?
does the number of lines change with content?
what lines stay the same?

it's possible to control your output using lrange, but more information is needed (or you'll have to figure it out for yourself)
Back to top
View user's profile Send private message
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Fri Mar 07, 2008 8:56 pm    Post subject: Reply with quote

I want only to remove this line

« @ForumBot » Hello Test blaaaa

But i dont know how i can remove it.
Back to top
View user's profile Send private message
starpossen
Op


Joined: 10 Jan 2006
Posts: 139

PostPosted: Sat Mar 08, 2008 2:40 am    Post subject: Reply with quote

Just an idea, after looking at the .php code, I found this:
Code:

$bb2egg['ids'] = "1 2 3 4 5"; // forums to display posts from

Although I see you // (slashed) it out, wouldn't it be possible to use that line
and thereby excluding certain forums?
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sat Mar 08, 2008 2:49 am    Post subject: Reply with quote

looking at just the code, it's mighty convoluted
this is going to be very difficult for an outsider to help fix without having better information
structure of $args is needed; general format, field separators, things of that nature
(example: "pass #chan first output line ; second output line ; more stuff")
Back to top
View user's profile Send private message
Puck
Voice


Joined: 08 Mar 2008
Posts: 10
Location: Budapest, Hungary

PostPosted: Sat Mar 08, 2008 8:08 am    Post subject: Reply with quote

Hi everyone.

I`d Like too know where you found this script, and if there is a documentation about it, cause i looked at the script, but sincerly i dont know how too use it, and where too install it.

Thank you for you help in advance.

Puck
Back to top
View user's profile Send private message Visit poster's website
Mogour
Voice


Joined: 10 Feb 2008
Posts: 17

PostPosted: Sat Mar 08, 2008 8:29 am    Post subject: Reply with quote

Puck wrote:
Hi everyone.

I`d Like too know where you found this script, and if there is a documentation about it, cause i looked at the script, but sincerly i dont know how too use it, and where too install it.

Thank you for you help in advance.

Puck


http://www.phpbb.com/community/viewtopic.php?t=181363
Back to top
View user's profile Send private message
Puck
Voice


Joined: 08 Mar 2008
Posts: 10
Location: Budapest, Hungary

PostPosted: Sat Mar 08, 2008 9:09 am    Post subject: Reply with quote

Thank you very much (:
Back to top
View user's profile Send private message Visit poster's website
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Tue Jun 16, 2009 9:18 am    Post subject: Reply with quote

I found this on phpBB's forum, and it works very well...


Code:
#################################################################
## MOD Title: Eggdrop Announce
## MOD Author: WyriHaximus < webmaster@wyrihaximus.net > (Cees-Jan Kiewiet) http://www.wyrihaximus.net/
## MOD Description: This MOD wil announce new topics and reply's in your IRC channel.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: 1
## includes/functions_post.php
## Included Files: 1
## includes/eggdrop.class.php
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This mod was created as a request here: http://www.phpbb.com/phpBB/viewtopic.php?t=339597
##
#################################################################
##
## MOD History:
##
## 08-11-2005 - Version 1.0
## - This version never came out
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ COPY ]------------------------------------------
#
copy eggdrop.class.php to includes/eggdrop.class.php
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
$sql = ($mode != 'editpost') ? "INSERT INTO " . POSTS_TEXT_TABLE . " (post_id, post_subject, bbcode_uid, post_text) VALUES ($post_id, '$post_subject', '$bbcode_uid', '$post_message')" : "UPDATE " . POSTS_TEXT_TABLE . " SET post_text = '$post_message', bbcode_uid = '$bbcode_uid', post_subject = '$post_subject' WHERE post_id = $post_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#

if($mode=='newtopic' || $mode=='reply')
{
$url = 'http://' . $board_config['server_name'] . (($board_config['server_port']==80) ? '' : ':' . $board_config['server_port']) . $board_config['script_path']. 'viewtopic.' . $phpEx . '?' .POST_POST_URL . '=' . $post_id . '#' . $post_id;
if(function_exists('replace_for_mod_rewrite'))
{
$url = replace_for_mod_rewrite($url);
}
include($phpbb_root_path . 'includes/eggdrop.class.' . $phpEx);
$tmp = new eggdrop_class;
$tmp->send_msg($board_config['eggdrop_server'],$board_config['eggdrop_port'],$board_config['eggdrop_username'],$board_config['eggdrop_password'],$board_config['eggdrop_channel'],str_replace(array('{POSTER}','{SUBJECT}','{LINK}'),array($userdata['username'],$post_subject,$url),$board_config['eggdrop_message' . (($mode=='newtopic') ? '' : '2')]));
unset($tmp);
}
#
#-----[ SQL ]------------------------------------------
#
INSERT INTO `phpbb_config` ( `config_name` , `config_value` )VALUES ('eggdrop_server', ''), ('eggdrop_port', ''),('eggdrop_username', ''), ('eggdrop_password', ''), ('eggdrop_channel', ''), ('eggdrop_message', ''),('eggdrop_message2', '');
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
"L_SMTP_PASSWORD" => $lang['SMTP_password'],
"L_SMTP_PASSWORD_EXPLAIN" => $lang['SMTP_password_explain'],
"L_SUBMIT" => $lang['Submit'],
"L_RESET" => $lang['Reset'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_EGGDROP" => $lang['Eggdrop'],
"L_EGGDROP_SERVER" => $lang['Eggdrop_server'],
"L_EGGDROP_PORT" => $lang['Eggdrop_port'],
"L_EGGDROP_USERNAME" => $lang['Eggdrop_username'],
"L_EGGDROP_PASSWORD" => $lang['Eggdrop_password'],
"L_EGGDROP_CHANNEL" => $lang['Eggdrop_channel'],
"L_EGGDROP_MESSAGE" => $lang['Eggdrop_message'],
"L_EGGDROP_MESSAGE2" => $lang['Eggdrop_message2'],

"EGGDROP_SERVER" => $new['eggdrop_server'],
"EGGDROP_PORT" => $new['eggdrop_port'],
"EGGDROP_USERNAME" => $new['eggdrop_username'],
"EGGDROP_PASSWORD" => $new['eggdrop_password'],
"EGGDROP_CHANNEL" => $new['eggdrop_channel'],
"EGGDROP_MESSAGE" => $new['eggdrop_message'],
"EGGDROP_MESSAGE2" => $new['eggdrop_message2'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_SMTP_SERVER}</td>
<td class="row2"><input class="post" type="text" name="smtp_host" value="{SMTP_HOST}" size="25" maxlength="50" /></td>
</tr>
<tr>
<td class="row1">{L_SMTP_USERNAME}<br /><span class="gensmall">{L_SMTP_USERNAME_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="smtp_username" value="{SMTP_USERNAME}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_SMTP_PASSWORD}<br /><span class="gensmall">{L_SMTP_PASSWORD_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="password" name="smtp_password" value="{SMTP_PASSWORD}" size="25" maxlength="255" /></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_EGGDROP}</th>
</tr>
<tr>
<td class="row1">{L_EGGDROP_SERVER}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_server" value="{EGGDROP_SERVER}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_PORT}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_port" value="{EGGDROP_PORT}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_USERNAME}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_username" value="{EGGDROP_USERNAME}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_PASSWORD}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_password" value="{EGGDROP_PASSWORD}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_CHANNEL}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_channel" value="{EGGDROP_CHANNEL}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_MESSAGE}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_message" value="{EGGDROP_MESSAGE}" size="25" maxlength="255" /></td>
</tr>
<tr>
<td class="row1">{L_EGGDROP_MESSAGE2}</td>
<td class="row2"><input class="post" type="text" name="eggdrop_message2" value="{EGGDROP_MESSAGE2}" size="25" maxlength="255" /></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
languages/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Eggdrop Announce MOD (by WyriHaximus)
//
$lang['Eggdrop'] = "Eggdrop Announce";
$lang['Eggdrop_server'] = "Eggdrop Bot Server Name";
$lang['Eggdrop_port'] = "Eggdrop Bot Server Port";
$lang['Eggdrop_username'] = "Eggdrop Username";
$lang['Eggdrop_password'] = "Eggdrop Password for the Username";
$lang['Eggdrop_channel'] = "Channel";
$lang['Eggdrop_message'] = "Message on new topic (user {LINK} for the link, {SUBJECT} for the post subject and {POSTER} for the poster)";
$lang['Eggdrop_message2'] = "Message on reply (user {LINK} for the link, {SUBJECT} for the post subject and {POSTER} for the poster)";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Fire-Fox
Master


Joined: 23 Sep 2006
Posts: 270
Location: /dev/null

PostPosted: Tue Oct 13, 2009 3:59 am    Post subject: Reply with quote

I have a working BETA release. to phpBB3 and it works very well. NO need for .tcl script to be loaded in yout bot conf file.

i'll dick it out when i get home from school Smile

[EDIT] the script will also, have the option, to inputs topic IDS, in ACP panel so it won't post in that section, there will be alot of options when it's all done.

stay tuned Smile
_________________
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
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