wrzuc do config.php
Kod:
$spec_forum_id = array(1, 3); //id for ;-)
viewtopic.phpznajdz
Kod:
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time,
zamie na
Kod:
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_poster,
znajdz
Kod:
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] )
zamien na
Kod:
if ( ( $userdata['user_id'] == $poster_id && $is_auth['auth_edit'] ) || $is_auth['auth_mod'] || ( $userdata['user_id'] == $forum_topic_data['topic_poster'] && in_array($forum_id, $spec_forum_id) ) )
posting.phpznajdz
Kod:
$sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_type, t.topic_first_post_id,
zamien na
Kod:
$sql = "SELECT f.*, t.topic_id, t.topic_status, t.topic_type, t.topic_first_post_id, t.topic_poster,
znajdz
Kod:
if ( $post_info['poster_id'] != $userdata['user_id'] && !$is_auth['auth_mod'] )
zamien na
Kod:
if ( $post_info['poster_id'] != $userdata['user_id'] && !$is_auth['auth_mod'] && !($userdata['user_id'] == $post_info['topic_poster'] && in_array($forum_id, $spec_forum_id) )
funkcjonuje testowałem
Autor postu otrzymał pochwałę