Code: Select all
<!-- IF S_USER_LOGGED_IN and not postrow.S_IS_OWN_POST and not S_IS_BOT -->
Code: Select all
ALTER TABLE `phpbb_users` ADD `user_thanked` INT NOT NULL DEFAULT '0';
ALTER TABLE `phpbb_users` ADD `user_thanked_others` INT NOT NULL DEFAULT '0';
I don't have this mod installed but one thing you can do is firstly not allow any bot to thank a post (I'm assuming that bots are user_id 3 to 52) and secondly not show the bots thanks in any post. Please backup your thanks.php file.Sisem wrote:If you thank a post, and then you remove the thanks, it will then show Google(Adsense) in the thanked list.Reeally not sure why it's doing this, but it's got something to do with the Google (Adsense) bot is the first 'user' listed in the bot listings and it being picked up for some reason.
Code: Select all
if ($thankers[$key]['post_id'] == $post_id && $thankers[$key]['user_id'] != $poster_id)
Code: Select all
if ($thankers[$key]['post_id'] == $post_id && $thankers[$key]['user_id'] != $poster_id && ($thankers[$key]['user_id'] == 2 || $thankers[$key]['user_id'] > 52))
Code: Select all
function insert_thanks($post_id, $user_id)
{
global $db, $users;
if ($user_id != ANONYMOUS)
Code: Select all
function insert_thanks($post_id, $user_id)
{
global $db, $users;
if ($user_id != ANONYMOUS && ($user_id == 2 || $user_id > 52))
Code: Select all
Błąd ogólny
SQL ERROR [ mysqli ]
Field 'user_thanked' doesn't have a default value [1364]