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

Far from finished this bootstrap thing. I did realize that TT is far from bootstrap compliant.
Will do step by step, and welcome any any suggestion.
Note that I am not as skilled as the previous bootstrap skin developer, but slowly will make my way.
Note:

- The "Hi Propaganda ...." text does not overlap the Logo anymore!
- The "Hi Propaganda ...." appears now below the logo-menu line, and this looks pretty okie!!
- Note the menu is now in the familiar "Hamburger icon"

[ATTACH type="full"]5507[/ATTACH]
- Here is shows below the menu expanded!

[ATTACH type="full"]5508[/ATTACH]
Hello M-Jay,

I have been working on the menu a bit to make it fit better to the screen when browsing on mobile devices. Would like to provide some suggestions to make this development more bootstrap compliant.
You will notice it does not show the menu correct on your phone in the default theme. The pages will run out on the right because the menu does not conform to the smaller screen size.

With the provided changes, it does. The menu is fully bootstrap compliant. It is compliant with bootstrap 4.3.1. The overrides are inside the bootstrap.css file.

Here are the changes >>

Create a folder called responsive inside the views folder:

\views\themes\responsive
\views\themes\responsive-drop   << [color=rgb(26, 188, 156)]This one for the dropdown menu version[/color]

File changes are in >>

bootstrap.css (I will provide full changed in theme file)
header.php (I will provide full changed in theme file)
theme.css (I will provide full changed in theme file)
topnavbar.php (I will provide full changed in theme file)

I will explain some of the changes in the php files only, you can compare with the default theme.

[color=rgb(97, 189, 109)]header.php[/color] changes >>

Find:      [color=rgb(250, 197, 28)]<!-- Theme css -->[/color]  Just below this change:
    <link rel="shortcut icon" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/default/images/favicon.ico" />
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/default/bootstrap.css" />
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/default/theme.css" />

To:
    <link rel="shortcut icon" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/responsive/images/favicon.ico" />
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/responsive/bootstrap.css" />
   <link rel="stylesheet" type="text/css" href="<?php echo $site_config["SITEURL"]; ?>/views/themes/responsive/theme.css" />


[color=rgb(97, 189, 109)]topnavbar.php[/color] changes >>

Find:          [color=rgb(250, 197, 28)]<!-- Start Infobar -->[/color]   Above it, which should be the first 4 lines in the file, change:

    <nav class="navbar navbar-expand-lg navbar-dark primary-color">
       <a class="navbar-brand" href='<?php echo $site_config["SITEURL"]; ?>/index.php' title='Home' target='_self'><img
               src='<?php echo $site_config["SITEURL"]; ?>/views/themes/default/images/logo.gif' alt='logo' width='212'
               height='46' /></a>

To:
    <nav class="navbar navbar-expand-lg navbar-dark primary-color">


The following change is made to make the text shorter, and thus fitting better on small screens. It also requires an update to the language file.

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

Change to:
print (T_("HI")." ".class_user($CURUSER["username"])."");


The following will actually change the menu layout >>

Find:        [color=rgb(250, 197, 28)]<?php if ($CURUSER){ ?>[/color]

Below it, replace:
    <div class='navigation'>
       <div class='menu'>
           <ul id='nav-one' class='dropmenu'>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/index.php"><?php echo T_("HOME");?></a></li>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/forums"><?php echo T_("FORUMS");?></a></li>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/torrentsupload"><?php echo T_("UPLOAD_TORRENT");?></a></li>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/torrents/browse"><?php echo T_("BROWSE_TORRENTS");?></a></li>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/torrents/today"><?php echo T_("TODAYS_TORRENTS");?></a></li>
               <li><a href="<?php echo $site_config["SITEURL"]; ?>/torrentssearch"><?php echo T_("SEARCH_TORRENTS");?></a></li>
           </ul>
       </div>
   </div>

with:
                <div class="navigation">
         <nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light"> <a class="navbar-brand" href='<?php echo $site_config["SITEURL"]; ?>/index.php' title='Home' target='_self'><img src='<?php echo $site_config["SITEURL"]; ?>/views/themes/u2torrents/images/logo.gif' alt='logo' width='212' height='46' /></a>
           <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent1" aria-controls="navbarSupportedContent1" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button>
           <div class="collapse navbar-collapse" id="navbarSupportedContent1">
             <ul class="navbar-nav mr-auto">
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/index.php"><?php echo T_("HOME");?><span class="sr-only">(current)</span></a> </li>
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/forums"><?php echo T_("FORUMS");?></a> </li>
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/torrentsupload"><?php echo T_("UPLOAD_TORRENT");?></a> </li>
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/torrents/browse"><?php echo T_("BROWSE_TORRENTS");?></a> </li>
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/torrentssearch"><?php echo T_("SEARCH_TORRENTS");?></a> </li>
               <li class="nav-item active"> <a class="nav-link" href="<?php echo $site_config["SITEURL"]; ?>/torrents/today"><?php echo T_("TODAYS_TORRENTS");?></a> </li>
             </ul>
           </div>
         </nav>
       </div>


languages/english.php changes >>

Look for:
$LANG["LOGGED_IN_AS"] = "You are logged in as";

Add below:
$LANG["HI"] = "Hi";


That's it, which is just to show the changes that are required to have a responsive menu.
You can tweak to your liking. I am still tweaking myself :-)

