edite takethanks.php
line 93
remplace
PHP Code:
mysql_query ('INSERT INTO ts_thanks VALUES (\'' . $torrentid . '\', \'' . $userid . '\')');
if (mysql_affected_rows ())
{
by
PHP Code:
mysql_query ('INSERT INTO ts_thanks VALUES (\'' . $torrentid . '\', \'' . $userid . '\')');
if (mysql_affected_rows ())
{
$name1 = @mysql_fetch_array(@mysql_query('SELECT name FROM torrents WHERE id = \'' . $torrentid . '\''));
$name = htmlspecialchars($name1['name']);
$name = str_replace('.', ' ', $name);
$name = str_replace('-', ' ', $name);
$seolink = ('' . ''.$BASEURL.'/details.php?id=' . sqlesc ($torrentid) . '&hit=1');
$shoutbOT = sprintf ('' .$CURUSER['username']. ' said thank you for the torrent : [url='.$seolink.']' . sqlesc ($name) . '[/url] .');
$shout_sql = 'INSERT INTO shoutbox (userid, date, content) VALUES (\'999999999\', \'' . TIMENOW . '\', ' . sqlesc ('{systemnotice}' . $shoutbOT) . ')';
$shout_result = sql_query ($shout_sql);
enjoy :bubble: