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

utf-8 for NF0 — 2019-09-07 15:23:38 in v3 Support
Hello

after doing the procedure and a correction on the nfo file, i finally reissue.


In [color=rgb(251, 160, 38)]torrents-details [/color]search :

//DISPLAY NFO BLOCK
if($row["nfo"]== "yes"){
   $nfofilelocation = "$nfo_dir/$row[id].nfo";
   $filegetcontents = file_get_contents($nfofilelocation);
   $nfo = htmlspecialchars($filegetcontents);
       if ($nfo) {  
           $nfo = my_nfo_translate($nfo);
           echo "<br /><center><b>NFO &#x21b4;</b></center><br />";
           print("<center><textarea class='nfo' style='width:99%;height:100%;' rows='20' cols='20' readonly='readonly'>".stripslashes($nfo)."</textarea></center>");
       }else{
           print(T_("ERROR")." reading .nfo file!");
       }
}


Replace with :

//DISPLAY NFO BLOCK
if($row["nfo"]== "yes"){
   $nfofilelocation = "$nfo_dir/$row[id].nfo";
   $filegetcontents = file_get_contents($nfofilelocation);
   $nfo = htmlspecialchars($filegetcontents);
       if ($nfo) {  
           $nfo = my_nfo_translate($nfo);
if (get_user_class() >= 4) {          
   echo "<a class='stylebouton' href='nfo-view.php?id=".$row["id"]."' target='_blank'>".T_("VIEW_CURRENT_NFO")."</a>";          
}      
           echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8' /><br /><center><b>NFO &#x21b4;</b><br />";          
           print("<textarea class='nfo collapsible' style='width:96%;height:100%;' rows='20' cols='20' readonly='readonly'>".stripslashes($filegetcontents)."</textarea></center><br/>");
       }else{
           print(T_("ERROR")." Reading the .nfo file is not good! make sure that the encoding is in UTF-8 and that the file has the extension .nfo ");
       }
}    


In [color=rgb(251, 160, 38)]nfo-view [/color]search :

   if ($nfo) {
       $nfo = my_nfo_translate($nfo);
       if($CURUSER["edit_torrents"]=="yes")
           begin_frame(T_("NFO_FILE_FOR").": <a href='".$site_config["SITEURL"]."/torrents-details.php?id=$id'>$shortname</a> - <a href='nfo-edit.php?id=$id'>".T_("NFO_EDIT")."</a>");
       else
           begin_frame(T_("NFO_FILE_FOR").": $shortname");

       print("<textarea class='nfo' style=\"width:98%;height:100%;\" rows='50' cols='20' readonly='readonly'>".stripslashes($nfo)."</textarea>");

       end_frame();
   }

}//has nfo



Replace with :

   if ($nfo) {
       $nfo = my_nfo_translate($nfo);
       if($CURUSER["edit_torrents"]=="yes")
           begin_frame("<a href='".$site_config["SITEURL"]."/torrents-details.php?id=$id'><font size='3'>".$shortname."</font></a>");
       else
           begin_frame("$shortname");
       // .stripslashes($nfo)." // < souvegarde plus valide pour la v3
       print('<textarea class="nfo" name="content" cols="210" rows="40">'.$filegetcontents.'</textarea><br />');
       print("<br/><center><a class='stylebouton' href='nfo-edit.php?id=$id'>".T_("NFO_EDIT")."</a></center>");
       end_frame();
   }

}//has nfo


Thanks you[b][USER=1398] serph[/USER] ![/b]
coderlog — 2019-09-03 08:31:29 in v3 Mods in Progress
I had a type of error like you with contact staff.php and I solved them with ...
hoping it will solve your problem ;)

Search all...

mysql_query


Change all for ...
mysqli_query



mysql_fetch_array


Change all for ...
mysqli_fetch_array


