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
Balloon popup [TTv3]
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2023-08-06 07:55:20
merci pour ton aide spiritblue et je viens de remplacer les fichier function.php et le fichier torrents.php de mon site avec ceux d'origine de TorrentTrader-v3-master et toujours le même problème sur la page des torrent ???


thank you for your help spiritblue and I just replaced the function.php files and the torrents.php file of my site with the original ones from TorrentTrader-v3-master and still the same problem on the torrents page???
2023-08-06 13:57:41
Vérifie ton fichier fonctions.php du côté du frame de torrent, test aussi avec un thème d'origine pour la casser du thème, je vois sur ton image

Le gros du travaille viendra de vous, ici personne, c'est exactement ce que vous avez pu faire pour en venir comme telle et la meilleure conseille je peux vous donner est de cerner le problème et de ce souvenir des dernières modifications fais avant cette erreur et le plus importent toujours faire un backup des fichiers avant entreprend un projet.

I am with you ! :)
===============================

Check your functions.php file on the side of the torrent frame, also test with an original theme to break it from the theme, I see on your image

The bulk of the work will come from you, no one here, that's exactly what you were able to do to get there as such and the best advice I can give you is to identify the problem and remember the last modifications made before this error and most important always make a backup of the files before undertaking a project.


Je suis avec-vous ! ;)



Last edited by spiritblue on 2023-08-06 14:03:51
2023-08-06 14:27:33
merci spiritblue et ça fonctionne bien avec le code du simple balloon ça bug juste avec le code du balloon avec la description, je regarderai pour voir ce qui ne vas pas  😊
Last edited by niki on 2023-08-06 14:32:34
2023-08-08 05:49:48
Bonjour j'ai installé sur le serveur un nouveau compte avec un tout nouveau torrent trader v3 non modifié et c'est toujours le même problème avec le code du ballon et la description, la page des torrent est toujours décalé quand je dépasse les 90 caractères pourla description dutorrent, et quand je mes le code ballon simple sans la description ça fonctionne bien ???
2023-08-08 05:52:29
Hello, I've installed a new account on the server with a brand new unmodified torrent trader v3 and it's still the same problem with the balloon code and the description, the torrent page always lags when I exceed 90 characters for the dutorrent description, and when I enter the simple balloon code without the description it works fine???
2023-08-08 11:41:32
To all of you who have this problem:
The real problem lies somewhere in the index.php file itself (it must be some compatibility conflict between the java scripts).

If you look a little closer it doesn't appear in the torrents.php file at all.

The phenomenon is simple but I don't see it from my angle how can I solve it

Without Description:

index.php
Quote:




torrents.php
Quote:





With description:

index.php
Quote:





torrents.php
Quote:





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-08-08 11:44:13
2023-08-08 18:52:05
Hello niki

Moi aussi avant avec description ça pas marcher
=======
Me too before with description it doesn't work

Don't look at the pictures at Botanicar, this man is a magician MDR lolll :)
Last edited by spiritblue on 2023-08-08 19:17:31
2023-08-09 06:26:26
bonjour et oui trop fort botanicar il ma déjà dépanné quelques fois c'est un génie
2023-08-09 07:23:17
@niki

have you tested if it occurs when you are on
https://youdomain.com/torrents.php
https://youdomain.com/torrents-search.php (after you search for something)

This is my working balloon MOD so if it helps to you guys:



//////////BALLOON TOOLTIP MOD///////////////////////////

