Torrenttable situation

Started by denede, February 08, 2014, 12:54:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

denede

#3
*fixed it*

autotron

just what exactly is the [NO] tag?

denede

#1

if ($variant == "index") 
if ($CURUSER["downloadpos"] == '0') {
    $htmlout .= "<td align='center'><b>[NO]</b></td>\n";
}else
if ($CURUSER["downloadpos"] == '1') {
    $htmlout .= "<td align='center'><a href=\"download.php?torrent={$id}".($CURUSER['ssluse'] == 3 ? "&amp;ssl=1" : "")."\"><b>[DL]</b></a></td>\n";
}


I'm trying to make that when user has download possible set to 0, in torrenttable to appear the [NO] tag. Well, nothing appears in the DL coloumn, and the table goes crazy.
But if user can download, everything will look normal.