ich noch mal
in der posting.php habe das geändert:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
phpBB2/posting.php
#
#-----[ FIND ]------------------------------------------
#
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
#
#-----[ REPLACE WITH ]------------------------------------------
#
// forum notification mod
$post_data['subject'] = $subject;
$post_data['username'] = ( $userdata['user_id'] == ANONYMOUS ) ? $username : $userdata['username'];
$post_data['message'] = $message;
if ( $post_data['first_post'] )
{
user_notification('newtopic', $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
else
{
user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user);
}
und in der topic_review.php:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/topic_review.php
#
#-----[ FIND ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time DESC
LIMIT " . $board_config['posts_per_page'];
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user_level, p.*, pt.post_text, pt.post_subject, pt.bbcode_uid
FROM " . POSTS_TABLE . " p, " . USERS_TABLE . " u, " . POSTS_TEXT_TABLE . " pt
WHERE p.topic_id = $topic_id
AND p.poster_id = u.user_id
AND p.post_id = pt.post_id
ORDER BY p.post_time DESC
LIMIT " . $board_config['posts_per_page'];
#
#-----[ FIND ]------------------------------------------
#
//
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_id = $userdata['user_id'];
#
#-----[ FIND ]------------------------------------------
#
$poster_id = $row['user_id'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ( $user_id != ANONYMOUS )
{
$sql = "SELECT user_ignore
FROM " . IGNORE_TABLE . "
WHERE user_id = $user_id
AND user_ignore = $poster_id";
if( !$res = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Could not get data from ignore table', __LINE__, __FILE__, $sql);
}
}
if(($db->sql_numrows($res) == 0) || ($user_id == ANONYMOUS) || ($row['user_level'] == ADMIN) || ($row['user_level'] == MOD))
{
#
#-----[ FIND ]------------------------------------------
#
}
while ( $row = $db->sql_fetchrow($result) );
#
#-----[ BEFORE, ADD ]------------------------------------------
#
}
und das war's auch schon.
ich hoffe, es kann damit einer was anfangen.
ciao
torolf