//==| Description data
               $preparing_descr = SQL_Query_exec("SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, 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.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");
               $descr = mysqli_fetch_array($preparing_descr);
              $des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
              $char5 = 180; //cut description length

              if (($descr["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $descr["owner"] && $CURUSER["edit_torrents"] != "yes") {
              $descr['username'] = "".T_("ANONYMOUS")."";
              }else{
              $descr['username'];
              }

//==| Cover Image data
$nocover = "".$site_config['SITEURL']."/images/nocover.png";
$imga = @mysqli_fetch_array(@SQL_Query_exec("SELECT image1, image2 FROM torrents WHERE id=$id"));
$imgb = $imga["image1"];
$imgc = $imga["image2"];
if ($imgb) { $balloon = "<img src=uploads/images/".htmlspecialchars($imgb)." width=150 class=poster>"; }
if (!$imgb) { $balloon = "<table width=\'100%\' class=\'table table_bordered2\' align=\'center\'><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'>$smallname</th></tr><tr valign=\'top\'><td align=\'center\' class=\'css\'><img border=\'0\' width=\'150\'  src=\'".$imgc."\' class=\'poster\'></td><td class=\'css-right\'><div align=\'left\' class=\'torrent-category-detail clearfix\'><ul class=\'list\'><li><h6 align=\'center\'>Specifikation</h6></li><li><font color=\'gold\'>Posted : </font><font color=\'yellow\'>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</font></li><li><font color=\'gold\'>Uploaded by: </font><font color=\'yellow\'>" . $descr['username'] . "</font></li><li><font color=\'gold\'>Size : </font><font color=\'yellow\'> ". mksize($row["size"]) . "</font></li><li><font color=\'gold\'>Downloaded: </font><font color=\'yellow\'>" . $row["times_completed"] . " - x</font></li><li><font color=\'gold\'>Views: </font><font color=\'yellow\'>" . $descr["hits"] . " - x</font></li><li><font color=\'gold\'>Seeders : </font><font color=\'yellow\'>" . $row["seeders"] . "</font></li><li><font color=\'gold\'>Leechers : </font><font color=\'yellow\'>" . $row["leechers"] . "</font></li></ul></div></td></tr><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'><h3> ".T_("DESCRIPTION")." </h3></th></tr><tr><td class=\'css-right\' colspan=\'2\' align=\'center\'><div class=\'info\'> " . CutName($des, $char5) . " </div></td></tr></table>"; }
if (!$imgb && !$imgc) { $balloon = "<img src=".$nocover." width=150 class=poster>"; }
//////////BALLOON TOOLTIP MOD///////////////////////////





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-08-09 09:55:53
2023-08-09 16:11:34
thank you for your botanicar code but it doesn't work here on my tt v3 the balloon is not displayed  😕
2023-08-09 17:52:06
@niki
Which version are you using?
M-Jay or MicroMonkey?

Do you have that part on your theme header.php:

<script type="text/javascript" src="<?php echo $site_config["SITEURL"]; ?>/js/overlib.js"></script>

do you have JS foleder on root?
do you have overlib.js file on it?



I have installed fresh TorrentTrader version TTv3-master on my test tracker




Working code

case 'name':
$char1 = 75; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = "<b>".$smallname."</b>";
               
$last_access = $CURUSER["last_browse"];
$time_now = gmtime();
if ($last_access > $time_now || !is_numeric($last_access))
$last_access = $time_now;
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)
$dispname .= "<b><font color='#ff0000'> - (".T_("NEW")."!)</font></b>";

if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";

//////////BALLOON TOOLTIP MOD///////////////////////////
$preparing_descr = SQL_Query_exec("SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, 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.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");
$descr = mysqli_fetch_array($preparing_descr);
              $des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
//$des = mysqli_real_escape_string($GLOBALS["descr"], format_comment($descr['descr']));
              $char5 = 400; //cut description length

              if (($descr["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $descr["owner"] && $CURUSER["edit_torrents"] != "yes") {
              $descr['username'] = "".T_("ANONYMOUS")."";
              }else{
              $descr['username'];
                         
             if (empty($descr["lang_name"]))
             $descr["lang_name"] = "Unknown/NA";
             $lang = "<b>" .T_("LANG"). " : </b>" . $descr["lang_name"] . "";
           
             if (isset($descr["lang_image"]) && $descr["lang_image"] != "")
             $flag = "<img src=$site_config[SITEURL]/images/languages/$descr[lang_image] border=0   alt=$descr[lang_name]>";
           
             $bimg = @mysqli_fetch_array(@SQL_Query_exec("SELECT image1 FROM torrents WHERE id=$id"));
             $balon =($bimg["image1"] ? "$site_config[SITEURL]/uploads/images/" . htmlspecialchars($bimg["image1"]) : "images/nocover.jpg");
             
             }
             print("<td class='ttable_col$x' nowrap='nowrap'>".(count($expandrows)?"<a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\" /></a>":"")." <a href=\"torrents-details.php?id=$id&hit=1\" onMouseover=\"return overlib('<table width=\'100%\' class=\'table table_bordered2\' align=\'center\'><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'>$smallname</th></tr><tr valign=\'top\'><td align=\'center\' class=\'css\'><img border=\'0\' width=\'150\'  src=\'".$balon."\' class=\'poster\'></td><td class=\'css-right\'><div align=\'left\' class=\'torrent-category-detail clearfix\'><ul class=\'list\'><li><h6 align=\'center\'>SPECIFICATION</h6></li><li><font color=\'gold\'>Uploaded : </font><font color=\'yellow\'>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</font></li><li><font color=\'gold\'>Uploaded by: </font><font color=\'yellow\'>" . $descr['username'] . "</font></li><li><font color=\'gold\'>Size : </font><font color=\'yellow\'> ". mksize($row["size"]) . "</font></li><li><font color=\'gold\'>Downloaded: </font><font color=\'yellow\'>" . $row["times_completed"] . " - x</font></li><li><font color=\'gold\'>Views: </font><font color=\'yellow\'>" . $descr["hits"] . " - x</font></li><li><font color=\'gold\'>Seeders : </font><font color=\'yellow\'>" . $row["seeders"] . "</font></li><li><font color=\'gold\'>Leechers : </font><font color=\'yellow\'>" . $row["leechers"] . "</font></li></ul></div></td></tr><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'><h3> ".T_("DESCRIPTION")." </h3></th></tr><tr><td class=\'css-right\' colspan=\'2\' align=\'left\'>  " . CutName($des, $char5) . "  </td></tr></table>', CENTER, HEIGHT, 300, WIDTH, 650)\"; onMouseout=\"return nd()\"> ".$smallname." </a></td>");  
          /// END BALONN MOD ///




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-08-14 04:49:44
2025-11-13 02:06:58
Can someone point me in the direction to change either the background or the text colors...or both.
Most themes the colors of the background and text are fine. But I have two dark themes, and while the background of the balloon is dark to match the theme...the text is also dark.
This is only happening with 2 of my dark themes.
I am using the setup that is in post 1 of this thread.
Thanks in advance.
2025-11-13 17:20:11
All colors are controlled by the css files (themes or style)
In your case it's a bit hard to say because we don't know which TT version or which theme it is, but if you haven't touched anything in functions.php about balloon popup then the style is intact there....
Go to the style or themes css file and look for
ttable_col
table table_
b-title
table_head
and change the colors for the background and fonts


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
2025-11-15 05:21:55
Thanks for the help Botanicar.
So,
I determined it is the table_col1
Changing this also affects other things like the Memberlist page
So I changed the mod to use table_col3
Then on all my themes I created table_col3 for the balloon popup mod.
I will just add table_col3 to any new theme I might add, and adjust background color as needed.
May or may be ideal solution, but it's working for me.
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728