Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   TBDev 08 snatched in browse mod request (http://www.bvlist.com/showthread.php?t=12298)

Brendal 10th October 2020 12:18

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.

Elena 10th October 2020 17:34

Code:

print("
".($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{?>       
   ////////////////////////////
print(" if ($variant == "mytorrents")
:coffee:

Brendal 12th October 2020 14:03

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.

Thor 13th October 2020 12:00

The example that was given to you will not work as it’s for a different source code.

Brendal 14th October 2020 10:44

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.


All times are GMT +2. The time now is 00:54.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.