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
Observations for M-Jay
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2021-05-19 17:23:29
Yes I put the blocks and frames seperete.
For the login page the html is in app/views/account/login.php all html for pages will be in views.

For the footer/header/navbar these are in app/views/inc/themename

The js/css files go in public_html/assets/themename I have 2 themes for example
Last edited by M-jay warn on 2021-05-19 17:30:44
2021-05-21 06:55:52
In the user profile:

Torrents Posted: 0
Comments Posted: 0
Forum Posts: 0

The counter could be linkable to a page which actually shows their posted torrents, comments and Forum posts.
Another thing which can be added as counter is Shoutbox posts.
If It Ain't Dutch, It Ain't Much!!
2021-05-21 07:07:10
User Admin options >>
- Option to flush a members peers in their "admin" page of the user profile
- Show user IP history in the "admin" page of the user profile.
- Comment ban in the "admin" page of the user profile.
- Park/Un-Park an account in the "admin" page of the user profile.
- Delete an account (with mandatory reason) in the "admin" page of the user profile.

User Edit options >>
- Account Parked: Yes No
 You can park your account to prevent it from being deleted because of inactivity if you go away on for example a vacation.
 When the account has been parked limits are put on the account, for example you cannot use the tracker and browse some of the pages.
- Torrent Notification: The system will email you when a torrent is uploaded in the selected categories (uncheck all for no emails).
 Below it a list of all the categories (with on/of)
- Option for member to change his Email Address: Required is to respond to confirmation email to make the actual change.

Do not know if the "bookmark" mod has been implemented already, if yes - for the member to show his/hers bookmarked torrents


If It Ain't Dutch, It Ain't Much!!
Last edited by Propaganda on 2021-05-21 07:31:23
2021-05-21 15:52:05
If instead of Torrent Language I want to create a table for Torrent Format (like Flac, mp3 etc) how to best go about?

Creating a table I can use the torrentlang as example.
I would also have to alter the Torrents table as well.

Would there be a lot of files to be edited? And if so which ones?
It would not only be the selection in the torrent upload file, but elsewhere the format should also be made visible...

If It Ain't Dutch, It Ain't Much!!
2021-05-21 18:00:57
On the login page:

<tr><td align="center"><input type="checkbox" name="rememberme" value="rememberme" />&nbsp;Remember Me</td></tr>

The remember me option, no longer needed?
If It Ain't Dutch, It Ain't Much!!
2021-05-21 18:05:09
Hope this topic is still useful!

https://torrenttrader.uk/topic?topicid=10061

Do note (as part of the code update here (maybe it is another BUG), the links all point to the same topic!!

BUT >> You look at the source...the links are pointing to different (good) topics!!
If It Ain't Dutch, It Ain't Much!!
2021-05-21 21:34:24
Quote:
Torrents Posted: 0
Comments Posted: 0
Forum Posts: 0


Added this ready for testing seems to be working. i didnt do shoutbox its best of clearing the shoutbox every month

https://github.com/M-jay84/Torrent-Trader-MVC-PDO/commit/1ae70278835f9d24e04017e0ccf22206f76e708c

Quote:
The remember me option, no longer needed?


no not needed anymore i moved away from session login - cookies to login then everything else is sessions

ill make my way though other suggestion this weekend
2021-05-22 14:00:36
Hi M-Jay,

Installed your PDO version on my test tracker and try to "mass import torrents" on that but it coming error message and torrents can't uploaded properly




Uncaught Exception: 2021-05-22 13:29:08 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-22 13:29:26 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-22 13:49:53 - Decode Input is not valid String. in file /home/testpage/app/libraries/Bencode.php on line 33

Call Stack

[0] File: /home/testpage/app/libraries/Parse.php Line: 33
Function: Bencode::decode
Call parameters
Param[0]: Passed value: false

[1] File: /home/testpage/app/controllers/Import.php Line: 64
Function: Parse->torr
Call parameters
Param[0]: Passed value: '../data/uploads/Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent'

[2] File: /home/testpage/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/testpage/public_html/index.php Line: 4
Function: Core->__construct
Call parameters



[img width=720 height=400]https://i.postimg.cc/pLNrMJFG/Screenshot-3.png[/img]
[img width=720 height=400]https://i.postimg.cc/t4hTqndX/Screenshot-4.png[/img]

in case of individual upload of one of the torrent, everything is OK

in the case of "Update Stats" none of the current seeders / leechers indicator is "zeero"

Also one small request, neither on this nor on the forum I installed the script I can't see the attached images in the original size they are all in mini size and I can't identify the problems




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2021-05-22 14:02:54
2021-05-23 06:08:19
New request > Option to stop (or limit) an individual member to make torrent reseed request. This to prevent abusing this option...as it sends PM to all members who have previously downloaded those torrents.
If It Ain't Dutch, It Ain't Much!!
Last edited by Propaganda on 2021-05-23 07:36:04
2021-05-23 11:26:49
try these edits for import
https://github.com/M-jay84/Torrent-Trader-MVC-PDO/commit/df2f39c0f7720fe88aff8b9cdafed1e91b99286a

and also in app/controller/import under
        $this->valid = new Validation();


add
        $this->logsModel = $this->model('Logs');
Last edited by M-jay warn on 2021-05-23 16:51:31
2021-05-24 08:03:58
import.php now working I believe. No more site crashes, and can import per category and language.
If It Ain't Dutch, It Ain't Much!!
2021-05-24 19:45:59
It's stil same problem for me:







Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'UPDATE `users` SET `stylesheet` = darktheme WHERE stylesheet NOT IN (SELECT id FROM stylesheets)'

[1] File: /home/test-page/app/controllers/admin/Admintheme.php Line: 90
Function: DB::run
Call parameters
Param[0]: Passed value: 'UPDATE `users` SET `stylesheet` = darktheme WHERE stylesheet NOT IN (SELECT id FROM stylesheets)'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Admintheme->delete
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:38:26 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:38:26', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:38:26')'

