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
User Posts

Go to Profile

image premium — 2023-08-21 18:38:11 in v3 Support
@niki
in functions.php find


function class_user($name) {


add that part of code


if ($classy["class"] == "4") {
$premium = "<img src='https://cdn1.iconfinder.com/data/icons/awards-trophies/512/medal_award_trophy_premium_win_first_place_11-256.png' width='32' height='32' title='This user is PREMIUM user'>";
}
else {
$premium = "";
}


keep in mind that class 4 corresponds to your premium class of user (or replace 4 with what you have for premium user number)

find


return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."</font>");


and change it to


return unesc("<font color='".$col."'>".$name."".$star."".$warn."".$disabled."".$premium."</font>");





regards
image premium — 2023-08-21 17:30:58 in v3 Support
Hi @niki

If I've understood you correctly, you want an "icon" or "picture" next to the username that shows its "group status" like we already have with "donor" stars (or similar)

Have I read correctly?

I hope you have this part of the user table implemented in your SQL:

ALTER TABLE torrents ADD `recommended` enum('yes','no') NOT NULL default 'no';

torrents-upload.php

Search for:

$free = $_POST["free"];

and after last one


}



Add that:

//==| Recommended torrent
$recommended = $_POST["recommended"];
if ($recommended == "yes") {
$recommended = "yes";
} else {
$recommended = "no";
}



Search for:


$ret = SQL_Query_exec("INSERT INTO torrents



And after:


freeleech,



Add that:


recommended,


Search for:


'".$freeleech."',



After that add:


'".$recommended."',



Somewhere after Freeleech part add this:


//==| Recommended torrent
?><tr><td align='left' class='css' valign='top'><?php echo T_("RECOMMENDED_TORRENT"); ?>:</td>
<td align='left' class='css-right' valign='top'><?php printf("<input name='recommended' value='yes' type='radio' ".($recommended ? " checked='checked'" : "")." /> ".T_("YES")."  
<input name='recommended' value='no' type='radio' ".(!$recommended ? " checked='checked'" : "")." /> ".T_("NO").""); ?>    <i><?php echo T_("RECOMMENDED_MSG");?></i></td></tr><?php






If you want it to show the symbol that this torrent is Recommended next to the name of it go to functions.php

Serarch for:


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


After that add:


if ($row["recommended"] == "yes")
$dispname .= " <span style=\"float:right !important;\"><img src=\"./images/rec.png\" width=\"32\" height=\"31\" style=\"margin-top:0px !important;\" title=\"Recommended\" alt=\"Recommedned\"></span>";



If you need modification of torrents-edit.php just hit PM or comment her so we fix it
Regards
@spiritblue
do you mean like that?

@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 ///

@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///////////////////////////


For all of you who want to "mark" a parked account
we can make a MOD so that it gets an icon next to the name (similar to warning or donor)
just if you have class user MOD:

In functions.php find:


if ($classy['warned'] == "yes") {
$warn = "<img src='" . $site_config[SITEURL] . "/images/warned.png' height='12' title='Warned' border='0'>";
} else {
$warn = "";
}


After
Add that:

if ($classy['parked'] == "yes") {
$park = "<img src='" . $site_config[SITEURL] . "/images/parked.png' height='12' title='Parked' border='0'>";
} else {
$park = "";
}



Find:


return unesc("<font color='" . $gcolor . "'>" . $name . "&nbsp;" . $star . "" . $warn . "" .$disabled. "" . $rang . "</font>");


Replace with:


return unesc("<font color='" . $gcolor . "'>" . $name . "&nbsp;" . $star . "" . $warn . "" .$disabled. "" .$park. "" . $rang . "</font>");


PS
You can find a suitable parked icon yourself and upload it to the images folder

Regards guys
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:


Seed time — 2023-08-05 19:58:27 in General Chat
How in the hell is it possible:



All of user without seedbox don't have that problem just users with seedbox have abnormal seed time ...

Just dunking my head on the table (not drunking)
testing upload-bonus — 2023-08-04 18:14:33 in v3 Support
Hi @spiritblue
yes I tested your version of that but I need one more thing too:

take-upload-bonus.php

🥰
testing upload-bonus — 2023-08-04 17:56:17 in v3 Support
I think we have a shorter version of it already here in the forum somewhere

Thanks @djlive,
It was my fault

Had forgotten that the date format was changed everywhere

I have date formats like "d M Y" instead of "Y M d" and none of it worked correctly.
Hi and thanks to everyone involved in this MOD,
I can't get automatic parked code to work
have used bouth from posts of @djlive and @crisphp

$parked1 = sqlesc(get_date_time(gmtime() - 86400*92));  


tested to use for 3 months user inactivity

regards guys
For me it does not work at all from the beginning. I get it to clash with the date of birth somehow don't know why.
The attempt to implement it in many ways without having succeeded
Error sql — 2023-07-23 18:34:44 in v3 Support
I had similar problems with moving my tracker last year and finally discovered that it was the PHP version modules that caused huge problems.

Hope you solve your problems soon

We are always here to help each other

Salute
Error sql — 2023-07-23 08:17:59 in v3 Support
@spiritblue i have to admit that even this announce.php you attached works now, with no problems at all

You can see my client table settings here



Error sql — 2023-07-22 21:55:39 in v3 Support
I've tested both files and MicroMonkey's announce works flawlessly but it can't tell your announce Spiritblue, yours doesn't work unfortunately
presentation too long — 2023-07-14 15:57:00 in v2.08 Support
Hi @Sly,
There may be problems in bbcode.php and bbcode.js depending on which version of them you have.

In most cases it wouldn't be a problem, but you never know.

I'm glad you finally solved your problem
presentation too long — 2023-07-14 08:24:45 in v2.08 Support
I would test first with a smaller text length and then increase it and see when the error comes.

We have almost identical versions of MySQL, PHP and other things so to me it's a bit "strange" that you have this deviant problem


Apache version: Apache/2.4.56
PHP version: 7.4.9
MySQL version: 10.4.30-MariaDB
presentation too long — 2023-07-14 07:48:13 in v2.08 Support
Hi Sly, I don't have that problem.
Everything is OK on my test tracker

https://prnt.sc/9IA_mrfaJ9NM

https://prnt.sc/JqSBhIJd5CyS

https://prnt.sc/avgn-441G4wf

https://prnt.sc/OSGPUG9sZwRe

etc ...
etc ...

check you SQL version (upgrade/downgrade if it needs)

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