Search...

 $query = "INSERT INTO trackerlog (timecode, tag, monat, jahr, eintrag) VALUES ($t_code, '$tag', '$monat', '$jahr', '$text')";
 if (mysql_query($query))


Change for ...

$query = SQL_Query_exec("INSERT INTO trackerlog (timecode, tag, monat, jahr, eintrag) VALUES ($t_code, $tag, $monat, $jahr, $text)");
 if (SQL_Query_exec)
Ajax Star Rating — 2019-09-02 14:47:52 in v3 Mods Completed
"serph, post: 67141, member: 1398":

im not quite sure what you mean the page takes 10 seconds to load ? or ?

yes it updates (REFRESH) every 10 seconds the page torrents-details
Ajax Star Rating — 2019-09-01 18:20:04 in v3 Mods Completed
thank you but the page is up to 10 seconds :(
"steven07, post: 67099, member: 1032":

Thank you very much for your answer. I have installed a shoutcast 2 server.
That would be very nice of you if you could help me with a frame on
---------------------------------------------------------------------------------------
[color=rgb(44, 130, 201)]Merci beaucoup pour votre réponse, j'ai installé un serveur shoutcast 2.
Ce serait très gentil de votre part si vous pouviez m'aider avec une Frame pour le shoutcast 2 [/color]:cool:


HERE ;)
Hi

Comes from: SPIRITBLUE
SQL:  No
From a request: Yes


This request comes from steven07 [url='https://www.torrenttrader.xyz/index.php?threads/shoutcast-radio-for-tt3.9855/#post-67102']HERE[/url]

Hack hack is designed for a shoutcast and as you know the choutcast only works when http is so your ssl will have to be disabled from your browser for this hack to work well.

Go!...

In [color=rgb(251, 160, 38)]index.php [/color]add or ca you ..

// Player Shoutcast v2 by spiritblue
if ($site_config['Player_shoutcast']){
   begin_frame(T_("Player Live Shoutcast"));
   ?>
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config['SITEURL'];?>/themes/<?php echo $THEME;?>/theme.css" />
   <script type="text/javascript" src="backend/java_klappe.js"></script>
   <?php
   $ip = "crazyspirits.com"; //IP or Name domain
   $port = "9090";// Port (Exemple: 8080)
   $fp = @fsockopen($ip,$port,$errno,$errstr,1);
   if (!$fp)
   {
   #echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream offline!' border='0'/>&nbsp;...SORRY! Close for the night Or for maintenance. Back very soon ?? </center>";
   }
   else
   {
   fputs($fp, "GET /7.html HTTP/1.0\r\nUser-Agent: Mozilla\r\n\r\n");
   while (!feof($fp))
       {
       $info = fgets($fp);
       }
   $info = str_replace('</body></html>', "", $info);
   $split = explode(',', $info);
   if (empty($split[6]))
   {
       echo "<br/><center><img src='".$site_config["SITEURL"]."/images/radio/offline.png' alt='Stream Offline' title='Stream hors ligne !' border='0'/>&nbsp;...SORRY! Close for the night and return early tomorrow at country time.</center><hr/>"; // Displays when sever is online but no song title
       }
   else
       {
       $title = str_replace('\'', '`', $split[6]);
       $title = str_replace(',', ' ', $title);
       $split = explode(' - ', $title);
       $artist = trim($split[0]);
       $song = trim($split[1]);
       }
   }
   /////
   function truncate($string, $length, $dots = "...") {
   return (strlen($string) > $length) ? substr($string, 0, $length - strlen($dots)) . $dots : $string;
  }
?>
   <center><span style="font-size:22px;color:#2090FF;"><img src='./images/radio/online.png' alt='Stream en ligne' title='Stream en ligne !' border='0'/> Currently on the radio ?¿..</span></center>
   <br/>
   <div border="4" cellpadding="7" align="center">
   <div id="nowPlaying" style="left:100%;font-size:15px;color:DarkGray;"><b>Artist:</b> <?php echo truncate("$artist", 40); ?></div>
   <div id="nowPlaying" style="left:100%;font-size:15px;color: DarkGray;"><b>Song:</b> <?php echo truncate("$song", 40); ?></div>
   <hr/>
<!-- player-container -->
  <audio id="player" volume="0" autoplay="false" preload="auto" src="http://crazyspirits.com:9090/;listen.m3u"></audio>
  <button type="button" onclick="document.getElementById('player').play()">Play</button>
  <button onclick="document.getElementById('player').pause()">Pause</button>
  <button onclick="document.getElementById('player').volume += 0.1">Vol +</button>
  <button onclick="document.getElementById('player').volume -= 0.1">Vol -</button>
<script type="text/javascript">
var monElementAudio = document.getElementById('player');
monElementAudio.volume = 0.9; //minimum volume heard once online
</script>
</div>

<?php
   end_frame();
}
// End player spiritblue


