categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id
//GET ALL MYSQL VALUES FOR THIS TORRENT
$res = SQL_Query_exec("SELECT torrents.anon, torrents.safe, torrents.markedby, torrents.recommended, torrents.exclusif, torrents.thanks, torrents.seeders, torrents.tube, torrents.tube2, torrents.sticky, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.allocine, torrents.name, torrents.likes, torrents.love, torrents.angry, torrents.points, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id $wherex");
$row = mysqli_fetch_assoc($res);
"niki, post: 68048, member: 20338":
Merci spititblue et c'est quand même mieux en Francais , merci
"niki, post: 68029, member: 20338":
Bonsoir moi je cherche le bout de code a mettre dans le fichier torrents-details.php afin que le logo des catégorie s'affiche dans torrents-details.php :(
"STorrents2020, post: 68024, member: 20382":
That isn't an addition, that is default TT code that should always remain in torrents-details.php, I instruct to add code under due to how it queries SQL first, any position before that fails to retrieve $row.
"STorrents2020, post: 68021, member: 20382":
$row = mysqli_fetch_assoc($res);
// Displaying the Ad URL
print ("<tr><td align='center' valign='top' colspan='5' valign='top'><br/><font color='Orange'>" .T_("ANNOUNCE_URL"). "</font>: ");
while (list($key,$value) = thisEach($announce_urls)) {
echo "<font color='AliceBlue' size='3'>".$value."?passkey=".$CURUSER['passkey']."</font><br/><br/>";
}
// End
#======================================================================#
# Start class_user function
#======================================================================#
function class_user($name)
{
global $site_config;
$a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
//echo "Query a".$a."<br />";
$res = SQL_Query_exec($a);
$classy = @mysqli_fetch_array($res);
$gcolor = $classy['Color'];
if ($classy['donated'] > 0) {
$star = "<img src='" . $site_config['SITEURL'] . "/images/donor.png' alt='fait_un_don' border='0' width='15' height='15'>";
} else {
$star = "";
}
if ($classy['warned'] == "yes") {
$warn = "<img src='" . $site_config['SITEURL'] . "/images#warn.png' alt='Averti' border='0'>";
} else {
$warn = "";
}
return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "</font>");
}
#======================================================================#
# End Start class_user function
#======================================================================#
<?php if ($CURUSER){ ?><?php if (!$site_config["MEMBERSONLY"] || $CURUSER) { ?>"niki, post: 67857, member: 20338":
merci de l'aide spiritblue mais je ne comprend pas se que tu veux dire ??
"niki, post: 67855, member: 20338":
thanks for your help but with the change I have a blank page. :rolleyes:
"m-jay, post: 67852, member: 20288":
ive done basic on v3 to make it easier, you can just add to see if its working
"m-jay, post: 67834, member: 20288":
Thank you spirtblue, I got the idea off a old updated torrents-details.php i got from botanicar.
I will do account-details this weekend and share for anyone who wishes to use (y)