Abrir /includes/abbcode.php y buscar:
- global $user;
-
- if ($user->data['user_id'] == ANONYMOUS || $user->data['is_bot'])
Reemplazar por:
- global $user, $row;
-
- if ( $user->data['user_id'] == ANONYMOUS || $user->data['is_bot'] || !( already_thanked($row['post_id'], $user->data['user_id']) || make_post($user->data['user_id']) ) )
Abrir /includes/functions_thanks.php y buscar:
Agregar antes:
- function make_post($user)
- {
- global $db, $topic_id;
- $hidden = false;
- $sql = "SELECT poster_id
- FROM " . POSTS_TABLE . '
- WHERE topic_id = ' . (int) $topic_id . '
- AND poster_id = ' . $user;
-
- $result = $db->sql_query($sql);
- if($db->sql_affectedrows($result))
- {
- $hidden = true;
- }
-
- $db->sql_freeresult($result);
- return $hidden;
- }
Con eso funcionara...
Igual espero a que lo pruebes.
Tuto de Alorse, y ver si no tiene algun error..