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.

PHPBB

Support & discussion of released scripts, and announcements of new releases.
Post Reply
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

PHPBB

Post by CyberWar »

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
l
lazy idiot
Voice
Posts: 1
Joined: Fri Nov 30, 2007 3:15 pm

Post by lazy idiot »

Hello!
I also have a script. We should become friends! :wink:
PS: You didn't say what script you're using.
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Re: PHPBB

Post by DragnLord »

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.
t
tueb
Halfop
Posts: 76
Joined: Thu Oct 04, 2007 6:09 am
Location: #quiz.de @ irc.gamesurge.net
Contact:

Post by tueb »

Hi,

using an rss-reader would do the trick.

tueb
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

Post by CyberWar »

Code: Select all

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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)
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

Post by CyberWar »

I want only to remove this line

« @ForumBot » Hello Test blaaaa

But i dont know how i can remove it.
s
starpossen
Op
Posts: 139
Joined: Tue Jan 10, 2006 1:08 am

Post by starpossen »

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

Code: Select all

$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?
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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")
P
Puck
Voice
Posts: 10
Joined: Sat Mar 08, 2008 8:05 am
Location: Budapest, Hungary
Contact:

Post by Puck »

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
M
Mogour
Voice
Posts: 17
Joined: Sun Feb 10, 2008 12:58 pm

Post by Mogour »

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
P
Puck
Voice
Posts: 10
Joined: Sat Mar 08, 2008 8:05 am
Location: Budapest, Hungary
Contact:

Post by Puck »

Thank you very much (:
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

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

Code: Select all

#################################################################
## 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
User avatar
Fire-Fox
Master
Posts: 299
Joined: Sat Sep 23, 2006 9:01 pm
Location: /dev/null

Post by Fire-Fox »

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 :)

[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 :)
GreatZ
Fire-Fox | Denmark

Scripts: Relay | Store Text | TvMaze
Post Reply