~ Add the "radio" name folder to the image name /images/radio/..
[ATTACH type="full" width="716px" alt="5155"]5155[/ATTACH]


[color=rgb(235, 107, 86)]NOTE[/color][color=rgb(209, 72, 65)]: [/color]i have added some writings to help you understand, you can add many more options, what i have not done so that all the communoté draws a media to have a personal taste. ?
utf-8 for NF0 — 2019-08-28 01:01:55 in v3 Support
Thanks ?

my bdd is at utf8_general_ci and my roster has utf8_bin

I always like it but it works more on the nfo
I will still follow your protocol, nothing to lose saw I have a lot of backup fact. (y)

yes I thought for the header line but it does not work or the reason for your help :giggle:
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $site_config["CHARSET"]; ?>" xml:lang="fr"/>
or
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
utf-8 for NF0 — 2019-08-25 16:55:41 in v3 Support
hi

need your help for encoding the NFO
my header and all my SQL tables in utf-8


at the edition of my NF0 all the accents works but on toretns-details he puts me sybole instead of my accents?
(é,è,ê,à,...etc)

a good Samaritan to a solution?

thanks ;)
Upload problem — 2019-08-24 18:33:39 in v3 Support
"steven07, post: 67108, member: 1032":

I have a problem with the torrent file
Have a torrent uploaded and everything goes normal when uploading
But if I load the torrent from my side and take in the seed I get this error message

[color=rgb(184, 49, 47)]Failed to add torrent. The retrieved content is not a valid torrent file. [/color]

[color=rgb(255, 255, 255)]Maybe someone had the problem or knows what it is?

Thank you [/color]

it looks like a problem in your language file and also looks for encoding in UTF-8 for all your .php file
big thanks serph ! ;)

...
very generous (y)
ok, no trouble I'll make you! (y)
Hi
You know who you need a shoutcast to install on your server or to buy on site?

I have shoutcast for over ten years and what you show here is for version 1 but the world uses the shoutcaste v2

I can make you a frame that you are looking for but shoutcast v2 that I will post you to the selection "mod full v3"

Would you like it?

(Sorry about my translation )
"serph, post: 67090, member: 1398":

post your functions.php ill need to take a look as its working as should on my dev site v03  and main site v2.08

ok , thanks
Hi everybody,

For those who have multiple themes and would like to see on the profile of the member, what theme the member has chosen.

In [color=rgb(251, 160, 38)]account-details.php[/color] search :

//$country
$res = SQL_Query_exec("SELECT name FROM countries WHERE id=$user[country] LIMIT 1");
if (mysqli_num_rows($res) == 1){
   $arr = mysqli_fetch_assoc($res);
   $country = "$arr[name]";
}
if (!$country) $country = "<b>Aucun</b>";


Add after :

//$stylesheet
$res = SQL_Query_exec("SELECT name FROM stylesheets WHERE id=$user[stylesheet] LIMIT 1");
if (mysqli_num_rows($res) == 1){
   $arr = mysqli_fetch_assoc($res);
   $stylesheets = "$arr[name]";
}


