Hi guys, I need some "advice" to fix that problem (I'm not good on sql stuff and similar things)
To explain:
I have torrent which is VIP torrent (only VIP/or above class of users can download it) and I try to make it via functions part of code
in functions.php I put that part of code, and it WON'T work
I have tried that too
userclass "4" is my VIP user
and row["vip"] (from torrents table) is VIP torrent
how to fix that damn problem, PLEASE so I have that result
www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
To explain:
I have torrent which is VIP torrent (only VIP/or above class of users can download it) and I try to make it via functions part of code
in functions.php I put that part of code, and it WON'T work
function viponly() {
global $CURUSER;
if ($CURUSER["class"] <= 4 || $row["vip"]== yes)
show_error_msg("Sorry !!", "<img src='https://cdn0.iconfinder.com/data/icons/city-elements-flaticon/64/stop-stop_sign-traffic_sign-architecture_and_city-stopping-circulation-signaling-256.png' width='150'><h3 style='color:gold !important;'>Your account is temporarily unable to download this torrent.</h3><br /><div class='torrent-detail-2 shadow-2'> You must be a VIP user to download it!</div>", 1);
}
I have tried that too
function viponly() {
global $CURUSER;
if ($CURUSER["class"] <= "4" && $row["vip"] == "yes")
show_error_msg("Sorry !!", "<img src='https://cdn0.iconfinder.com/data/icons/city-elements-flaticon/64/stop-stop_sign-traffic_sign-architecture_and_city-stopping-circulation-signaling-256.png' width='150'><h3 style='color:gold !important;'>Your account is temporarily unable to download this torrent.</h3><br /><div class='torrent-detail-2 shadow-2'> You must be a VIP user to download it!</div>", 1);
}
userclass "4" is my VIP user
and row["vip"] (from torrents table) is VIP torrent
how to fix that damn problem, PLEASE so I have that result
www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2023-09-12 11:53:46

