newbie LAC Posted September 17, 2020 Author Posted September 17, 2020 Hello, 12 hours ago, James101 said: Does this setting mean it will automatically pin the entered post number? - http://prntscr.com/uif1so Yes 12 hours ago, James101 said: If yes, how do I find post number? Just count the posts 12 hours ago, James101 said: Will all first replies have the same post number? Yes 10 hours ago, FFXIV Admin said: Hello, I've updated to the latest version, and this issue seems to persist. Hello, From which version did you updated? If you don't have pinned posts you can reinstall the plugin
James101 Posted September 17, 2020 Posted September 17, 2020 Hi @newbie LAC - Thank you for answering my questions. I am facing an issue. The pinned posts works fine when the post is posted manually. I have Auto-Reply to Topics by Adriano Faria installed and set up to post replies in certain forums. The auto replies are not getting pinned but only the manual replies are getting pinned.
newbie LAC Posted September 17, 2020 Author Posted September 17, 2020 26 minutes ago, James101 said: The pinned posts works fine when the post is posted manually. I have Auto-Reply to Topics by Adriano Faria installed and set up to post replies in certain forums. The auto replies are not getting pinned but only the manual replies are getting pinned. As I said above I don't know how his application works. I need to see the code.
FFXIV RPC Posted September 22, 2020 Posted September 22, 2020 On 9/16/2020 at 10:03 PM, newbie LAC said: On 9/16/2020 at 11:27 AM, FFXIV Admin said: Hello, I've updated to the latest version, and this issue seems to persist. Hello, From which version did you updated? If you don't have pinned posts you can reinstall the plugin I was on version 1.0.12 previously. Pinned posts were showing up when I did my IPS 4.4 to 4.5 upgrade, and then broke after I updated the plugin to the latest version. My community had made use of pinned posts previously and I'd like to retain them if possible, but if it's easier to uninstall the plugin and erase its data and then reinstall it, I can post an update to advise users to re-pin their content as needed.
newbie LAC Posted September 23, 2020 Author Posted September 23, 2020 Hello, 10 hours ago, FFXIV Admin said: I was on version 1.0.12 previously. Pinned posts were showing up when I did my IPS 4.4 to 4.5 upgrade, and then broke after I updated the plugin to the latest version. My community had made use of pinned posts previously and I'd like to retain them if possible, but if it's easier to uninstall the plugin and erase its data and then reinstall it, I can post an update to advise users to re-pin their content as needed. PM me and I'll give you sql-queries to fix the issue and retain the pinned posts
Viktor Levytskyi Posted December 12, 2020 Posted December 12, 2020 Hello, I have a huge topic (1500 posts). I need to "pin" about 40 posts and show them only at the beginning of the topic (these will be pages 1 and 2), and not on all pages. Will this plugin be useful to me? Thank you 🙂
newbie LAC Posted December 13, 2020 Author Posted December 13, 2020 Hello, 6 hours ago, Viktor Levytskyi said: Will this plugin be useful to me? I guess you can use conditions + css {{if request.page > 2}} <style> #nbPinnedSeparatorTop, #nbPinnedSeparatorBottom, .cNbPinnedPost { display: none; } </style> {{endif}} Viktor Levytskyi and alexxis 2
Viktor Levytskyi Posted December 13, 2020 Posted December 13, 2020 I bought plugin and tried to test it. I used provided example of code, but with "request.page > 1" (because I need to show pinned posts only on the 1 page). As a result - the second page is empty... How to reproduce: try to create a topic with 35 comments and "pin" comments from 14 to 27 (I use the setting "14 messages per page").
newbie LAC Posted December 14, 2020 Author Posted December 14, 2020 I can not reproduce. Where did you add the code? I added in core - global - plugins - nbPinnedPostsSeparators
Viktor Levytskyi Posted December 14, 2020 Posted December 14, 2020 (edited) I tried to add this code to template nbPinnedPostsSeparators too - the same result. Easy example: just try to imagine, that you pinned all comments in the topic. Yes, this is stupid, but this will show you the problem: Page 1: topic message + all comments Page 2: all comments Page N: all comments Let's try to add provided code: Page 1: topic message + all comments Page 2: empty page (because all messages are pinned) Page N: empty page (because all messages are pinned) And one more problem: direct link to post (do=findComment&comment=ххх) will redirect me to empty page 🤐 I found a simple workaround that solved all my problems: I simply disabled plugin for all pages except first (file nbPinnedPostsPosts.php, function "comments") if ( \IPS\Request::i()->page > 1) { return $comments; } After that we can "pin" for example 30 messages out of 1500 messages and everything will work fine ☺️ Edited December 14, 2020 by Viktor Levytskyi
alexxis Posted March 4, 2021 Posted March 4, 2021 Hi @newbie LAC In your latest versions you have moved the data into a separate database table. Before I could return pinned posts by the php command return $content->nbpinned; How can i return those posts now? Also, before we had a setting to unpin all the posts, this setting has been removed, how to unpin all posts then? Also, before we could pin all the first posts with the setting "Pin first post ", but since this setting has been changed to Pin entered pids (post number), how can we pin all the first posts of the already existing topics? (I was updating from the 1.0.12, and the update stuck for a minute or so: I was thinking that there was a connection issue with the marketplace, so I have updated the page. - as the result - I have lost some data, because that time the data was transferring from forums_posts table to a new specific table. I didn't know that you have moved the data to another table in the latest versions of your plugin 😞 😞 So I'd suggest to mention such a case in the "Previous changes" menu (e.g. "The data moved to a new table"), so the people will be more careful when updating. Thank you.)
tragopan Posted November 20, 2022 Posted November 20, 2022 Hello, Same question as for AS Manager : are you going to update Pinned Posts for Invision 4.7+ and PHP8? Thank you in advance for your answer ^^
Viktor Levytskyi Posted December 15, 2022 Posted December 15, 2022 PHP Fatal error: Cannot use "parent" when current class scope has no parent in Hello guys, It seems this plugin is not compatible with Invision 4.7.5, PHP 8 😒
Meddysong Posted December 15, 2022 Posted December 15, 2022 4 hours ago, Viktor Levytskyi said: It seems this plugin is not compatible with Invision 4.7.5, PHP 8 😒 I'm afraid you shouldn't expect an update: Viktor Levytskyi 1
mtlurb Posted January 10, 2023 Posted January 10, 2023 Anyone knows how to repair this plugin to make it PHP8 compatible?? I’m willing to pitch in some money. Thanks.
Daniel F Posted February 15, 2023 Posted February 15, 2023 On 1/10/2023 at 10:36 PM, mtlurb said: Anyone knows how to repair this plugin to make it PHP8 compatible?? I’m willing to pitch in some money. Thanks. You could use the recommend post feature to achieve something very similar. alexxis 1
teraßyte Posted February 15, 2023 Posted February 15, 2023 In case recommended posts won't work for what you need, I've updated this modification for some clients before. Unfortunately, I can't redistribute it in the marketplace since it's not my plugin. If you PM me, we can talk further about it.
mtlurb Posted February 17, 2023 Posted February 17, 2023 On 2/15/2023 at 12:48 PM, teraßyte said: In case recommended posts won't work for what you need, I've updated this modification for some clients before. Unfortunately, I can't redistribute it in the marketplace since it's not my plugin. If you PM me, we can talk further about it. Check your inbox
Recommended Posts