Search :
<?php echo T_("USERCLASS"); ?>: <?php echo get_user_class_name($user["class"])?><br />


Add after :
<?php echo T_("THEME_NAME"); ?>: <?php echo $stylesheets?><br />


* Added to your lang file this line..
$LANG["THEME_NAME"] = "Theme Uses";
SB-TTv3 [New concept] — 2019-08-17 11:58:42 in v3 Themes
That's the first theme for v3 2019 ?

* I added some writings to the file to better understand

==========================================
update 01-01-2022
Download here: https://mega.nz/file/qkomiYrA#YRs2h2vH0fqVOVg8LjOLLpWrMTphYd1cvQJOQvAmBWU
thank you, but still the same problem and even if I update it is still in my profile and must I head on the index for it works
Database Error — 2019-08-17 11:45:12 in v3 Support
Bonjour niki


J'ai pas eu ce probleme de mon coté, mais je suis content pour toi tes trouver la solution.

amuse toi bien !
============================================
Hello niki



I did not have this problem on my side, but I'm happy for you to find the solution.


have fun !
Hi

Author : BigMax1
Link : Here
Edit By : Spiritblue
SQL : No

Creation of BigMax1 and it was for the external torrent and on my side I needed only the internal torrent.


Go...

Create a file named "torrents-dead.php" and add to the root of your site:


<?php
require_once("backend/functions.php");
dbconn();

   if ($CURUSER["control_panel"] != "yes") { show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1); }

   $page = (int) $_GET["page"];
   $perpage = 50;

   $res2 = SQL_Query_exec("SELECT COUNT(*) FROM torrents WHERE banned = 'no' AND seeders < 1");
   $row2 = mysqli_fetch_array($res2);
   $count = $row2[0];

   list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "torrents-dead.php?id=$id&amp;");

   $res = SQL_Query_exec("SELECT torrents.id, torrents.name, torrents.owner, torrents.external, torrents.size, torrents.seeders, torrents.leechers, torrents.times_completed, torrents.added, torrents.last_action, users.username FROM torrents LEFT JOIN users ON torrents.owner = users.id WHERE torrents.banned = 'no' AND torrents.seeders < 1 ORDER BY torrents.added DESC $limit");
 
   if ($_POST["do"] == "delete") {
       if (!@count($_POST["torrentids"]))
           show_error_msg("Error", "<div style='margin-top:10px; margin-bottom:10px' align='center'>You must select at least one torrent.  &nbsp; [<a href='torrents-dead.php'><b>Return </b></a>]</div>", 1);
       foreach ($_POST["torrentids"] as $id) {
           deletetorrent(intval($id));
           write_log("<a href=account-details.php?id=$CURUSER[id]><b>$CURUSER[username]</b></a>deleted the torrent ID : [<b>$id</b>]of the page: <i><b>Dead Torrents </b></i>");
       }
       autolink("torrents-dead.php", "The selected torrent has been successfully deleted .");
   }
 
   stdhead("Dead Torrents");

   if ($count < 1) show_error_msg("".T_("NOTHING_FOUND")."", "<div style='margin-top:10px; margin-bottom:10px' align='center'><font size='2'><i>...No Dead Torrents !</i></font></div>", 1);

   begin_frame("The Dead Torrents");

   echo "<div style='margin-top:10px' align='center'><font size='4'>List of dead torrents without being shared and sorted by date of sharing </font></div>";

   echo "<hr class='barre'/><div style='margin-top:16px; margin-bottom:20px' align='center'><font size='4'>We have<font color='IndianRed'><b>$count</b></font> DEAD".($count != 1 ? "s" : "")." torrent".($count != 1 ? "s" : "")."</font></div>";

   If ($count > $perpage) { print($pagertop);
   print("<br />");
   }
 
   ?>
   <form id="myform" method='post' action='torrents-dead.php'>
   <input type='hidden' name='do' value='delete' />
   <table cellpadding="5" cellspacing="0" class="table_table" align="center" width="98%">
       <tr>
           <th class="table_head" align="left"><?php echo T_("TORRENT_NAME"); ?></th>
           <th class="table_head" align="left"><?php echo T_("UPLOADER"); ?></th>
           <th class="table_head"><?php echo T_("SIZE"); ?></th>
           <th class="table_head"><img src="images/seed.gif" border="0" title="Seeders"></th>
           <th class="table_head"><img src="images/leech.gif" border="0" title="Leechers"></th>
           <th class="table_head"><img src="images/ready.png" border="0" title="Completed"></th>
           <th class="table_head" width="1%"><?php echo T_("ADDED"); ?></th>
           <th class="table_head" width="1%"><?php echo T_("LAST_ACTION"); ?></th>
       <?php if (get_user_class() >= 6) { ?>
           <th class='table_head'><input type='checkbox' name='checkall' onclick='checkAll(this.form.id);' /></th>
       <?php } ?>
       </tr>  

       <?php
   while ($row = mysqli_fetch_assoc($res))
   {
       if ($row["username"]) $owner = "<a href='account-details.php?id=".$row["owner"]."'><b>".$row["username"]."</b></a>";
       else $owner = T_("UNKNOWN_USER");
       ?>

       <tr>
           <td class="table_col1"><a href="torrents-details.php?id=<?php echo $row["id"]; ?>"><?php echo CutName(htmlspecialchars($row["name"]), 50) ?></a></td>
           <td class="table_col2"><?php echo $owner; ?></td>
           <td class="table_col2" align="center"><?php echo mksize($row["size"]); ?></td>
           <td class="table_col1" align="center"><font color="limegreen"><b><?php echo number_format($row["seeders"]); ?></b></font></td>
           <td class="table_col2" align="center"><font color="red"><b><?php echo number_format($row["leechers"]); ?></b></font></td>
           <td class="table_col1" align="center"><font color="#0080FF"><b><?php echo number_format($row["times_completed"]); ?></b></font></td>
           <td class="table_col2" align="center"><?php echo date("d.M.Y H:i", utc_to_tz_time($row["added"])) ?></td>
           <td class="table_col2" align="center"><?php echo date("d.M.Y H:i", utc_to_tz_time($row["last_action"])) ?></td>
       <?php if (get_user_class() >= 6) { ?>
           <td class='table_col2' align='center'><input type='checkbox' name='torrentids[]' value='<?php echo $row["id"]; ?>' /></td>
       <?php } ?>
       </tr>    

   <?php
   }
   ?>
   </table>
   <?php if (get_user_class() >= 6) { ?>
       <div style='margin-top:3px' align='right'><input type='submit' value='Remove The Checks ' />&nbsp;</div>
   <?php } ?>
   </form>
   <?php
   If ($count > $perpage) { print($pagerbottom); } else { print("<br />"); }

   end_frame();
   stdfoot();
?>



Add to your lang file :

$LANG["TORRENT_NAME"] = "Torrent Name";
$LANG["UPLOADERS"] = "Uploader";
$LANG["SIZE"] = "Size";
$LANG["ADDED"] = "Add";
$LANG["LAST_ACTION"] = "last&nbsp;Action";
$LANG["UNKNOWN_USER"] = "Unknown member ";
$LANG["NOTHING_FOUND"] = "Nothing was found ";
$LANG["ERROR"] = "Error";
$LANG["SORRY_NO_RIGHTS_TO_ACCESS"] = "Sorry, you are not allowed to access this page !";



~ Add the three images in your folder named "images"
"DarkMaster, post: 67066, member: 1":

[USER=401]@spiritblue[/USER] would you like to share your version with us please

of course  ;)
thank you works well on the v3 and I converted them for non-external torrents;)
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: 10

  • Online

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