issue with torrenttable

Started by actionman, August 29, 2015, 05:34:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

actionman

#1
Hi guys

I have created a new category VIP first which i want torrent table functions to display on browse how long is left, problem is i can get it too display against the category but it then displays for the entire page against other torrents that i dont want it too add, this is what i have for code so far if some one could take a peek and tell me where i have gone wrong i would appreciate it

Code (php) Select

if (in_array($arrr['category'], $vip7)) {
$vipp = $arrr['added'] + 604800 - TIME_NOW;
if ($vipp > 6) {
$viptextt = "VIP For 7 Days";
}elseif ($vipp > 5 && $vipp < 6) {
$viptextt = "VIP For 6 Days";
}elseif ($vipp > 4 && $vipp < 5) {
$viptext = "VIP For 5 Days";
}elseif ($vipp > 3 && $vipp < 4) {
$viptextt = "VIP For 4 Days";
}elseif ($vipp > 2 && $vipp < 3) {
$viptextt = "VIP For 3 Days";
}elseif ($vipp > 1 && $vipp < 2) {
$viptextt = "VIP For 2 Days";
}elseif ($vipp > 0 && $vipp < 1) {
$viptextt = "VIP For 1 Days";
}elseif ($vipp < 0) {
$viptextt = "VIP For 0 Days";
}else{
$viptextt = "";
}
}
this is then called later on to display where I would like it, but like i said it doesnt display till that category is called but then remains against other non vip torrents lol

FIXED!!! problem was else where lol