[1] File: /home/test-page/app/controllers/Import.php Line: 102
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:38:26', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:38:26')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:40:36 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:36', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:36')'

[1] File: /home/test-page/app/controllers/Import.php Line: 103
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:36', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:36')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters
Uncaught Exception: 2021-05-24 19:40:57 - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash' in file /home/test-page/app/libraries/DB.php on line 37

Call Stack

[0] File: /home/test-page/app/libraries/DB.php Line: 37
Function: PDO->query
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:57', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:57')'

[1] File: /home/test-page/app/controllers/Import.php Line: 103
Function: DB::run
Call parameters
Param[0]: Passed value: 'INSERT INTO torrents (filename, owner, name, descr, category, added, info_hash, size, numfiles, save_as, announce, external, torrentlang, anon, last_action) VALUES ('Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].mp4', 'No description given.', '42', '2021-05-24 19:40:57', '01c489e0d72604e2432f20f207239cb456f3d5bc', '784443290', '1', 'Porodica.2021.HDTV.1080p.EP05.x264.[ExYuSubs].torrent', 'udp://tracker.opentrackr.org:1337/announce', 'yes', '1','no', '2021-05-24 19:40:57')'

[2] File: /home/test-page/app/libraries/Core.php Line: 51
Function: Import->index
Call parameters

[3] File: /home/test-page/public_html/index.php Line: 4
Function: Core->__construct
Call parameters



PS
Live sever


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2021-05-24 19:47:25
2021-05-24 19:51:21
that looks like its already been tried
Integrity constraint violation: 1062 Duplicate entry '01c489e0d72604e2432f' for key 'info_hash'


try fresh torrent see if any change
2021-05-26 14:35:12
github updated https://github.com/M-jay84/Torrent-Trader-MVC-PDO

for current set-up it's recommended to follow these steps.

1 ) save copy of own theme from app/views/inc/themename
2) then delete the full views folder and full controllers folder
3) download new source from github
4) delete from download public_html/htaccess and config/config.php
5) transfer download replacing all files

Started fine tuning admin so placed some things like blocks edit, faq manage into the admin section and Client controller for example has been changed to Adminclient controller

The login view has now been changed to app/view/user/login.php the admin view folder was getting a little big lol but i cant think of anything that would effect any theme edits.

to show how admin/template work in you can try this in app/controller/login.php

find (user page setup)
$this->view('user/login', $data, 'user');


replace with (admin page setup)
$this->view('user/login', $data, 'admin');


or for no page setup (plain template)
$this->view('user/login', $data);
2021-05-26 15:05:49
Thanks M-jay
what about that?
Same torrent file on two different scripts, statistic on first picture is from a old one TT[2.08 - 2.5]
statistic from secound picture is from PDO [last edition you send above]

1.


2.



www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
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