"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
$privacylevel = T_($_SESSION["privacy"]); $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); print("!  // 
<img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>
<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>) 
// Bonus points: <a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a> 
// Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00> $_SESSION[donated]</font></a> ");
print("!  // 
<img src='$config[SITEURL]/images/seed.gif' border='none' height='20' width='20' alt='Downloaded' title='Downloaded'><font color='#FFCC66'><b>$userdownloaded</b></font>
<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>)
// Used Slots: $slots</a> // Bonus points: <a href='" . $config["SITEURL"] . "/bonus' title='Seed Bonus Points'><font color=#00cc00>$_SESSION[seedbonus]</font></a>
// Donated: <a href='" . $config["SITEURL"] . "/donate' title='Donated Amount'><font color=#ffff00> $_SESSION[donated]</font></a> ");
@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%;
}
} "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) {?>
"m-jay, post: 69285, member: 20288":
Going to go though mobile view today check all pages on small devices
"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
"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
"m-jay, post: 69270, member: 20288":
Php should not have ?> at the end to close files it's bad practice
"STorrents2020, post: 69260, member: 20382":
I'll tackle this on a night. It looks hellish lol
"STorrents2020, post: 69252, member: 20382":
Thanks [USER=60]@Propaganda[/USER] that is all I need to know ?
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 "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);
"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
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)
);