Hi..
At the request of a request made by nicki [url='https://www.torrenttrader.xyz/index.php?threads/like.9938/#post-67799[B'][color=rgb(0, 168, 133)]HERE[/color][/url]
Author : luis26x
Update : Spiritblue
SQL : Yes
SQL:
In[color=rgb(251, 160, 38)] Torrents-details.php[/color] place code where you like :
[color=rgb(204, 204, 204)]~ Import the three files [/color][color=rgb(184, 49, 47)]([/color][color=rgb(251, 160, 38)]likes.php, love.php, angry.php[/color][color=rgb(184, 49, 47)])[/color][color=rgb(204, 204, 204)] at the root of your site.[/color]
~ Add the button name folder to the images folder.
Add lang:
$LANG["LIKES"] = "Recommend you!";
$LANG["LOVE"] = "You like!";
$LANG["ANGRY"] = "You don't like!";
Example img:
[ATTACH type="full" alt="5350"]5350[/ATTACH]
[color=rgb(61, 142, 185)]NOTE:
Let us know if error or other to make this mod a complete automation.??[/color]
At the request of a request made by nicki [url='https://www.torrenttrader.xyz/index.php?threads/like.9938/#post-67799[B'][color=rgb(0, 168, 133)]HERE[/color][/url]
Author : luis26x
Update : Spiritblue
SQL : Yes
SQL:
ALTER TABLE `torrents` ADD `likes` int(10) unsigned NOT NULL default '0';
ALTER TABLE `torrents` ADD `love` int(10) unsigned NOT NULL default '0';
ALTER TABLE `torrents` ADD `angry` int(10) unsigned NOT NULL default '0';
In[color=rgb(251, 160, 38)] Torrents-details.php[/color] place code where you like :
// Torrent appreciation links
print("<tr><td align='left'><b>".T_("LIKES").": </b></td><td>
<form action='likes.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='likes' type='image' img src='/images/button/likes.gif' width='30' height='30' border='0'>
<font color='#5f9df3'>".number_format($row["likes"])."</font></form></td></tr>");
print("<tr><td align='left'><b>".T_("LOVE").": </b></td><td>
<form action='love.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='love' type='image' img src='/images/button/love.gif' width='30' height='30' border='0'>
<font color='#f15269'>".number_format($row["love"])."</font></form></td></tr>");
print("<tr><td align='left'><b>".T_("ANGRY").": </b></td><td>
<form action='angry.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='angry' type='image' img src='/images/button/angry.gif' width='30' height='30' border='0'>
<font color='#f7ae6d'>".number_format($row["angry"])."</font></form></td></tr>");
// End
[color=rgb(204, 204, 204)]~ Import the three files [/color][color=rgb(184, 49, 47)]([/color][color=rgb(251, 160, 38)]likes.php, love.php, angry.php[/color][color=rgb(184, 49, 47)])[/color][color=rgb(204, 204, 204)] at the root of your site.[/color]
~ Add the button name folder to the images folder.
Add lang:
$LANG["LIKES"] = "Recommend you!";
$LANG["LOVE"] = "You like!";
$LANG["ANGRY"] = "You don't like!";
Example img:
[ATTACH type="full" alt="5350"]5350[/ATTACH]
[color=rgb(61, 142, 185)]NOTE:
Let us know if error or other to make this mod a complete automation.??[/color]
