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
dragonexpert,

I'm not sure if I hit a bug or if there just isn't a good way to handle this in the plugin. if you reply to a thread and then move said thread to another forum section on the site, it'll list both posts with 1 of those posts in the recent thread list erroring out:


[Image: cdxRQoR.jpg]

[Image: UOmRoaX.jpg]
Is this plug in the same as Latest post on sidebar?

Can someone post a preview? seems interesting .
Is there a way to place the recent threads on a separate page? We really like the plugin but have found we have so many posts that to extend the number shown makes the index page too long, I was hoping there is a way to move it to another page. Could I create a custom page like shown here and some how tell the recent posts plugin to point to that instead of the index page?
^ @johanssen actually a plugin is not required for your requirement.
you can use new posts link & today's posts link to get latest threads

examples :
View New Posts - https://community.mybb.com/search.php?action=getnew

View Today's Posts - https://community.mybb.com/search.php?action=getdaily

last 3 Days posts - https://community.mybb.com/search.php?action=getdaily&days=3

last week's posts - https://community.mybb.com/search.php?action=getdaily&days=7


@eternity123 it is not the same as latest posts in sidebar plugin.
this plugin lists latest threads near the top / bottom of the index page
(2017-11-26, 12:58 AM)Cyrane91 Wrote: [ -> ][quote='Avex' pid='1288420' dateline='1510361185']
This doesn't seem to be working for me.
The recentthread templates didn't install.

Edit: Had to manually make the templates using recentthreads.php and just c+p


I'm having the same issue. How can I manually make the templates to fix this?
[/q

can you please explain how to make it work, its not working for me

(2017-06-02, 03:25 PM)Mipher Wrote: [ -> ]Check my last comment.

Deactivate and uninstall the plugin from the plugin page.

Open the plugin file inside inc/plugins and search for:

foreach ($new_template as $title => $template)
{
 $my_template = array(
 'title' => $db->escape_string($title),
 'template' => $db->escape_string($template),
 'sid' => '$sid',
 'version' => '1800',
 'dateline' => TIME_NOW);
 $db->insert_query('templates', $my_template);
} 

Change

'sid' => '$sid',

with:

'sid' => $sid,



Thank you thats fixed the issue great work Lightbulb Cool
Sorry I've been gone so long everyone. If some people can test the version on Github and let me know if it is working as expected, it would be appreciated.
(2018-01-26, 03:55 AM)dragonexpert Wrote: [ -> ]Sorry I've been gone so long everyone.  If some people can test the version on Github and let me know if it is working as expected, it would be appreciated.


i cant imagine my board without your plugin i have right now only your plugin because its so beneficial, one thing is that the version 14 it wont show on the index until i uninstall it and than fixed as explained above so some members are wondering why its not showing on the index if you could fix that in the original package please do it.

and one important request how do i move it to the top of the index instead of the bottom thank you
I'm looking at the code on Github and it looks like the templates should be formed correctly, I will test it tomorrow though since I will have more time then. I plan on changing the file structure for it so things are easier to edit.

I think I figured out how to fix the error for Thread does not exist.

You can move it to the top of the index by going to Index templates -> index Then move {$recentthreadtable} to be above {$forums}.

I've been pushing a bunch of changes on Github. It is likely more stable than what is on site here. Some bugs have been addressed in the Github version. It is also much easier to manage.
Due to popularity of the request in this thread, I uploaded a new build which has the ability to display the recent threads on additional pages. If your question is not answered in the read me file, ask here. The new build also has a couple additional settings.
Just uploaded this and right away got this error https://i.imgur.com/P2VJCCv.png
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