MyBB Community Forums

Full Version: Pin Post
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Pin Post
Pin the important replies of a thread just after first post.
[Image: unknown.png]

Implemented Features:
  • Important replies (posts) can be pinned within a thread and the pinned replies will be listed under first post of the thread.
  • Usergroups can be selected to empower who can pin / unpin posts.
  • Author (thread starter) can be empowered to pin / unpin posts.
  • Number of pinned posts limit can be set within a thread.

[Image: image-2021-01-13-152019.png]

Github Repo:
https://github.com/mybbgroup/Pin-Post

Group Site Link (support):
https://mybb.group/Thread-Pin-Post

MyBB Mods Site (download):
https://community.mybb.com/mods.php?acti...w&pid=1424
Wow...Looks important plugin. Thanks effon.
+1.

Not showing pinned post. In which template , what variable added?
You need to pin some posts first from Postbit buttons.
[Image: image-2021-01-13-115310.png]
Variable to be added in other postbit templates. But look is not like as shown in your description. Might I need CSS modification and cover with some class.
https://prnt.sc/wmbxk5
CSS should be auto inserted in every theme.
Check your theme css list

[Image: image-2021-01-13-115837.png]
Ok...Not loading for me from CSS even after adding that css code in global.css. Might be an issue from my side.
Checked with default theme? Purged cache?
Yes, everything done but style not displayed. and time is also not displayed.
Looks like I missed the var for time.
use this variable {$pinpost_stamp} in postbit_pinpost_bit template for timestamp.
<div class="pinpost_bit">
	<span class="pinpost_action">{$pinpost_unpin}</span>
	<strong><a href="showthread.php?tid={$post['tid']}&pid={$pinned['pid']}#pid{$pinned['pid']}">{$pinned['subject']}</a></strong> - {$lang->by} {$pinpost_poster}, {$pinpost_stamp}
</div>


Will push a patch.
Hi, thank you for your contribution Smile

I pushed some suggestions via a PR.
Pages: 1 2 3