Nun habe ich aber das Problem, dass wenn ich auf den Link gehe, dass ich jenes Thema mailen will, dort immer http://..../email_topic.php?p=0 steht. Logisch, dass ich dann die Meldung erhalte, dass das Thema nicht verfügbar ist. Wie kann ich das ändern?###############################################
## Mod Title: Email topic to friend
## Mod Version: 0.2
## Author: Vincent Grouls (macology@gmx.net)
## Description: This MOD allows you to send a friend of yours a topic of the board that
## you find interesting for him. It is also very handy in this way that you
## can email other members with interesting topics, while they are offline
## for a long time (like when they are one vacation).
##
## This mod works for phpBB2 v2.0.3
##
##
## Installation Level: Easy
## Installation Time: 5 Minutes
##
## Files To Edit: 2
## viewtopic.php
## includes/contants.php
## language/lang_english/lang_main.php
## templates/subSilver/viewtopic_body.tpl
##
## Included Files: 4
## db_update.php
## email_topic_body.tpl
## email_topic.php
## email_topic.tpl
##
## Author Notes:
## If you have email topic to friend 0.1, simply replace the file "email_topic.php"
## to fix the bug.
##
## History
## 0.2: Fixed a little bug, where the idrinkbox (another mod of me) function was
## called from the php page.
##
###############################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
###############################################
#
#-----[ COPY ]--------------------------------------------
#
# (this file should go in the root directory of your forum.
# Run it before using the MOD, and delete it immediately after that)
#
db_update.php
#
#-----[ COPY ]--------------------------------------------
#
# (this file should go in your templates directory)
# ./templates/subSilver/
#
email_topic_body.tpl
#
#-----[ COPY ]--------------------------------------------
#
# (this file should go in the root directory of your forum)
#
email_topic.php
#
#-----[ COPY ]--------------------------------------------
#
# (this file should go in the email directory in your
# language directory)
# ./language/lang_english/email/
#
email_topic.tpl
#
#-----[ OPEN ]--------------------------------------------
#
./viewtopic.php
#
#-----[ FIND ]--------------------------------------------
#
//
// If we've got a hightlight set pass it on to pagination,
// I get annoyed when I lose my highlight after the first page.
//
#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Add the email topic to friend
//
$s_email_topic = '';
if ( $userdata['session_logged_in'] )
{
$action = ( isset($post_id) ) ? POST_POST_URL . "=$post_id" : POST_TOPIC_URL . "=$topic_id&start=$start";
$s_email_topic = '<a href="' . append_sid("email_topic.$phpEx?$action") . '">' . $lang['Email_topic'] . '</a>';
}
#
#-----[ FIND ]--------------------------------------------
#
'S_WATCH_TOPIC' => $s_watching_topic,
#
#-----[ AFTER, ADD ]--------------------------------------
#
'S_EMAIL_TOPIC' => $s_email_topic,
#
#-----[ OPEN ]--------------------------------------------
#
./includes/constants.php
#
#-----[ FIND ]--------------------------------------------
#
define('TOPICS_TABLE', $table_prefix.'topics');
#
#-----[ AFTER, ADD ]--------------------------------------
#
define('TOPICS_EMAIL_TABLE', $table_prefix.'topics_email');
#
#-----[ OPEN ]--------------------------------------------
#
./language/lang_english/lang_main.php
#
#-----[ FIND ]--------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]-------------------------------------
#
# (make sure to edit this file for every language)
#
//
// Email topic to friend
//
$lang['Email_topic'] = 'Email topic to a friend';
$lang['Email_topic_settings'] = 'Email topic information';
$lang['Friend_name'] = 'Friend\'s name';
$lang['Friend_email'] = 'Friend\'s email';
$lang['Email_max_exceeded'] = 'Sorry, but you have already sent 5 emails in the past 24 hours';
$lang['No_friend_specified'] = 'No friend\s name/email specified';
#
#-----[ OPEN ]--------------------------------------------
#
# (make sure to edit this file for every template)
#
./templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]--------------------------------------------
#
{S_WATCH_TOPIC}
#
#-----[ AFTER, ADD ]--------------------------------------
#
<br />{S_EMAIL_TOPIC}
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
Und ausserdem würde ich auch gerne die Anzahl ändern, bzw. den Zeitraum zum versenden der Mails. Nicht 5 innerhalb von 24 H. Dann lieber einen kürzeren zeitraum einfügen, so dass man zwar einige mehr abschicken kann, jedoch in einem etwas größeren Abstand.
Vielen Dank im Vorraus.
MfG, Samariel
