Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
theme diablo
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Themes

2024-02-23 15:27:20
Hello can you see if it is possible to make the diabolo theme compatible for torrent trader v3 because it is not displayed correctly and I cannot find the probeme, thanks in advance



Bonjour pouvez-vous regarder si c'est possible de rendre compatible le theme diabolo pour torrent trader v3 car sa ne s'affiche pas correctement et je ne trouve pas le probeme, merci d'avance
diablo.rar
Download
2024-02-23 23:11:39
Just replace curent header.php with attached one

Good luck mate
header.zip
Download



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
2024-02-24 09:35:29
It is a very old theme with the flash part of the code and it is no longer supported by browsers, so the navigation menu is removed from the header right now, but maybe it can be fixed somehow.
The second part of the code:


$ss_r = mysql_query("SELECT * from stylesheets") or die;
$ss_sa = array();
while ($ss_a = mysql_fetch_array($ss_r))
{
 $ss_id = $ss_a["id"];
 $ss_name = $ss_a["name"];
 $ss_sa[$ss_name] = $ss_id;
}
ksort($ss_sa);
reset($ss_sa);
while (list($ss_name, $ss_id) = each($ss_sa))
{
 if ($ss_id == $CURUSER["stylesheet"]) $ss = " selected=\"selected\""; else $ss = "";
 $stylesheets .= "<option value=\"$ss_id\" $ss>$ss_name</option>\n";
}


is also old and needs to be replaced and mysql parts changes to mysqli


$ss_r = SQL_Query_exec("SELECT * from stylesheets") or die;
$ss_sa = array();
while ($ss_a = mysqli_fetch_array($ss_r))
{
 $ss_id = $ss_a["id"];
 $ss_name = $ss_a["name"];
 $ss_sa[$ss_name] = $ss_id;
}
ksort($ss_sa);
reset($ss_sa);
while (list($ss_name, $ss_id) = each($ss_sa))
{
 if ($ss_id == $CURUSER["stylesheet"]) $ss = " selected=\"selected\""; else $ss = "";
 $stylesheets .= "<option value=\"$ss_id\" $ss>$ss_name</option>\n";
}


But from some reason "theme change" wont work on this way but I'll be back if I fix it later




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
2024-02-24 09:54:14
thank you for your help botanicar


merci pour ton aide botanicar
2024-04-18 06:56:36
To change theme it should be like this


$ss_r = SQL_Query_exec("SELECT * from stylesheets");
$ss_sa = array();

while ($ss_a = mysqli_fetch_assoc($ss_r)){
$ss_id = $ss_a["id"];
$ss_name = $ss_a["name"];
$ss_sa[$ss_name] = $ss_id;
}

ksort($ss_sa);
reset($ss_sa);

while (list($ss_name, $ss_id) = thisEach($ss_sa)){
if ($ss_id == $CURUSER["stylesheet"]) $ss = " selected='selected'"; else $ss = "";
$stylesheets .= "<option value='$ss_id'$ss>$ss_name</option>\n";
}


?>
<form method="post" action="take-theme.php">
<select name="stylesheet" onchange="this.form.submit();"><?=$stylesheets?></select><input type="hidden" name="Submit" value="ok">
</form>
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728