|
#1
|
|||
|
|||
TBDev 08 snatched in browse mod request
Hello everyone,
I need to implement a mod, which will be tagging already downloaded by user in browse.php. It can be an icon or column background color. I've tried to use this querry: Code:
mysql_query("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.finished='yes'AND snatched.torrentid =" . $_GET[id]) or die(mysql_error()); but I have no idea what function should I use for $CURUSER and where I should place it. Thank you for any help and suggestions. Best regards, Brendal. |
#2
|
|||
|
|||
Code:
print("<td align="left">".($row["not_sticky"] == "no" ? "Important: " : "").""); /////////////////////// $to = mysql_query("SELECT COUNT(*) FROM snatched WHERE userid='".$CURUSER['id']."' AND torrent='".$row['id']."'"); //request $tok = mysql_fetch_array($to); if(!$tok['0']){}else{?> <a href="download.php?id=<?=$row['id']?>"><img src="pic/trans.gif" title="You have already taken this torrent. Click to download the .torrent file again."/></a> <?} //////////////////////////// print("<a href="details.php?"); if ($variant == "mytorrents") |
#3
|
|||
|
|||
Thank you for reply.
I will try this. If I will have any problems I will post again. Once moge time big thanks and best regards, Brendal EDIT: Something is wrong it is displaying it out of table... Any tips? Best regards, Brendal. Last edited by Brendal; 12th October 2020 at 19:02. |
#4
|
|||
|
|||
The example that was given to you will not work as it’s for a different source code.
|
#5
|
|||
|
|||
Yes, I know that. It also can be related with other mods, but I managed to make a different color for whole row on snatched position. It is enough for me. Thanks for help.
Best regards, Brendal. |
|
|