Yu 'noyle' Liu

Results 77 comments of Yu 'noyle' Liu

Sorry I'm not sure whether I get a clear mind about how Twig is working with MyBB, though I've been reading it for months. 🤣 And why [`eval('$header = "'.$templates->get('header').'";');`](https://github.com/mybb/mybb/blob/48bdc349df1c39c8f3ebf238871830c150cd3d29/global.php#L765)...

I think I get the idea how Twig is working in MyBB, partly. Thanks for the explanation. A variable that will passed to Twig will be either explicitly passed to...

> On a total side note, given the confusion around Twig, would it be a good idea for me to write a blog post explaining how it works and the...

> If, though, the global variables in question were simply "count of unapproved attachments", "count of unapproved posts", and "count of unapproved threads", and editpost.php only had to adjust +1...

Relevant PHP references: - `IMG_WEBP ` Image type, https://www.php.net/manual/en/image.constants.php Used as a return value by `imagetypes()` Available as of PHP **5.6.25** and PHP **7.0.10**, respectively. - Output a WebP image...

> Where exactly? > > You should be able to create a new attachment type and it should work just fine. If it doesn't then it should be fixed, and...

The SQLite issue was partly reported in #4498 and resolved in #4499. Pick one and close the other. By the way, the SQLite database backup issue is a bit complex.

With some further checks of the sequence drop and the column/table drop: - If a sequence is owned by a column, dropping the column or the table which the column...

OK, I finally understand why it was there. The short version is MyBB has a self managed sequence `mybb_userfields_ufid_seq`. The whole story happened in a version 1.4.4 [bug report](https://community.mybb.com/thread-41314.html). The...

But please notice that that drop sequence code was added to `drop_table()` in 1.6.