I will attach a complete theme for a normal responsive menu, as well as a menu with a dropdown included.

[ATTACH type="full"]5500[/ATTACH]
[ATTACH type="full"]5501[/ATTACH]
MVC Update (PDO) — 2020-04-17 17:52:38 in M-BiTsy Support
I downloaded the master code. I copied the files. I inserted the SQL code. Updated the config.php to my setup. and started up the site.

And it simply works...and looks the same as default TT.

[USER=20288]@m-jay[/USER] compliments!! I am sure there are lots of things you wanna change and update, but amazing still. With so many changes in the background.
Has the Git repository been moved or taken offline?

[URL unfurl="true"]https://github.com/M-jay84/Torrent-Trader-2020-PDO[/url]

Does not show anything anymore.
Manual Add User — 2020-03-13 18:34:15 in v3 Mods Completed
This one give me a 404 page can not be found error for the standard version. Has it been tested?
Thanks for the contribution, but...

May I ask this post to be moved to the Mods under development section.

Thanks.
SuperTag [TTv3] — 2020-02-22 14:56:55 in v3 Mods in Progress
"STorrents2020, post: 67793, member: 20382":

This is super bloated for a basic function. Very little code added to torrents-edit.php, torrents-upload.php, a sql query for the new table, and even code to show on torrents-details.php. I’ll post it later tonight.

Good work though!


Would love to see your version of this tag mod!
I think it should also be mentioned, that you have to check each file that might be affected by the change in user class.
For example = where owner was class 7, and options that were restricted ONLY to the owner - will not be visible to all the mods/super mods and admins as well ;-)
Just a thought.

User class changes >>

[TABLE]
[TR]
[TH]OLD CLASSES[/TH]
[TH]NEW CLASSES[/TH]
[/TR]
[TR]
[TD][/TD]

[TD]case 11: // Owner[/TD]
[/TR]
[TR]
[TD]case 7: // Administrator[/TD]
[TD]case 10: // Admin[/TD]
[/TR]
[TR]
[TD]case 6: // Super Moderator[/TD]
[TD]case 9:  // Super Mod[/TD]
[/TR]
[TR]
[TD]case 5: // Moderator[/TD]
[TD]case 8:  // Moderator[/TD]
[/TR]
[TR]
[TD]case 3: // VIP[/TD]
[TD]case 7:  // VIP[/TD]
[/TR]
[TR]
[TD]case 4: // Uploader[/TD]
[TD]case 6:  // Uploader[/TD]
[/TR]
[TR]
[TD][/TD]

[TD]case 5: // Addict (auto set)[/TD]
[/TR]
[TR]
[TD][/TD]

[TD]case 4: // Pro User    (auto set)[/TD]
[/TR]
[TR]
[TD]case 2: // Power User[/TD]
[TD]case 3:  // Power User[/TD]
[/TR]
[TR]
[TD]case 1: // Member[/TD]
[TD]case 2:  // Member[/TD]
[/TR]
[TR]
[TD][/TD]

[TD]case 1: // Leecher (auto set when ration below 0.9 (or whatever your setting))[/TD]
[/TR]
[/TABLE]

