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

TTv3 Modded — 2019-04-27 15:57:08 in v3 Download
[color=rgb(250, 197, 28)]Edited 13/04/20 [/color]
This is a old version of v3 modded that i used on my live site.
The structure is slightly different i started separating the functions but decided to move to pdo oop, because the structure is different adding further mods might need some tweaking.

This version works just as well as v3 and has most of the mods in v3 mods completed at the time of this post

Ive removed this from github because i no longer use it and i wont be updating it any further but thought id leave it here
support will be limited
My pdo one will have all these mods eventually
in header find

                        print (T_("LOGGED_IN_AS").": ".$CURUSER["username"]."");


replace with

                        print (T_("LOGGED_IN_AS").": <a href='account-details.php?id=$row[id]'>".$CURUSER["username"]."</a>");


or if you have colour function

                    print (T_("LOGGED_IN_AS").": <a href='account-details.php?id=$row[id]'>". class_user($CURUSER[username]) ."</a>");
SuperTag [TTv3] — 2019-04-27 10:30:02 in v3 Mods in Progress
[color=rgb(251, 160, 38)]WARNING !!! Do not install on live site (for testing only)[/color]

Mod still has 3 issues torrent_tag table needs work, when click search brings white page & click torrent upload shows white page ( maybe both to do with table)

[color=rgb(251, 160, 38)]SQL[/color]
-
-- Table structure for table `tags`
--

