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

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

2021-05-24 12:39:38
Quote:
this also works in code from 1st post find print("<table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>";);
replace with



print('<marquee scrollAmount="7" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="left"><table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>');


This scrolls the entire index page, not only recommended :(

Edit: I found a solution :)


Last edited by coco on 2021-05-24 18:25:29
2023-08-15 20:01:21
Question: Do you config the same to Edit if I want to add an upload? ¿ 💡
2023-08-16 07:11:40
@spiritblue
do you mean like that?




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-16 09:48:13
2023-08-17 19:44:57
hewllo Botanicar

Yes exactly like you, but I don't have the config for upload
2023-08-18 06:59:58
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


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-18 07:01:10
2023-08-21 21:01:43
Big thanks  Botanicar #1 👍  🥰
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