I have a problem!
I install de Thanks Mod, all ok, i install the hide mod, all ok. But when I install the Thank Hide addon, dont work correctly, i have modified it with:
Code: Select all
// Check if the topic viewer has posted in a topic
$unhide = false;
if ($user->data['user_id'] != ANONYMOUS)
{
$sql = "SELECT post_id, thanks_from
FROM " . THANKS_TABLE . "
WHERE post_id = $post_id
AND thanks_from = " . $user->data['user_id'];
$result = $db->sql_query($sql);
$unhide = $db->sql_affectedrows($result) ? true : false;
$db->sql_freeresult($result);
}
$user->add_lang('mods/simple_hide_bbcode');
But i think that this code only execute one time for topic, and not one time for post, but when I thanks one post, i can view ALL posts with HIDE, and I need that with one thanks only can view one post hide, not all.
How can i execute this code one time for post and no one time for topic?
phpBB 3.0.4 - prosilver theme
Thanks