CREATE TABLE `tags` (
 `id` int(10) UNSIGNED NOT NULL,
 `url` varchar(255) NOT NULL,
 `tag_id` int(20) UNSIGNED NOT NULL,
 `tag_name` varchar(60) NOT NULL DEFAULT '',
 `added_by` int(10) UNSIGNED NOT NULL DEFAULT '0',
 `banned_by` int(10) UNSIGNED NOT NULL,
 `tag_banned` enum('yes','no') NOT NULL DEFAULT 'no',
 `banned_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `banned_reason` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `tags`
--

INSERT INTO `tags` (`id`, `url`, `tag_id`, `tag_name`, `added_by`, `banned_by`, `tag_banned`, `banned_date`, `banned_reason`) VALUES
(0, '', 2, 'test', 1, 0, 'no', '0000-00-00 00:00:00', ''),
(0, '', 3, 'slammin', 1, 0, 'no', '0000-00-00 00:00:00', '');

-- --------------------------------------------------------

--
-- Table structure for table `torrent_tags`
--

CREATE TABLE `torrent_tags` (
 `t.tag_banned` int(20) UNSIGNED NOT NULL,
 `tt.torrent_id` varchar(255) NOT NULL,
 `torrent_id` int(20) UNSIGNED NOT NULL,
 `added_by` varchar(255) NOT NULL,
 `tag_id` int(20) UNSIGNED NOT NULL,
 `tt.tag_id` int(20) UNSIGNED NOT NULL,
 `t.tag_name` varchar(255) NOT NULL,
 `t.tag_id` int(20) UNSIGNED NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

ALTER TABLE groups ADD `can_add_tags` enum('yes','no') NOT NULL DEFAULT 'no';

--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
 ADD PRIMARY KEY (`tag_id`),
 ADD KEY `tag_name` (`tag_name`);


--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
 MODIFY `tag_id` int(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;


[color=rgb(251, 160, 38)]Backend/functions.php find[/color]
    print("<center><b>" . $message . "</b></center>\n");
   end_frame();


replace with
    if(is_array($message)){
       foreach($message as $m){
           print("<center><b>" . $m . "</b></center><br />");
       }
   } else {
       print("<center><b>" . $message . "</b></center>\n");
   }
   end_frame();


find
 
 SQL_Query_exec("DELETE FROM torrents WHERE id = $id");
   SQL_Query_exec("DELETE FROM reports WHERE votedfor = $id AND type = 'torrent'");


after add
 
  SQL_Query_exec("DELETE FROM torrent_tags WHERE torrent_id = " . $id);  


find
      return is_numeric($id) && ($id > 0) && (floor($id) == $id);
}


after add

       function get_tags(){
   return SQL_Query_exec("SELECT tag_id, tag_name from tags");
}
function get_tags_for_torrent($torrentId){
   return SQL_Query_exec(" SELECT tt.tag_id, t.tag_name FROM torrent_tags tt
                       LEFT JOIN tags t ON tt.tag_id = t.tag_id
                       WHERE tt.torrent_id = " . intval($torrentId) . "
                       AND t.tag_banned != 'Y'");
}

function is_valid_tag_name($tag){

   $res = mysqli_fetch_assoc(SQL_Query_exec("SELECT COUNT(tag_id) AS tc from tags WHERE tag_name = '" . mysqli_real_escape_string($GLOBALS["DBconnector"],$tag) . "'"));
   if ($res['tc'] != 0)
       return true;
   else
       return false;
}

function get_tag_id_from_name($tagName){
   $res = mysql_fetchi_assoc(SQL_Query_exec("SELECT tag_id, tag_banned from tags WHERE tag_name = '" . mysqli_real_escape_string($GLOBALS["DBconnector"],$tagName) . "'"));
   if ($res['tag_banned'] == 'Y'){
       return "banned";
   } else if ($res['tag_id']) {
       return $res['tag_id'];
   }
}

function add_new_tag($tagName){
   global $CURUSER;
   $tagName = strtolower(trim(preg_replace("/--+/", '-', preg_replace('/[^A-Za-z0-9\-]+/', '-', $tagName)), "-"));
   SQL_Query_exec("INSERT INTO tags
                           (tag_name, added_by)
                           VALUES
                           ('" . $tagName . "', '" . $CURUSER['id'] . "')");
   return mysqli_insert_id();
}

function add_tag_id_to_torrent($tagId, $torrentId){
   global $CURUSER;
   SQL_Query_exec("INSERT INTO torrent_tags (torrent_id, tag_id, added_by)
                           VALUES (" . intval($torrentId) . ", " . intval($tagId) . ", " . intval($CURUSER['id']) . ")");
}

function print_torrent_tags_js($placeholder, $initialTags=""){
   global $site_config;

   if($initialTags){
       $initialTags = implode('","', explode(",", htmlspecialchars($initialTags)));
   }

   // Grab tag names
   $tags = get_tags();
   while ($row = mysqli_fetch_array($tags)) {
       $autotags[] = $row['tag_name'];
   }

   ?>

   <script type="text/javascript">

       $('#tags').tagEditor({
           autocomplete: {
               delay: 0, // show suggestions immediately
               position: { collision: "flip" }, // automatic menu position up/down
               source: ["<?php echo implode('","',$autotags); ?>"]
           },
           forceLowercase: true,
           delimiter: ", ", /* space and comma */
           initialTags: [<?php echo '"' . $initialTags . '"'; ?>],
           placeholder: "<?php echo $placeholder; ?>",
           maxTags: <?php echo intval($site_config['max_torrent_tags']); ?>,
           removeDuplicates: true
       });

   </script>

   <?php
}


find
              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>":"")."&nbsp;<a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a></td>"); 


add after
                   
                $tags = get_tags_for_torrent($id);
               while ($row = mysqli_fetch_array($tags)) {
                   $tagHtml[] = "<a href='./torrents.php?tags=" . $row['tag_id'] . "'>" . $row['tag_name'] . "</a>";
               }
               //print_r($tagHtml);
               print($tagHtml ? "<br />&nbsp;<span class='tags'>" . implode(", ", $tagHtml) . "</span>" : "");
               print("</td>");
               unset($tagHtml);


[color=rgb(251, 160, 38)]admincp add link[/color]
<td align="center"><a href="admincp.php?action=tags"><img src="images/admin/hashtag.png" border="0" width="118" height="80" alt="" /><br />Tags<br /></a></td>


add at bottom before ?
#======================================================================#
#  TAGS by Mjay
#======================================================================#

if ($action == "tags") {
   stdhead("tags Manager");
   navmenu();

   if ($do == "del") {
       if (!@count($_POST["ids"])) show_error_msg("Error", "select nothing.", 1);
       $ids = array_map("intval", $_POST["ids"]);
       $ids = implode(", ", $ids);
       
       SQL_Query_exec("DELETE FROM `tags` WHERE `tag_id` IN ($ids)");
       autolink("admincp.php?action=tags", "Deleted Entries");
   }

   if ($do == "add") {
       $tag_name = trim($_POST["tag_name"]);
       if (empty($tag_name))
           show_error_msg(T_("ERROR"), T_("MISSING_FORM_DATA").". Go back and try again", 1);

       if (!is_valid_tag_name($tag_name)){
           add_new_tag($tag_name);
           switch (mysqli_errno($GLOBALS["DBconnector"])) {
               case 0:
                   show_error_msg(T_("SUCCESS"), "Tag added.", 0);
               break;
               default:
                   show_error_msg(T_("ERROR"), T_("THEME_DATEBASE_ERROR")." ".htmlspecialchars(mysqli_error($GLOBALS["DBconnector"])), 0);
           }
       } else {
           show_error_msg(T_("ERROR"), T_("TAG_EXISTS"), 0);
       }
   }

   if ($do == "ban") {
       foreach ($_POST['banned'] as $tagid => $banstatus){
           SQL_Query_exec("UPDATE tags
                           SET tag_banned = '" . ($banstatus=='Y' ? 'Y' : 'N') . "',
                           banned_by = '" . ($banstatus=='Y' ? $CURUSER['id'] : 0) . "',
                           banned_date = " . ($banstatus=='Y' ? 'NOW()' : '0') . ",
                           banned_reason = " . ($banstatus=='Y' ? sqlesc($_POST['bannedReason'][$tagid]) : '"-"') . "
                           WHERE tag_id = '" . intval($tagid) . "'");
       }
       show_error_msg(T_("SUCCESS"), "Tag(s) ban status updated.", 0);
   }

   begin_frame("Management of Tags");
   echo "<p align=\"justify\">This page allows you to add, delete and ban tags.</p><br />";



   $count = get_row_count("tags");
   if ($count == 0)
   print("<b>No Tags Found</b><br />\n");
   else {
   list($pagertop, $pagerbottom, $limit) = pager(25, $count, 'admincp.php?action=tags&amp;');
                                                                                                                                                                                                                                                               

   echo "<form id='tags' method='post' action='admincp.php?action=tags'>
   <input type='hidden' name='do' value='del' />
   <table border='0' cellpadding='3' cellspacing='0' width='100%' align='center' class='table_table'>
   <tr>
           <th class='table_head'>Tag</th>
           <th class='table_head'>Added By</th>
           <th class='table_head'>Date Added</th>
           <th class='table_head'>Banned</th>
           <th class='table_head'>Banned By</th>
           <th class='table_head'>Date Banned</th>
           <th class='table_head'>Banned Reason</th>
       <th class='table_head'><input type='checkbox' name='checkall' onclick='checkAll(this.form.id);' /></th>
   </tr>";

   $res2 = SQL_Query_exec("SELECT tags.*, tag_id, ua.username as addedby, ub.username as bannedby FROM tags
                               LEFT JOIN users ua ON tags.added_by = ua.id
                               LEFT JOIN users ub ON tags.banned_by = ub.id
                               ORDER BY tag_name ASC $limit");
   while ($arr = mysqli_fetch_assoc($res2)) {
       echo "<tr>
       
           <td align='center' class='table_col2'>" . htmlspecialchars($arr['tag_name']) . "</td>
           <td align='center' class='table_col2'><a href='account-details.php?id=" . intval($arr['added_by']) . "'>" . htmlspecialchars($arr['addedby']) . "</a></td>
           <td align='center' class='table_col2'>".date('d/m/Y H:i:s', utc_to_tz_time($arr["added_date"]))."</td>
           <td align='center' class='table_col2'><input type='radio' name='banned[" . $arr['tag_id'] . "]' value='Y' " . ($arr['tag_banned']=='Y' ? "checked" : "") . "> Yes&nbsp;&nbsp; <input type='radio' name='banned[" . $arr['tag_id'] . "]' value='N' " . ($arr['tag_banned']!='Y' ? "checked" : "") . "> No<br></td>
           <td align='center' class='table_col2'>" . ($arr['banned_by'] ? "<a href='account-details.php?id=" . intval($arr['banned_by']) . "'>" . htmlspecialchars($arr['bannedby']) . "</a>" : "-") . "</td>
           <td align='center' class='table_col2'>".($arr["banned_date"]!=0 ? date('d/m/Y H:i:s', utc_to_tz_time($arr["banned_date"])) : "-")."</td>
           <td align='center' class='table_col2'><input type='text' name='bannedReason[" . $arr['tag_id'] . "]' value='".($arr["banned_reason"] ? htmlspecialchars($arr["banned_reason"]) : "-")."'></td>
           <td class='table_col1' align='center'><input type='checkbox' name='ids[]' value=" . $arr['tag_id'] . " /></td>
       </tr>";
   }
   echo '</table><br />';    
   echo "<center><input type='submit' value='Update' />&nbsp;&nbsp;<input type='submit' value='Delete' /></center></form><br />";
   if ($count > 25) echo $pagerbottom;
   }
   echo "<br />";
   print("<form method='post' action='admincp.php?action=tags&amp;do=add'>\n");
   print("<table cellspacing='0' cellpadding='5' align='center' class='table_table' width='98%'>\n");
   print("<tr><th class='table_head' align='center'>Add Tag</th></tr>\n");
   print("<tr><td class='table_col1' align='center'>Tag: <input type='text' name='tag_name' size='40' /></td></tr>\n");
   print("<tr><td class='table_head' align='center'><input type='submit' value='Okay' /></td></tr>\n");
   print("</table></form><br />\n");

   end_frame();
   stdfoot();
}
     // END Mjays Tags


[color=rgb(251, 160, 38)]header.php add css & js[/color]
<script src="https://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-migrate-3.0.1.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" type="text/javascript"></script>
<script src="./js/jquery.tag-editor.min.js" type="text/javascript"></script>
<script src="./js/jquery.caret.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="./css/jquery.tag-editor.css">


[color=rgb(251, 160, 38)]theme.css[/color]

input, select {

change to
input, select, .tag-editor {


input[type=text] {

change to
input[type=text], .tag-editor {


[color=rgb(251, 160, 38)]torrents.php find[/color]
$category = (int) $_GET["cat"];

add after
// supertag mod
if($_GET['tagNames']){
   $tagNames = explode(",", mysqli_real_escape_string($GLOBALS["DBconnector"],$_GET['tagNames']));
   foreach($tagNames as $tagName){
       if($tagId = get_tag_id_from_name($tagName)){
           $tagNameIdArray[] = $tagId;
       }
   }
}

if ($_GET["tags"] || isset($tagNameIdArray)){
   if(isset($_GET["tags"])){
       $tagArray = explode(',', mysqli_real_escape_string($GLOBALS["DBconnector"],$_GET["tags"]));
   }
   if(isset($tagNameIdArray)){
       isset($tagArray) ? $tagArray = array_merge($tagArray, $tagNameIdArray) : $tagArray = $tagNameIdArray;
   }
   $addparam .= "tags=" . urlencode($_GET["tags"]) . "&amp;";
   $thisurl .= "tags=".urlencode($_GET["tags"])."&amp;";
   $wherea[] = "torrents.id IN (SELECT torrent_id FROM torrent_tags WHERE tag_id IN ('" . implode("', '", $tagArray) . "'))";
}


[color=rgb(251, 160, 38)]torrent-details.php[/color]
//DECIDE IF TORRENT EXISTS


before add
// Get all tags
$tags = get_tags_for_torrent($id);


find
if (empty($row["lang_name"])) $row["lang_name"] = "Unknown/NA";


before add
while ($row = mysqli_fetch_array($tags)) {
   $tagHtml[] = "<a href='./torrents.php?tags=" . $row['tag_id'] . "'>" . $row['tag_name'] . "</a>";
}

print("<tr><td align='left'><b>Tags:</b></td><td>" . ($tagHtml ? implode(", ", $tagHtml) : "none") . "</td></tr>\n");


[color=rgb(251, 160, 38)]torrent-upload.php[/color]
        $message = T_("UPLOAD_NO_ID");
       show_error_msg(T_("UPLOAD_FAILED"), $message, 1);
   }


replace with
            $message[] = T_("UPLOAD_NO_ID");
       show_error_msg(T_("UPLOAD_FAILED"), $message[], 1);
   } else {
       // Check the tags - not required for a valid upload
       if ($torrentTags = array_unique(explode(",", mysql_real_escape_string($GLOBALS["DBconnector"],$_POST["tags"])))){
           if(count($torrentTags) > 10){
               $torrentTags = array_splice($torrentTags, 10);
               $message[] = "You can only add up to " . intval($site_config['max_torrent_tags']) . " tags, the first " . intval($site_config['max_torrent_tags']) . " have been selected";
           }
           if($CURUSER['can_add_tags']) {
               foreach ($torrentTags as $torrentTag) {
                   // Check if the tag exists
                   if ($tagId = get_tag_id_from_name($torrentTag)) {
                       if ($tagId == 'banned') {
                           $message[] = "Tag '" . htmlspecialchars($torrentTag) . "' has been banned by staff";
                       } else {
                           // It exists and isnt banned - add it for this torrent
                           add_tag_id_to_torrent($tagId, $id);
                       }
                   } else {
                       // Add new tag
                       $newTagId = add_new_tag($torrentTag);
                       add_tag_id_to_torrent($newTagId, $id);
                   }
               }
           } else {
               $message[] = "Your userlevel is not allowed to add tags";
           }
       }
   }


find
begin_frame(T_("UPLOAD"));


add before
    // Grab tag names
$tags = get_tags();
while ($row = mysqli_fetch_array($GLOBALS["DBconnector"],$tags)) {
   $autotags[] = $row['tag_name'];
}


find
print ("<tr><td align='right'>" .T_("NFO"). ": </td><td align='left'> <input type='file' name='nfo' size='50' value='" . $_FILES['nfo']['name'] . "' /><br />\n</td></tr>");


add after
print ("<tr><td align='right'>Tags: </td><td align='left'><input id='tags' class='ui-autocomplete-input' type='text' name='tags' size='60' value='" . $_POST['tags'] . "' /><br />Tags can be selected from the drop down. " . ($CURUSER['can_add_tags'] ? "You can also add you own custom tags by typing one that doesnt exist" : "Your userlevel does not allow adding custom tags so they will be ignored if added") . "</td></tr>");
print_torrent_tags_js("Start typing ...");


[color=rgb(251, 160, 38)]torrent-search.php[/color]
    <?php echo  $catdropdown ?>
   </select>


add after
    <br /><br />
       <?php print(T_("TAGS")); ?>
   <input id="tags" class="ui-autocomplete-input" type="text" name="tagNames" size="40" />

   <?php print_torrent_tags_js("Search tags ...", $_GET['tagNames']); ?>


find
$parent_cat = $_GET["parent_cat"];


add after
if($_GET['tagNames']){
   $tagNames = explode(",", mysqli_real_escape_string($GLOBALS["DBconnector"],$_GET['tagNames']));
   foreach($tagNames as $tagName){
       if($tagId = get_tag_id_from_name($tagName)){
           $tagNameIdArray[] = $tagId;
       }
   }
}

if ($_GET["tags"] || isset($tagNameIdArray)){
   if(isset($_GET["tags"])){
       $tagArray = explode(',', mysqli_real_escape_string($GLOBALS["DBconnector"],$_GET["tags"]));
   }
   if(isset($tagNameIdArray)){
       isset($tagArray) ? $tagArray = array_merge($tagArray, $tagNameIdArray) : $tagArray = $tagNameIdArray;
   }
   $addparam .= "tags=" . urlencode($_GET["tags"]) . "&amp;";
   $thisurl .= "tags=".urlencode($_GET["tags"])."&amp;";
   $wherea[] = "torrents.id IN (SELECT torrent_id FROM torrent_tags WHERE tag_id IN ('" . implode("', '", $tagArray) . "'))";
}


add files to root





From TTfr and updated credit to wapin

[color=rgb(251, 160, 38)]Add in admincp.php[/color]
// Adding seedbonus to User
if ($action == "ajoutseedbonus") {
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($_POST["username"] == "" || $_POST["pointbonus"] == "")
show_error_msg("Error", "Missing data.<a href=/admincp.php?action=ajoutseedbonus>Return</a>", 1);
$username = sqlesc($_POST["username"]);
$seedbonus = $_POST["pointbonus"];
$userid = $CURUSER["id"];

$res = SQL_Query_exec("SELECT id,modcomment FROM users WHERE username=$username");
$arr = mysqli_fetch_row($res);
if (!$arr)    {
show_error_msg("Error", "Unable to update the selected account.<a href=/admincp.php?action=ajoutseedbonus>Return");
}else{
$msg ="$CURUSER[username] give you ".$seedbonus." SeedBonus points, just for you!";
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, subject, msg) VALUES ('0', $arr[0], '" . get_date_time() . "','Gift of SeedBonus', " . sqlesc($msg) .")");                  
}
$modcomment = $arr[1];
$modcomment = gmdate("Y-m-d") . " - " . $CURUSER['username'] . " gave " . sqlesc($seedbonus) . "SeedBonus points to this user.\n " . $modcomment;
SQL_Query_exec("UPDATE users SET modcomment = " . sqlesc($modcomment) . ", seedbonus=seedbonus + $seedbonus WHERE username=$username");
write_log("$CURUSER[username] to give ". sqlesc($seedbonus) ." seedbonus points ".$username."");
autolink("$site_config[SITEURL]/account-details.php?id=$arr[0]", "you gave " . sqlesc($seedbonus) . "seedbonus points " . $username);
die;
}
stdhead("Add SeedBonus");
if ("admincp.php?action=ajoutseedbonus");
begin_frame("Add SeedBonus");
echo "<form method=\"post\" action=\"admincp.php?action=ajoutseedbonus\">";

?>
<center><font color="red" size="2"><b>*Add member's name and amount.</b></font></center>
<center><table class="table_col1" border="0" width="100%" cellspacing="0" cellpadding="0" align="center">

<?php

$res = SQL_Query_exec("SELECT username FROM users ORDER BY username");
$pseudo = "<select name=\"username\">\n";
while ($arr = mysqli_fetch_assoc($res)){
$pseudo .= "<option value=\"$arr[username]\">$arr[username]</option>\n";

}
?>
<tr><td class="row1" align="center"><b>Name : </b><?php echo $pseudo;?></td></tr>
<tr><td class="row1" align="center"><b>Amount : </b><input type="text" name="pointbonus" size="5"/></td></tr></td></tr>
<tr><td colspan="2" class="row1" align="center"><input type="submit" value=" Valider " class="btn"/></td></tr>
</table></center>
</form>

<?php

end_frame();
navmenu();
stdfoot();
}
// END Add seedbonus for user


Add link
<td align="center"><a href="admincp.php?action=ajoutseedbonus"><img src="images/admin/bonnusm.png" border=0 height=32><br>Ajout SeedBonus</a></td>


add image to images/admin folder
credit to original author

// Last forum post on index
begin_frame("Recent Fourum Post ");
print("<b>Last posts on Forum</b><br>");
print("<table align=center cellpadding=1 cellspacing=0 style='border-collapse: collapse' bordercolor=#646262 width=100% border=1 ><tr>".
"<td bgcolor=#5c5c5c align=left  width=100%><b>Title</b></td>".
"<td bgcolor=#5c5c5c align=center width=47><b>Replys</b></td>".
"<td bgcolor=#5c5c5c align=center width=47><b>Views</b></td>".
"<td bgcolor=#5c5c5c align=center width=85><b>Auther</b></td>".
"<td bgcolor=#5c5c5c align=right width=85><b>Last Post</b></td>".
"</tr>");


/// HERE GOES THE QUERY TO RETRIEVE DATA FROM THE DATABASE AND WE START LOOPING ///
$for = SQL_Query_exec("SELECT * FROM forum_topics ORDER BY lastpost DESC LIMIT 5");

while ($topicarr = mysqli_fetch_assoc($for)) {
// Set minclass
$res = SQL_Query_exec("SELECT name,minclassread,guest_read FROM forum_forums WHERE id=$topicarr[forumid]") or sqlerr();
$forum = mysqli_fetch_assoc($res);

if (get_user_class() >= $forum["minclassread"] || $forum["guest_read"] == "yes") {
$forumname = "<a href=?action=viewforum&amp;forumid=$topicarr[forumid]><b>" . htmlspecialchars($forum["name"]) . "</b></a>";

$topicid = $topicarr["id"];
$topic_title = stripslashes($topicarr["subject"]);
$topic_userid = $topicarr["userid"];
// Topic Views
$views = $topicarr["views"];
// End

/// GETTING TOTAL NUMBER OF POSTS ///
$res = SQL_Query_exec("SELECT COUNT(*) FROM forum_posts WHERE topicid=$topicid") or sqlerr(__FILE__, __LINE__);
$arr = mysqli_fetch_row($res);
$posts = $arr[0];
$replies = max(0, $posts - 1);

/// GETTING USERID AND DATE OF LAST POST ///
$res = SQL_Query_exec("SELECT * FROM forum_posts WHERE topicid=$topicid ORDER BY id DESC LIMIT 1") or sqlerr(__FILE__, __LINE__);
$arr = mysqli_fetch_assoc($res);
$postid = 0 + $arr["id"];
$userid = 0 + $arr["userid"];
$added = "<nobr>" . $arr["added"] . "</nobr>";

/// GET NAME OF LAST POSTER ///
$res = SQL_Query_exec("SELECT id, username FROM users WHERE id=$userid") or sqlerr(__FILE__, __LINE__);
if (mysqli_num_rows($res) == 1) {
$arr = mysqli_fetch_assoc($res);
$username = "<a href=account-details.php?id=$userid>".class_user($arr['username'])."</a>";
}
else
$username = "Inconnu[$topic_userid]";

/// GET NAME OF THE AUTHOR ///
$res = SQL_Query_exec("SELECT username FROM users WHERE id=$topic_userid") or sqlerr(__FILE__, __LINE__);
if (mysqli_num_rows($res) == 1) {
$arr = mysqli_fetch_assoc($res);
$author = "<a href=account-details.php?id=$topic_userid>".class_user($arr['username'])."</a>";
}
else
$author = "Inconnu[$topic_userid]";

/// GETTING THE LAST INFO AND MAKE THE TABLE ROWS ///
$r = SQL_Query_exec("SELECT lastpostread FROM forum_readposts WHERE userid=$userid AND topicid=$topicid") or sqlerr(__FILE__, __LINE__);
$a = mysqli_fetch_row($r);
$new = !$a || $postid > $a[0];
$subject = "<a href=forums.php?action=viewtopic&topicid=$topicid><b>" . stripslashes(encodehtml($topicarr["subject"])) . "</b></a>";

print("<tr class=alt1><td style='padding-right: 5px'>$subject</td>".
"<td class=alt2 align=center>$replies</td>" .
"<td class=alt1 align=center>$views</td>" .
"<td class=alt1 align=center>$author</td>" .
"<td class=alt2 align=right><nobr><small>By&nbsp;$username<br>$added</small></nobr></td>");

print("</tr>");
} // while
}
print("</table><br>");
end_frame();
ideally you would use jquery for scollers which isnt something im familiar with, i forgot one image so updated first post.

You can use the scoller from http://www.torrenttrader.xyz/index.php?threads/recent-torrent-scroller-ttv3.4929/
on index code change carroussel.php to recomend.php
then download carroussel.php and rename to recomend.php
in recomend.php change visible='yes' to recommended='yes'
add file to root

i have a few of these top download, freeleech, vip only etc so with jquery a class would do them all so is better, but you can do it this way by adding php files like in this post

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>');
Taken from showcase mod on TTorg credit to original Author

[color=rgb(251, 160, 38)]Place on Index.php[/color]
//===| Start freeleech Torrents |===//

begin_frame(T_("Top FreeLeech"));

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND freeleech='1' ORDER BY torrents.seeders DESC LIMIT 7");

if (mysqli_num_rows($rec) > 0) {

print("<table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>");

while ($row2 = mysqli_fetch_array($rec)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");

$row = mysqli_fetch_array($res);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]' target='_new'><div><img id='cover_img1' class='cover_img' border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width='90px' height='130px'></a></div>

<div style='margin-top:10px; font-size:13px;'>

<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}else{

   $img1 = "<a href=torrents-details.php?id=$row[id]'><img id='cover_img1' class='cover_img' border='0' src=images/no-poster.jpg title=\"$altname | $cat\" width='90px' height='130px'></a>

<div style='margin-top:10px; font-size:13px;'>

<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>

</div>";

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");
}
   end_frame();



//===| End freeleech Torrents |===//

//===| Start Top downloaded Torrents |===//

   begin_frame(T_("Top Downloaded"));

$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' ORDER BY RAND() LIMIT 7");

if (mysqli_num_rows($rec) > 0) {

print("<table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>");

while ($row2 = mysqli_fetch_array($rec)) {

$tor = $row2['0'];

$altname = $row2['1'];

$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";

$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");

$row = mysqli_fetch_array($res);

$res1 = mysqli_query("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.owner, torrents.seeders, torrents.leechers, categories.name AS cat_name, users.username AS user FROM torrents LEFT JOIN users ON torrents.owner = users.id LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");      
$row2 = mysqli_fetch_array($res1);

$cat = $row['cat_name'];

$img1 = "<a href=torrents-details.php?id=$row[id]' target='_new'><div><img id='cover_img1' class='cover_img' border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width='90px' height='130px'></a></div>

<div style='margin-top:10px; font-size:13px;'>

<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>

</div>";

if ($row["image1"] != ""){

print("<td align=center>".$img1."</td>");

}else{

   $img1 = "<a href=torrents-details.php?id=$row[id]'><img id='cover_img1' class='cover_img' border='0' src=images/no-poster.jpg title=\"$altname | $cat\" width='90px' height='130px'></a>

<div style='margin-top:10px; font-size:13px;'>

<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |

<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |

<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>

</div>";

print("<td align=center>".$img1."</td>");

}

}

print("</tr></table>");
}
   end_frame();



//===| End top downloaded Torrents |===//


[color=rgb(251, 160, 38)]Add no-poster.jpg to images[/color]

you can try just this and add the shoutboxedit.php
find

    if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){
       echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutbox.php?del=".$row['msgid']."' style='font-size: 8px'>[D]</a></div>";
   }

   echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));


replace with


   if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['username'] == $row['user']) ){

       echo "<div align='right' style='float: right'><a href='".$site_config['SITEURL']."/shoutedit.php?action=edit&msgid=".$row['msgid']."' style='font-size: 8px'>[E]</a>&nbsp;&nbsp;<a href='".$site_config['SITEURL']."/shoutedit.php?action=delete&msgid=".$row['msgid']."' style='font-size: 8px'>[D]</a><div>";
   }

echo "<div align='right' style='float: right'></div>";

   echo    '</td><td style="font-size: 12px; padding-left: 5px"><a href="'.$site_config['SITEURL'].'/account-details.php?id='.$row['userid'].'" target="_parent"><b>'.$row['user'].':</b></a>&nbsp;&nbsp;'.nl2br(format_comment($row['message']));

Say Thanks & Force — 2019-04-17 13:41:30 in v3 Mods Completed
had a quick go but cant seem to change it, i tried all 3 instances of username and no luck
it has a limit of 7 so if its less than 7 they will be spread out more
Credit to original author, updated and ive added to torrent-details so members can see older torrents that have been recommended

[color=rgb(251, 160, 38)]You need to recommend 1 torrent

SQL[/color]
ALTER TABLE torrents ADD `recommended` enum('yes','no') NOT NULL default 'no';


[color=rgb(251, 160, 38)]Index.php[/color]
//===| Start Recommended Torrents |===//
   begin_frame(T_("recommended"));
$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY RAND() LIMIT 7");
if (mysqli_num_rows($rec) > 0) {
print("<table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($rec)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<a href=torrents-details.php?id=$row[id]' target='_new'><div><img id='cover_img1' class='cover_img' border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width='90px' height='130px'></a></div>
<div style='margin-top:10px; font-size:13px;'>
<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div>";
if ($row["image1"] != ""){
print("<td align=center>".$img1."</td>");
}else{
   $img1 = "<a href=torrents-details.php?id=$row[id]'><img id='cover_img1' class='cover_img' border='0' src=images/no-poster.jpg title=\"$altname | $cat\" width='90px' height='130px'></a>
<div style='margin-top:10px; font-size:13px;'>
<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div>";
print("<td align=center>".$img1."</td>");
}
}
print("</tr></table>");
}
   end_frame();

//===| End Recommended Torrents |===//


[color=rgb(251, 160, 38)]Torrent-details.php[/color]
find
$res = SQL_Query_exec("SELECT torrents.anon,


add torrents.recommended to line
$res = SQL_Query_exec("SELECT torrents.anon, torrents.recommended,


find
    if ($row["external"]!='yes'){
       print ("<b>".T_("SPEED").": </b>" . $totalspeed . "<br />");
   }


before add
if ($row["external"]!='yes' && $row["recommended"]== yes){
       print ("<b>Top Torrent: </b><font color='orange'>Recommended</font></br>");
   }


[color=rgb(251, 160, 38)]Torrents-edit.php[/color]
find
    if ($CURUSER["edit_torrents"] == "yes")
       $updateset[] = "freeleech = '".$_POST["freeleech"]."'";


add after
     if(get_user_class($CURUSER) > 6){
            if ($_POST["recommended"] == "yes")
                        $updateset[] = "recommended = 'yes'";
                else
            $updateset[] = "recommended = 'no'";
    }    


find
if ($site_config['ANONYMOUSUPLOAD']) {
   echo "<tr><td class='table_col1' align='right'><b>".T_("ANONYMOUS_UPLOAD").": </b></td><td class='table_col2'><input type=\"checkbox\" name=\"anon\"" . (($row["anon"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" />(".T_("ANONYMOUS_UPLOAD_MSG").")<br /></td></tr>";
}


before add
if(get_user_class($CURUSER) > 6){
   echo "<tr><td class='table_col1' align='right'><b>Recommended: </b></td><td class='table_col2'><input type='checkbox' name='recommended'" . (($row["recommended"] == "yes") ? " checked='checked'" : "" ) . " value='yes' /> Check the box to recommend the torrent.";
}


Add images to image folder

forgot no-poster image put this in images also
updated the code above hopefully should show no errors now
Is this the 2.08 mod [url='http://www.torrenttrader.xyz/index.php?threads/recommended-torrents-for-2-08.4288/#post-30400']https://www.torrenttrader.xyz/index.php?threads/recommended-torrents-for-2-08.4288/#post-30400[/url]
if so it should work looking at the code it just needs 1 change I'll have a go at testing it when I get some free time, I might use it for vip only torrents

change the index code to

//===| Start Recommended Torrents |===//
   begin_frame(T_("reco"));
$rec = SQL_Query_exec("SELECT id, name, added, image1, seeders, leechers, times_completed FROM torrents WHERE banned ='no' AND visible='yes' AND recommended='yes' ORDER BY RAND() LIMIT 7");
if (mysqli_num_rows($rec) > 0) {
print("<table align=center cellpadding=3 cellspacing=3 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($rec)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.added, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<a href=torrents-details.php?id=$row[id]' target='_new'><div><img id='cover_img1' class='cover_img' border='0' src='uploads/images/$row[image1]' title=\"$altname | $cat\" width='90px' height='130px'></a></div>
<div style='margin-top:10px; font-size:13px;'>
<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div>";
if ($row["image1"] != ""){
print("<td align=center>".$img1."</td>");
}else{
   $img1 = "<a href=torrents-details.php?id=$row[id]'><img id='cover_img1' class='cover_img' border='0' src=images/no-poster.jpg title=\"$altname | $cat\" width='90px' height='130px'></a>
<div style='margin-top:10px; font-size:13px;'>
<img src=images/check.png height='14' title='Completed' border=0><font color=#0080FF> <b>".$row['times_completed']."</b></font> |
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div>";
print("<td align=center>".$img1."</td>");
}
}
print("</tr></table>");
   end_frame();
}
//===| End Recommended Torrents |===//
Seed Bonus [TTv3] — 2019-04-08 15:37:10 in v3 Mods Completed
the full line should look like this m8
    print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />" . T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio<br>Seedbonus : <b><a href=mybonus.php>".$bonus."</a></b>");
Ive updated the links in header.php so now you can keep the default. I was looking at bootstrap which is a frame work for @media css. Instead of using bootstrap i wanted to have a go at the css. It should be possible for any theme i only edited 3 files (so far) header.php, footer.php & theme css

heres the css i might not use them all but going forward it might become useful, if you look at the first two you see its show or hide with display none. You also notice the different screen size. Now we have media querys we can play with the php files (html in php)
@media only screen and (min-width: 430px) {
 .myBlock-show {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 .myBlock-hide {
     display: none;
     vertical-align: top;
     width: 170px;
 }
}

@media only screen and (min-width: 430px) {
 td.myBlock-show {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 td.myBlock-hide {
     display: none;
     vertical-align: top;
     width: 170px;
 }
}

@media only screen and (min-width: 430px) {
 .myBlock-show.td {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 .myBlock-hide.td {
     display: none;
     vertical-align: top;
     width: 170px;
 }
}


@media only screen and (min-width: 430px) {
 .myBlock-show {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 .myBlock-hide {
     display: none;
     vertical-align: top;
     width: 170px;
 }
}

@media only screen and (min-width: 430px) {
 td myBlock-show {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 td myBlock-hide {
     display: none;
     vertical-align: top;
     width: 170px;
 }
}

@media only screen and (min-width: 430px) {
 .myBlock-show td {
      display: none;
      width: 50%;
      vertical-align: top;
 }
}

@media only screen and (max-width: 430px) {
 .myBlock-hide td {
     display: none;
     vertical-align: top;
     width: 170px;
 }


Now for the header i only add a new class to the table    <td class="myBlock-hide" valign="top" > this tells the side blocks to hide if screen is below a certain size
   <table cellspacing="0" cellpadding="7" width="100%" border="0">
    <tr>
         <?php if ($site_config["LEFTNAV"]){?>
         <!-- START LEFT COLUM -->
         <td class="myBlock-hide" valign="top" >
         <?php leftblocks();?>
         </td>
         <!-- END LEFT COLUM -->
         <?php } //LEFTNAV ON/OFF END?>
         <!-- START MAIN COLUM -->
         <td width="100%" valign="top">


You also need to add a metatag at the top
<meta name="viewport" content="width=device-width">


Lastly the footer we need to tell the right side blocks to hide as well

<?php function_exists('T_') or die;

           if ($site_config["MIDDLENAV"]){
               middleblocks();
           } //MIDDLENAV ON/OFF END
           ?>
         </td>
         <!-- END MAIN COLUM -->
         <?php if ($site_config["RIGHTNAV"]){ ?>
         <!-- START RIGHT COLUMN -->
          <td class="myBlock-hide" valign="top" >
   
         <?php rightblocks(); ?>
         </td>
         <!-- END RIGHT COLUMN -->
         <?php } ?>
       </tr>
   </table>
 </div>


I then put in footer the response code which is basically the header and footer code combined without the middle blocks but this is myBlock-show so on mobiles this code will show if you look at the css you will see its set to 50%
  <!-- Start response -->
 <div id='main'>
   <table cellspacing="0" cellpadding="7" width="100%" border="0">
    <tr>
         <?php if ($site_config["LEFTNAV"]){?>
          <td class="myBlock-show" valign="top" >
         <?php leftblocks();?>
         </td>
         <?php } ?>
         <?php if ($site_config["RIGHTNAV"]){ ?>
         <td class="myBlock-show" valign="top">    
         <?php rightblocks(); ?>
         </td>
         <?php } ?>
       </tr>
   </table>
 </div>
<!-- End response -->


The only issue i had was most of the style is in pixels (wrapper, header etc) it should be in % so it adjusts also you may need css to 2 off the blocks 1 on either side just so the size of both are the same.

Now the layout is responsive we can get creative and edit other stuff by adding the class like
<div class="myBlock-hide">
<td class="myBlock-hide">
Anything wrapped will either show or hide

You can also just add a new line on your css file like
body {
 background-color: lightblue;
}

@media screen and (min-width: 400px) {
 body {
   background-color: lightgreen;
 }
}
This is a copy of the default theme by nikkbu ive just made a few alterations.

Ive made the layout mobile friendly with the side blocks showing on the bottom on smaller screens. The pages (forum etc) needs more work for mobiles

this changes the user name colour so wont show up on the groups in staff panel, ill update first post to add where in footer and for auto promote uploaders
If you don't like dont use it retard you need banning you don't contribute, spam every topic it's become annoying and you can't spell for shit, there's something really wrong with you
Just replace it m8 in functions & config
The code is perfect the theme is the basic one I was just testing on it,  there is 1 addition to the theme.css and then a few edits to block.php theys lots to do though, if your such a great coder why don't you post your work I have seen nothing that is yours and your TT was very poor maybe your not as good as you claim

I suppose you already have a mobile friendly TT lol this is my own code
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