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
Latest build - I get this error when I wanna run update script
(2017-02-14, 03:33 PM)Eldenroot Wrote: [ -> ]Latest build - I get this error when I wanna run update script

Create a setting named recentthread_xthreads. YEs / No for options code. Display order 9.

I'll work on patching the upgrade script and have it uploaded within an hour.
New build uploaded with fixed upgrade script. There are some template changes for some new stuff, but I didn't have it compare templates in case you have your own that are different.
Thank you, there is a bug:
1) copy/move a thread -> when you click on the thread subject in the recent threads -> thread doesnt exist (error message). It should be redirected to the new location
That's really weird. I will certainly look into it and post a solution when I find one.

Edit: Found solution.

Around line 400 you will see a while loop. On the line after the brace, add this code
if(strpos($thread['closed'], "moved|") === 0)
        {
            $thread['tid'] = substr($thread['closed'], 6);
        }
Fixed v12.0 update script works fine, thank you.

About moved/copied posts - your posted fix works fine! Thank you very much!

Btw here is my modified Recent threads plugin - thank you for time and efford @dragonexpert!

[Image: 2C6yAty.png]
For those wanting to get ahead of the game, I updated the Github build with two more features. You can now choose what prefix a thread must have to be displayed. Multiple are allowed, blank is for any. The second feature makes it so the templates are done on a per theme basis instead of as a global template. This will help if you have themes that the layout might look odd.
Nice changes, dragonexpert [Image: thumbsup.gif]
@dragonexpert - thank you!
noticed a quick annoyance. not sure if it's a bug or what though..

if you post a thread and then unapprove the thread, the plugin doesn't care and it'll still display it. I can understand it posting it initially as you have to post a thread before you can unapprove it (I believe), but when the plugin refreshes, it should check the permissions, I'd think, no?
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