MyBB Community Forums

Full Version: Show First Post [1.4]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Have not found this useful plugin for 1.4 originally written by Jasiu so ported it by myself.

Allows to display first post of the thread on the top every page fot this thread.

There are no changes in functionality, only fixes to work with 1.4.x and minor template modification.
- Adds "Pin/Unpin First Post" to Moderation Options
- Adds "Auto Pin First Post" to "First Post Mod Settings" in Admin CP
- Adds "Auto Pin First Post In All Forums" to "First Post Mod Settings" in Admin CP

# 1.4.4
+ Added "Auto Pin First Post In All Forums" option in plugin settings
Thanks, I'll test out when my forums start to work..
<_<
nice idea to give an option to Pin / Unpin first post

thanks for your effort
hey tried it out it works great! Thanks for your work!
cheers Smile
You can add all forums to "Auto Pin First Post" for now.

If are familiar to MyBB API you can add new setting - "Pin First Post For All Forums" checkbox and check if this option is selected. And if you are not programmer - I'll add this option on this weekend, when I'll have some free time.
Yes.
You may download updated version in first post.
Just deactivate plugin, and activate again ("Auto Pin First Post" setting value will be lost!).
Nice work!
Newer versions of the plugin can be found here: https://community.mybb.com/mods.php?acti...w&pid=1185
(2018-11-01, 03:48 PM)panayot Wrote: [ -> ]Newer versions of the plugin can be found here: https://community.mybb.com/mods.php?acti...w&pid=1185

The new version PINS the FIRST POST on subsequent pages as it is intended,
but, there's still a BUG that has not been fixed....

Bug description:
If Show thread option is set to example "5 Posts Per Page":
And a thread has "11 REPLIES"
First post on FIRST PAGE is LISTED as #1
but, on pageĀ  2, it's LISTED as #11 , even tho its still PINNED at TOP of thread
on page 3, its LISTED as #13, even tho its PINNED at TOP on the page.

See it in action here: http://mybbdemo.epizy.com/showthread.php?tid=1
see attachments

....on your own screen shot, you can see the first post is IDed as post #12, and its above #11 , on your second page.

https://community.mybb.com/uploads/mods/...c63582.png

Why does this bug needs fix ?
Because, if another user has their view settings at 10 Posts per page, the FIRST post will have different IDed number on subsequent pages, than those whom has their view settings to 15 posts per page, and 20 posts per page, etc.
Pages: 1 2 3