Here are some of the changes I have made, perhaps they are useful to you!

Find in torrents-upload.php


if ($site_config["UPLOADERSONLY"] && $CURUSER["class"] < 4)


and change to >>


if ($site_config["UPLOADERSONLY"] && $CURUSER["class"] < 6)


Find next:

if(get_user_class($CURUSER) > 4){


and change to >>


if(get_user_class($CURUSER) > 6){


Find in torrents-edit.php


if(get_user_class() >= 5)


Should be found 2 times, and change to >>


if(get_user_class() >= 8)


Find next:


if(get_user_class($CURUSER) > 6)


and change to >>


if(get_user_class($CURUSER) > 9)


Find in topten.php file (additional mod)


if (get_user_class() < 1)


and change to >>


if (get_user_class() < 3)


Find next:


$pu = get_user_class($CURUSER) >= 3;


and change to >>


$pu = get_user_class($CURUSER) >= 7;
Just a small one >>

UPDATE users SET class = '2' WHERE class = '1'
UPDATE users SET class = '11' WHERE class = '7'


should be

UPDATE users SET class = '2' WHERE class = '1';
UPDATE users SET class = '11' WHERE class = '7';
"m-jay, post: 66846, member: 20288":

[color=rgb(251, 160, 38)]invite.php find[/color]
dbconn();


add below
// email encrypt
$crypt = new Cryptage();
$clef = $site_config["clef"];


find
    $maildomain = (substr($email, strpos($email, "@") + 1));            /*$maildomain = (substr($email, strpos($email, "@") + 1));
   $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$email'")));


replace with
    // encrypt email
   $maildomain = (substr($email, strpos($email, "@") + 1));
   $mail = $crypt->b64encode($email, $clef);
   $maildomain = $crypt->b64encode($maildomain, $clef);
   $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from email_bans where mail_domain='$mail'")));


find x 2
implode(",", array_map("sqlesc", array($username, $secret, $email,


replace with
implode(",", array_map("sqlesc", array($username, $secret, $mail,



How would this step integrate with the "Invite Code System V3" mod??
My current invite.php file code from this mod looks like the attached file.
"MicroMonkey, post: 67669, member: 311":

in your theme.css, play with the height number. 300 seems to look nice if you set your index.php to 400
.shoutbox_contain {
   border: 0;
   height: 150;
   width: 100%;
   overflow: auto;
   align: middle;
}



Excellent !!
Client Ban Mod — 2019-12-13 16:32:27 in v3 Mods Requests
I would love to see this mod converted for TTv3 >>

[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/client-ban-mod.2688/[/url]
How do I make the shoutbox fill the entire space, when I set the box to be 400 pixel high?

[ATTACH type="full" alt="5305"]5305[/ATTACH]
How do I make the shoutbox fill the entire space, when I set the box to be 400 pixel high?

[ATTACH type="full" alt="5304"]5304[/ATTACH]
Ahhh...maybe I did not read correctly
The only change is in the config.php file....right?

Or should this still be added to the functions.php file?

// DEBUG Error Report
if ($site_config['SETDEBUG']){
const TT_ERRORS_FILE = 'errors/unknown-errors.txt';
require_once(BACKEND."/errors-helper.php");
set_error_handler('tt_error_handler');
}
Maybe it is, maybe it isn't ;-)

Attaching the functions.php file, no funny things in there...
Add this to your English language file >>

// INACTIVE USERS

$LANG["NUMBER0FDAYS"] = "Number of Days";
$LANG["JOINDATE"] = "Join Date";
$LANG["SENDMAIL"] = "Send an Email";
$LANG["DELETEUSERS"] = "Delete User";
$LANG["DISABLED_ACCOUNTS"] = "Disabled Accounts";
$LANG["LASTMAILSENTBY"] = "Last email has been sent by";
$LANG["ON"] = "On";
$LANG["WASSENT"] = "Was sent";
$LANG["NOACOUNTINATIVE"] = "No Inactive Accounts";
$LANG["USURSINACTIVE"] = "Inactive Users";
$LANG["DAYS"] = "Days";
Adding this as described, give me a blank page.
Attaching my current admincp.php file
"shadows, post: 67586, member: 20311":

try with
if ($site_config['SETDEBUG'] === true) {
...
}


No luck, white page again.
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