i had that same error. here's what my problem wasNTH08 wrote:i got a problem hereline 1435 to 146 in my viewopic.phpCode: Select all
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1450: Undefined index: thanks [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1451: Undefined index: thanked [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /viewtopic.php on line 1452: Undefined index: thanks_post [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3795: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3187) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3797: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3187) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3798: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3187) [phpBB Debug] PHP Notice: in file /includes/functions.php on line 3799: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3187)
please help meCode: Select all
$postrow = array( 'POST_AUTHOR_FULL' => get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'POST_AUTHOR_COLOUR' => get_username_string('colour', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'POST_AUTHOR' => get_username_string('username', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), 'U_POST_AUTHOR' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour'], $row['post_username']), //Begin Thank Post MOD 'THANKS_FROM' => sprintf($user->lang['THANKS_FROM'], get_username_string('full', $poster_id, $row['username'], $row['user_colour'], $row['post_username'])), //End Thank Post MOD 'RANK_TITLE' => $user_cache[$poster_id]['rank_title'], 'RANK_IMG' => $user_cache[$poster_id]['rank_image'], 'RANK_IMG_SRC' => $user_cache[$poster_id]['rank_image_src'], 'POSTER_JOINED' => $user_cache[$poster_id]['joined'], 'POSTER_POSTS' => $user_cache[$poster_id]['posts'], //Begin Thank Post MOD 'POSTER_THANKS' => $user_cache[$poster_id]['thanks'], 'POSTER_THANKED' => ($user_cache[$poster_id]['thanked'] <= 1) ? $user_cache[$poster_id]['thanked'] . $user->lang['THANKS_TIME'] : $user_cache[$poster_id]['thanked'] . $user->lang['THANKS_TIMES'], 'POSTER_THANKS_POST' => ($user_cache[$poster_id]['thanks_post'] <= 1) ? $user_cache[$poster_id]['thanks_post'] . $user->lang['THANKS_POST'] : $user_cache[$poster_id]['thanks_post'] . $user->lang['THANKS_POSTS'], //End Thank Post MOD 'POSTER_FROM' => $user_cache[$poster_id]['from'], 'POSTER_AVATAR' => $user_cache[$poster_id]['avatar'], 'POSTER_WARNINGS' => $user_cache[$poster_id]['warnings'], 'POSTER_AGE' => $user_cache[$poster_id]['age'],
Code: Select all
$user_cache[$poster_id] = array(
'joined' => $user->format_date($row['user_regdate']),
'posts' => $row['user_posts'],
Code: Select all
$user_cache[$poster_id] = array(
'joined' => '',
'posts' => '',
by the looks of it, this member had the same problem that i did as well as other users but edited the post and removed the info so nobody else could fix their problemManhattan wrote:Edit.........................
Solved!
Thanks a lot.
yes i saw it toomehrdad_epark.ir wrote:hi
there is a problem in this MOD.In the other words there is a BUG .
A user by using own ID in the URL can send thanks for own .
please obviation this BUG.
thanks
The following user would like to thank Admin for this post
testUser, testUser2, manyUsers
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1486: Undefined index: thanks
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1487: Undefined index: thanked
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1487: Undefined index: thanked
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1488: Undefined index: thanks_post
[phpBB Debug] PHP Notice: in file /viewtopic.php on line 1488: Undefined index: thanks_post
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3840: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3842: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3843: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3844: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
Code: Select all
// Check if the topic viewer has posted in a topic
$unhide = false;
$sql = 'SELECT post_thanked
FROM ' . POSTS_TABLE . '
WHERE topic_id = ' . $topic_id;
$result = $db->sql_query($sql);
$post_thanked = $db->sql_fetchfield('post_thanked');
$db->sql_freeresult($result);
if ($user->data['user_id'] != ANONYMOUS)
{
// If moderator or admin, skip reply check, auto unhide
if ($auth->acl_get('m_', $forum_id))
{
$unhide = true;
}
else if ($post_thanked)
{
$unhide = true;
}
else
{
$sql = "SELECT poster_id, topic_id
FROM " . POSTS_TABLE . "
WHERE topic_id = $topic_id
AND poster_id = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
}
}