Also, ich muss jetzt nur noch ein
Code: Alles auswählen
,
Code: Alles auswählen
f.stop_bumping
Code: Alles auswählen
,
Code: Alles auswählen
f.stop_bumping
Ja, so ist es. Aber deswegen müsstest du jetzt nicht neu posten. Probier es doch einfach aus. Falls dann noch ein Fehler auftaucht, poste bitte die genaue Fehlermeldung.Hallo!
Also, ich muss jetzt nur noch ein
in viewtopic.php nachCode: Alles auswählen
,
einfügen, und schon sollte es funktionieren?Code: Alles auswählen
f.stop_bumping
Code: Alles auswählen
#--------------[ FIND ]-------------
# // after "function submit_post("
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
#
#--------------[ BEFORE, ADD ]-------------
#
$forum_bumping = 0;
if ($board_config['stop_bumping'] == 2 && $mode != 'newtopic')
{
$sql = "SELECT f.stop_bumping FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
WHERE f.forum_id = t.forum_id
AND t.topic_id = $topic_id";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not fetch bumping status for this forum', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$forum_bumping = $row['stop_bumping'];
}
$db->sql_freeresult($result);
}
if (($board_config['stop_bumping'] == 1 || $forum_bumping == 1) && $userdata['user_level'] == USER && ($mode == 'reply' || $mode == 'quote'))
{
$sql = "SELECT p.poster_id FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE t.topic_id = " . $topic_id . "
AND t.topic_last_post_id = p.post_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not check last poster id', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$checked_user = $row['poster_id'];
if ($checked_user == $userdata['user_id'])
{
message_die(GENERAL_ERROR, $lang['Rules_bump_cannot']);
}
$db->sql_freeresult($result);
}
// END Stop Bumping Mod
#
Code: Alles auswählen
//
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($forum_bumping = 0;
if ($board_config['stop_bumping'] == 2 && $mode != 'newtopic')
{
$sql = "SELECT f.stop_bumping FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
WHERE f.forum_id = t.forum_id
AND t.topic_id = $topic_id";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not fetch bumping status for this forum', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$forum_bumping = $row['stop_bumping'];
}
$db->sql_freeresult($result);
}
if (($board_config['stop_bumping'] == 1 || $forum_bumping == 1) && $userdata['user_level'] == USER && ($mode == 'reply' || $mode == 'quote'))
{
$sql = "SELECT p.poster_id FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE t.topic_id = " . $topic_id . "
AND t.topic_last_post_id = p.post_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not check last poster id', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$checked_user = $row['poster_id'];
if ($checked_user == $userdata['user_id'])
{
message_die(GENERAL_ERROR, $lang['Rules_bump_cannot']);
}
$db->sql_freeresult($result);
}
// END Stop Bumping Mod
Code: Alles auswählen
//
// Post a new topic/reply/poll or edit existing post/poll
Code: Alles auswählen
//
// Flood control
Code: Alles auswählen
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, $post_username, $post_subject, $post_message, $poll_title, &$poll_options, &$poll_length)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
$forum_bumping = 0;
if ($board_config['stop_bumping'] == 2 && $mode != 'newtopic')
{
$sql = "SELECT f.stop_bumping FROM " . FORUMS_TABLE . " f, " . TOPICS_TABLE . " t
WHERE f.forum_id = t.forum_id
AND t.topic_id = $topic_id";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not fetch bumping status for this forum', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result))
{
$forum_bumping = $row['stop_bumping'];
}
$db->sql_freeresult($result);
}
if (($board_config['stop_bumping'] == 1 || $forum_bumping == 1) && $userdata['user_level'] == USER && ($mode == 'reply' || $mode == 'quote'))
{
$sql = "SELECT p.poster_id FROM " . POSTS_TABLE . " p, " . TOPICS_TABLE . " t
WHERE t.topic_id = " . $topic_id . "
AND t.topic_last_post_id = p.post_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not check last poster id', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$checked_user = $row['poster_id'];
if ($checked_user == $userdata['user_id'])
{
message_die(GENERAL_ERROR, $lang['Rules_bump_cannot']);
}
$db->sql_freeresult($result);
}
// END Stop Bumping Mod
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
$current_time = time();
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
{