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

"m-jay, post: 69223, member: 20288":

all these are added, really need to work on pdo helper to add all details on these and the config settings (how to)
invitetree
ip bans, history stuff
shoutbox clear, new members, new users, staff
force thanks
seedbonus
sticky torrents
top10 (in navigation block)
torrent clients
friends
snatchlist
magnets
shoutbox bans
teams
censor
youtube in details


How does the PDO helper work?
Can I help on some of the items to write some help text?
Added the slots item from the Login block to the topnavbar file:

Around line 17, under:

    $privacylevel = T_($_SESSION["privacy"]);


Add the following 3 lines >>

    $countslot = DB::run("SELECT DISTINCT torrent FROM peers WHERE userid =?  AND seeder=?", [$_SESSION['id'], 'yes']);
   $maxslotdownload = $countslot->rowCount();
   $slots = number_format($_SESSION["maxslots"]) . "/" . number_format($maxslotdownload);


Next,

Around line 44, replace this >>

    print("! &nbsp//&nbsp
         <img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>&nbsp;
         <img src='$config[SITEURL]/images/up.gif' border='none' height='20' width='20' alt='Uploaded' title='Uploaded'> <font color='#33CCCC'><b>$useruploaded</b></font>
         <img src='$config[SITEURL]/images/button_online.png' border='none' height='20' width='20' alt='Ratio' title='Ratio'> (<b><font color='#FFF'>$userratio</font></b>)&nbsp
         //&nbsp;Bonus points:&nbsp;<a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a>&nbsp
         //&nbsp;Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00>&nbsp;$_SESSION[donated]</font></a>&nbsp;");


With this, to add the Used Slots >>

    print("! &nbsp//&nbsp
         <img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>&nbsp;
         <img src='$config[SITEURL]/images/up.gif' border='none' height='20' width='20' alt='Uploaded' title='Uploaded'> <font color='#33CCCC'><b>$useruploaded</b></font>
         <img src='$config[SITEURL]/images/button_online.png' border='none' height='20' width='20' alt='Ratio' title='Ratio'> (<b><font color='#FFF'>$userratio</font></b>)&nbsp;
         //&nbsp;Used Slots:&nbsp;$slots</a>&nbsp;//&nbsp;Bonus points:&nbsp;<a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a>&nbsp;
         //&nbsp;Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00>&nbsp;$_SESSION[donated]</font></a>&nbsp;");


Note that I also changed a couple of "nbsp" to "nbsp;" at the end of some lines. Do not know if this is required.

[ATTACH type="full" alt="1601655295785.png"]5912[/ATTACH]
[ATTACH type="full" alt="1601655320441.png"]5913[/ATTACH]

Maybe for some of the items, the text can be replaced by an icon to save some space. Attaching a title (label) to those icons should do the trick
I have added the following code to the customstyle.css to control to width of the side/main column, vs the view on mobile.
I was looking for a smaller side column, and thus more space for main center column.

@media (min-width: 768px) {
   .col-sm-8 {
       flex: 0 0 72.667%; /* Center Column width. Note: linked to side (.col-sm-2) width and linked to @media setting */
       max-width: 72.66667%;
   }

   .col-sm-2 {
       flex: 0 0 13.667%;    /* Side Column width. Note: linked to center (.col-sm-8) width and linked to @media setting */
       max-width: 13.66667%;
   }
}
I have copied new code, and cleared my history and cache. These are my first observations.

- managing blocks in the admin section looks better, but ur not able to edit. Clicking the update button moved u back to the frontpage without saving your edit.
- login page has footer. Frontpage and other pages are missing footer. Maybe this is because of the Poll Block...which is now empty.

[ATTACH type="full"]5899[/ATTACH]

- Seed bonus page does not show the profile menu >

[ATTACH type="full" alt="1600577859198.png"]5893[/ATTACH]

[ATTACH type="full" alt="1600577878802.png"]5894[/ATTACH]

- Menu spacing in user profile pages not sufficient >>

[ATTACH type="full" alt="1600577934448.png"]5895[/ATTACH]

- For Members and Power Users, which by default should not be able to upload, the menu item to upload torrents should lead them to the Uploader application mod. https://www.torrenttrader.xyz/index.php?threads/uploader-app.3531/      At this moment it will throw an error page.

- The VIP Option should only be visible for VIP/Mods/Super Mods/Admin. Normal uploader should not have the option.

[ATTACH type="full" alt="1600600188829.png"]5898[/ATTACH]
Thanks [USER=20288]@m-jay[/USER] !

I have cleaned up the suggested mods topic with the mods I am aware you had applied, and keeping links to the latest version in the forum of the suggested mods.

[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?threads/mods-hacks-by-category-for-m-jay.10061/[/url]
Updated the first topic with the completed mods from pre-v2.08, v2.08 and v3.0

All mods have been sorted, and the ones that have been completed have been moved to the bottom of the topic (as far as I could determine)

I will next have a look at the mods/hacks in development (low priority...will do over the next week)
"m-jay, post: 69287, member: 20288":

dont really want to update github until end of week until a good test is carried out but the logo is done, you need to make a new logo i just use f-logo from forum for now for example
    <!-- START NAVIGATION -->
   <nav class="navbar navbar-expand-lg">
       <a class="navbar-brand" href="<?php echo TTURL; ?>/index.php">
           <img class="d-none d-sm-block" src="<?php echo TTURL; ?>/views/themes/<?php echo $_SESSION['stylesheet'] ?: $config['default_theme']; ?>/images/logo.gif"><!-- Image to show on screens from small to extra large -->
           <img class="d-sm-none" src="<?php echo TTURL; ?>/views/themes/<?php echo $_SESSION['stylesheet'] ?: $config['default_theme']; ?>/images/f-logo.gif"><!-- Image to show on extra small screen (mobile portrait) -->
       </a>
     <?php if ($_SESSION['loggedin'] == true) {?>


Checked and working ;-)
"m-jay, post: 69285, member: 20288":

Going to go though mobile view today check all pages on small devices

The only issue I had here is the size of the logo and the visibility of the button of the accordion button.
My current logo would be to big...but I would like to keep the logo when browsing the site on a pc. I was thinking of solution with the @media tag.
The accordion button is there...but not visible (transparent)
"m-jay, post: 69280, member: 20288":

put this on fresh server and a few little bugs got my staff all testing for week so should iron any issues out

You have staff working on this? Haha
"m-jay, post: 69272, member: 20288":

Noticed rss when i tried I micromonkeys the line in footer is wrong should have been <?php echo TTURL; ?>/rss?custom=1 but this will now be wrong too lol
updating rss change link in you theme to  <?php echo TTURL; ?>/rss/custom

Done
"m-jay, post: 69270, member: 20288":

Php should not have ?> at the end to close files it's bad practice

Learned something again ;-)
[USER=20288]@m-jay[/USER] , the config.php file is missing the closing  
?>
Should look much like this >>

[ATTACH type="full"]5848[/ATTACH]
[ATTACH type="full"]5849[/ATTACH]
Snatchlist [TTv3] — 2020-08-31 11:56:31 in v3 Mods Completed
"STorrents2020, post: 69260, member: 20382":

I'll tackle this on a night. It looks hellish lol

This has always been a mod where developers struggled. For sure a challenge!
Snatchlist [TTv3] — 2020-08-31 09:48:36 in v3 Mods Completed
"STorrents2020, post: 69252, member: 20382":

Thanks [USER=60]@Propaganda[/USER] that is all I need to know ?


I think I have to correct myself here, as the mod is a little bit softer in its calculation.
I think in below example, you would have to seed for at least 48hrs, and also reach an upload limit equal to seed target - if either is not met...then it would be counted as HNR.

// Hit & Run mod
$config["hnr_on"] = false; // Not Finished only for testing
$config["hnr_deadline"] = 7 * 86400; // 7 days to hit the seed target   (where to set this seed target? Is this linked to ratio?)
$config["hnr_seedtime"] = 172800; // target is to seed for 48 hours  (Is it either reach seed target...or is it days seeded?)
$config["hnr_warn"] = 5; // 5 hit & runs then warned
$config["hnr_stop_dl"] = 5; // After 5 H & R stop downloading
$config["hnr_ban"] = 50; // After 50 H&R they are banned

If the hnr_deadline is linked to ratio...then the data seeded back would not be zero. It would be below a certain ratio of the size of the torrent you have downloaded.

This hnr mod is linked not only to the snatchlist, but also to the seedbonus mod.
Snatchlist [TTv3] — 2020-08-30 10:08:01 in v3 Mods Completed
hnr = hit and run, meaning snatched and not seeded and data back.
Other Languages — 2020-08-21 18:19:53 in M-BiTsy Support
2.05 ones
when switching getting following error:

Warning: require_once(languages/English.php): failed to open stream: No such file or directory in site/helpers/a_start_function.php on line 67 Call Stack: 0.0001 402520 1. {main}() site/index.php:0 0.0134 1146392 2. Router->__construct() site/index.php:5 0.0140 1172120 3. Home->index() site/core/Router.php:45 0.0140 1172120 4. dbconn() site/controllers/Home.php:9 Fatal error: require_once(): Failed opening required 'languages/English.php' (include_path='.:/usr/share/pear') in site/helpers/a_start_function.php on line 67 Call Stack: 0.0001 402520 1. {main}() site/index.php:0 0.0134 1146392 2. Router->__construct() site/index.php:5 0.0140 1172120 3. Home->index() site/core/Router.php:45 0.0140 1172120 4. dbconn() site/controllers/Home.php:9
"i added your sent theme straight into theme folder and works 100% "

Damn...let me try again!
"m-jay, post: 69139, member: 20288":

if you still have errors let me know and send exception error file and edit core/init at top and ill come on and debug
// Error Reporting
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
// error_reporting(E_ALL);



Loaded ok! :p:D

[ATTACH type="full"]5783[/ATTACH]

I have set the code for error reporting, so you will be able to iron them out as you go.
"m-jay, post: 69131, member: 20288":

github updated  https://github.com/M-jay84/Torrent-Trader-MVC-PDO-OOP

to install edit siteurl & database details in config (config needs replacing its $config now, not $site_config) and transfer all

then run sql to edit style and language

ALTER TABLE users DROP stylesheet;
ALTER TABLE users DROP language;
ALTER TABLE users ADD stylesheet varchar(30) NOT NULL default 'default';
ALTER TABLE users ADD language varchar(30) NOT NULL default 'english';


here is a link to header & navbar edits https://github.com/M-jay84/Torrent-Trader-MVC-PDO-OOP/compare/25-full-sessions...master at bottom of page


I'd make sql backup first
If install does not work will you please try empty the session table, cookies may remember old way


Not wanting to loose any data I went through the last months changes for the database, and created the below sql update.
Looks to have worked ok, added without error.

ALTER TABLE users DROP stylesheet;

ALTER TABLE users DROP language;

ALTER TABLE users ADD stylesheet varchar(30) NOT NULL default 'default';

ALTER TABLE users ADD language varchar(30) NOT NULL default 'english';

ALTER TABLE users ADD shoutboxpos char(3) NOT NULL default 'no';

ALTER TABLE users ADD downloadbanned char(3) NOT NULL default 'no';

ALTER TABLE torrents ADD tube varchar(100) DEFAULT NULL;

ALTER TABLE torrents DROP image1;

ALTER TABLE torrents ADD image1 text default NULL;

ALTER TABLE torrents DROP image2;

ALTER TABLE torrents ADD image2 text default NULL;

DROP TABLE friends;
CREATE TABLE IF NOT EXISTS `friends` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`friendid` int(10) unsigned NOT NULL default '0',
`friend` varchar(6) NOT NULL DEFAULT 'maybe',
PRIMARY KEY (`id`),
UNIQUE KEY `userfriend` (`userid`,`friendid`)
) ENGINE=MyISAM;

DROP TABLE iplog;
CREATE TABLE `iplog` (
 `id` int(10) UNSIGNED NOT NULL,
 `ip` varchar(15) NOT NULL DEFAULT '',
 `userid` int(10) UNSIGNED NOT NULL DEFAULT '0',
 `added` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `lastused` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 `timesused` int(10) NOT NULL DEFAULT '1'
) ENGINE=MyISAM;

DROP TABLE thanks;
CREATE TABLE `thanks` (
 `id` int(10) unsigned NOT NULL auto_increment,
 `user` int(10) unsigned NOT NULL default '0',
 `thanked` int(10) unsigned NOT NULL default '0',
 `added` datetime NOT NULL default '0000-00-00 00:00:00',
 `type` text NOT NULL,
 PRIMARY KEY  (`id`),
 KEY `user` (`user`),
 KEY `thanked` (`thanked`)
) ENGINE=MyISAM;

DROP TABLE staffmessages;
CREATE TABLE `staffmessages` (
 `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
 `sender` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `added` datetime DEFAULT NULL,
 `msg` text DEFAULT NULL,
 `subject` varchar(100) NOT NULL DEFAULT '',
 `answeredby` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `answered` tinyint(1) NOT NULL DEFAULT 0,
 `answer` text DEFAULT NULL,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM;

DROP TABLE agents;
CREATE TABLE `agents` (
 `agent_id` int(10) unsigned NOT NULL auto_increment,
 `agent_name` varchar(255) NOT NULL DEFAULT '',
 `hits` int(10) UNSIGNED NOT NULL DEFAULT 0,
 `ins_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
 PRIMARY KEY (`agent_id`),
 UNIQUE KEY `agent_name` (`agent_name`) USING HASH
) ENGINE=MyISAM;

DROP TABLE sessions;
create table sessions(
 id serial,
 sess_id text not null,
 _access integer,
 data text,
 primary key (id)
);
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