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

Still fine tuning before updating but here is what mine looks like

https://imgur.com/1njZZBF
sql invite — 2021-08-07 18:34:41 in v3 Support
be mindful that will change all invites to 2

so to change members with no invites
UPDATE `users` SET `invites` = '2' WHERE `invites` = `0`;

You can change invite column to default 2 so any new member starts with 2
sql invite — 2021-08-07 15:50:46 in v3 Support
How would you like it to operate

As one off sql or every month with max number or on sign up etc

Luckily invites should be in $CURUSER

Bug Tracker — 2021-08-07 09:01:51 in M-BiTsy Support
Pm sent mate
Just done this on my copy and there's examples in the navbar ill be posting later here and github.

Just doing final checks due to updating to bootstrap 5  :thumb I'll check from icons out  :cool
Search Query — 2021-08-05 17:21:11 in Support & Suggestions
I have been playing with search querys its one of the more out dated pieces of code in TT, the biggest pain is the relevance of the results which took some attempts lol so here is a example im working on at the minute which you maybe be able to improve or use

Ill update when im fully happy and when its live here but the results should work for testing your forum tables will be pretty much the same

what it returns
matched word in title (eg snatch) then
word in title (eg snatched) then
word in post (eg this is snatch posted by ???) then
word inside post somewhere  (eg this is snatched posted by ???)

