MyBB Community Forums

Full Version: Recent Threads On Index [Updated 02-09-21]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
(2018-12-31, 10:59 AM)NoRules Wrote: [ -> ]Hi,

when I try to install your plugin, I've found a problem in the templates.php file.

In line 54 where it says:
$new_template['recentthread_avatar'] = '<a href="{$mybb->settings[\'bburl\']}/member.php?action=profile&uid={$thread[\'uid\']}"><img src="{$avatarurl}" {$dimensions} alt="{$avatarurl}" onerror="this.src='/images/default_avatar.png';"/></a>';

It must be:
$new_template['recentthread_avatar'] = '<a href="{$mybb->settings[\'bburl\']}/member.php?action=profile&uid={$thread[\'uid\']}"><img src="{$avatarurl}" {$dimensions} alt="{$avatarurl}" onerror="this.src=\'/images/default_avatar.png\';"/></a>';

Nice work  Wink

I made the update on Github.  Thanks.
I'd like a couple people to try the latest code on Github and see if there are any errors. Pending no errors, the new build will get posted to the extend section.
I have the newest build on the extend section now. For those wondering why it was marked vulnerable before, it was a mistake. It wasn't spotted that I use forumselect for which forums to ignore and use that directly in a query. PHP 7.3 is supported for those who are already using that. There is no update script that needs to be run because no database changes were done. Some minor bug fixes were also solved in this release.
(2019-02-12, 05:32 PM)dragonexpert Wrote: [ -> ]I have the newest build on the extend section now.  For those wondering why it was marked vulnerable before, it was a mistake.  It wasn't spotted that I use forumselect for which forums to ignore and use that directly in a query.  PHP 7.3 is supported for those who are already using that.  There is no update script that needs to be run because no database changes were done.  Some minor bug fixes were also solved in this release.

You might want to update the thread title to the latest date of the plugin update.
Fixed.
Great news, thank you
I discovered a noncritical bug which it doesn't show a thread as locked if it is locked. If you wish to patch it before my next build, you'll want to go to this line: https://github.com/dragonexpert/recentth...s.php#L268.

Change $folder .= "lock" to $folder .= "close".

The next build has some improvements. Screenshots will come after work tomorrow.
not working
What is not working? I have been using this plugin for over 2 years, without any issue Smile
@Sinanus: You aren't giving any information that can help solve the problem.  Where are problems encountered?  Have you checked the plugin settings?  Did you check the index template for {$recentthreadtable}?

Edit: Added a screenshot that has a preview of the next version.  Mass moderation is a feature that will be available to all global moderators.  I currently have open, close, approve, unapprove, lock, unlock, stick, unstick, and soft delete threads as options.  I will look into restoring threads and custom tools depending on the difficulty of implementing.

[attachment=41539]
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42