i have no condition for no key on this so be sure to add to url eg url/????/search=test or = url/????/search=test+snatch

         $keywords = $_GET['keywords'];
       if (!$keywords == '') {
           $keys = explode(" ", $keywords);
           foreach ($keys as $k) {
               $searcha[] = " forum_topics.subject LIKE '%$k%' ";
               $searchb[] = " forum_posts.body LIKE '%$k%' ";
               $searchc[] = " forum_topics.subject LIKE '%$k%' ";
               $searchd[] = " forum_posts.body LIKE '%$k%' ";
           }
           $whereasearch = '(' . implode(' OR ', $searcha) . ')';
           $wherebsearch = '(' . implode(' OR ', $searchb) . ')';
           $wherecsearch = implode(' OR ', $searchc);
           $wheredsearch = implode(' OR ', $searchd);
           $wherea = $whereasearch;
           $whereb = $wherebsearch;
           $wherec = $wherecsearch;
           $whered = $wheredsearch;
       }

       $test = DB::run("SELECT *, ( $wherea + $whereb ) as count_words
       FROM forum_posts
       JOIN forum_topics
       ON forum_posts.topicid=forum_topics.id
       WHERE ($wherec OR $whered)
       ORDER BY count_words DESC")->fetchAll();
/*
var_dump($wherea); echo '<br>';
var_dump($whereb); echo '<br>';
var_dump($wherec); echo '<br>';
var_dump($whered); echo '<br>';
*/
foreach ($test as $row) {
        var_dump($row); echo '<br>';
}

die();


Clean Up Class — 2021-08-05 04:26:52 in Downloads & Updates
i updated to innodb but switched back same with phpmailer because you sometimes have to install yourself - i try removing 3rd party installs

This also applies to sql/php settings like short tags and no_default_zero_date  to make the project plug and play - even thought about removing bootstrap because its a third party but its so useful so i added more custom css and i try use css wherever possible leaving bootstrap for the grids/forms etc to make mobile friendly
Clean Up Class — 2021-08-04 21:30:33 in Downloads & Updates
not got far with this just stripped my code and speed test my querys before i place into methods it was still taking 8 seconds - so i got to 8 from 12 seconds.

i found optimizing the table was causing it. this must cause some overhead in huge sites with loads of peers and torrents i removed and now it takes milliseconds :plain
    public function optimize()
   {
       // OPTIMIZE TABLES
       $res = DB::run("SHOW TABLES");
       while ($table = $res->fetch(PDO::FETCH_LAZY)) {
           // Get rid of overhead.
           DB::run("REPAIR TABLE `$table[0]`;");
           // Analyze table for faster indexing.
           DB::run("ANALYZE TABLE `$table[0]`;");
           // Optimize table to minimize thrashing.
           DB::run("OPTIMIZE TABLE `$table[0]`;");
       }
   }
added this other day  :thumb in bootstrap you can use text-center like so
<div class="card-header text-center frame-header">


added here to view and ill update github in a few days just doing loads of testing at minute
Bug Tracker — 2021-08-04 20:19:11 in M-BiTsy Support
Propaganda:
Clicking on your own username in the shoutbox, does not work....is profile 0


should be system not user this is for auto shoutbox torrents/post (fixed)
admin shout history wrong link (fixed)
"Torrents Posted" in your profile is not correct  (fixed)

for the tab and session are you visiting the login page because that will remove login regardless for security and can you create the issue here ?
Clean Up Class — 2021-08-02 17:22:21 in Downloads & Updates
Thanks for sharing great work, compared to old cleanup so much better

Simple steps, which will guide me kept putting cleanup off cos of the spaghetti code

But it's been playing up here had to disable it think it has something to do with the 21,000 members going to prune every member with no password,  this won't effect posts so can be added back if someone ask - most of user table columns are empty with users who never logged in not sure how much that would effect it maybe just needs to be more efficient

Then I can time it better
 `times_completed` = WHERE 


should say
 `times_completed` = 0 WHERE 


whats on torrents-details.php on line 189

looking for where the `times_completed` is coming from
Test site with php 8 — 2021-07-29 13:26:20 in v3 Support
Happy to help mate

Micromonkey is correct isset() is another option so to just explain a bit for anyone else who finds this topic helpful

The undefined  var
$var = test ?? '', or ?? 0;

This returns 0 (int) or empty string

Array_key_exists and isset returns a bool (true or false)  :thumb
Test site with php 8 — 2021-07-28 14:57:41 in v3 Support
ill try go through each error to give better understanding
using forums.php for example

$action = strip_tags($_REQUEST["action"]);


undefined array error means php expects the $_POST/$_GET array to contain the key action so we can wrap it

if (array_key_exists('action', $_REQUEST)) {
     $action = strip_tags($_REQUEST["action"]);
}


this tells us we only expect action if the $_POST/$_GET array exist

but $action is also a variable so will cause a undefined   variable error so we need a  default value
if (array_key_exists('action', $_REQUEST)) {
     $action = strip_tags($_REQUEST["action"]);
} else {
         // no array so empty string
 $action = '';
}


if a undefined variable is not in array we can quickly add a default value - theme/lang block for example
$stylesheets


we dont know what this is so we add a default value
// for number value
$stylesheets ?? 0;
// for string value
$stylesheets ?? ''


the undefined offset is a little more tricky i can not create this error but it is about a array value
* maybe the array value is not there
* maybe the array is numbered not named
* maybe array is returned in different order

for offset its always good to use var_dump() to see what the array is looking like so for example var_dump($a);

Maybe some else has a bit more knowledge on undefined offset - with me its just trial and error lol
Test site with php 8 — 2021-07-27 14:40:03 in v3 Support
All pointless errors nothing that causes any breaks - however easy to fix

For undefined vars
$wait ?? '';
Or if numeric
$wait ?? 0;

For undefined keys
If (array_key_exists('action')) {
    $action = ?????
}

For offset need to see line really
New Config Approach — 2021-07-24 23:40:59 in M-BiTsy Support
1st post updated just got the forms left to do for pdo version
Bug Tracker — 2021-07-24 22:28:25 in M-BiTsy Support
on keyboard hold Ctrl and press f5 - that should clear the cache - see how that is for blocks i also altered the css

i noticed messages thats fixed on one im working on, i think i finally got changing settings in admincp finished just need to do  the template form

just these left to look at
5) Are we able to link direct to a forum post?
8) The scroll to "top" should be implemented in more places! Example, the FAQ
Bug Tracker — 2021-07-22 19:28:01 in M-BiTsy Support
noticed in admin create user it was making md5 passwords so tried re hashing password for updating sites when its finished
the md5 bit was a config setting using the passhash function so that can be used for converting if its not md5 or shal or if salt has been added

in account-login just this little code
                $oldpassword = md5($_POST["password"]);
               if ($sql['password'] == $oldpassword) {
                   $passhash = password_hash($_POST["password"], PASSWORD_BCRYPT);
                   DB::run("UPDATE users SET password=? WHERE id=?", [$passhash, $sql['id']]);
                   Redirect::autolink(URLROOT . "/logout", Lang::T("Password _Hash_Updated"));
               }
Bug Tracker — 2021-07-19 19:33:12 in M-BiTsy Support
lol not sure why its not showing for you, that is close to what i have.

i found a TT background as well from spirtblues SB-TTv3 theme i added. Half of the custom.css can be removed - only got about 10 things on my to do list so will pay a bit of attention to the themes

Any ideas and ill look at them. One thing for example is the tables all been same colour on all themes been  playing with that.




Bug Tracker — 2021-07-18 16:58:22 in M-BiTsy Support
send me your theme and ill take a look need to see header & footer

if you dont mind me using the custom.css only - ill post it here to help improve it.

I have a copy of Botanicar custom.css so ill add that  :thumb
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