Jump to content

(NB40) Pinned Posts

Featured Replies

  • Author

Hello.

Bug detected:

After pinning first post in topic, which hasn't another posts, I'm getting error EX2.

Log:

Tue, 07 Jul 2015 11:14:36 +0000 (Severity: 2)
95.108.132.187 - http://site/forum/topic/8997-tplus-kachestvennyiy-takelazh-dinamicheskie-stropyi-shaklyi/
ErrorException
2: Creating default object from empty value
#0 /var/www/offroad4x4club.com/forum/init.php(431) : eval()'d code(57): IPS\IPS::errorHandler(2, 'Creating defaul...', '/var/www/offroa...', 57, Array)
#1 /var/www/offroad4x4club.com/forum/applications/forums/modules/front/forums/topic.php(190): IPS\forums\hook71->comments(NULL, NULL, 'date', 'asc', NULL, NULL, NULL, NULL)
#2 /var/www/offroad4x4club.com/forum/system/Dispatcher/Controller.php(94): IPS\forums\modules\front\forums\_topic->manage()
#3 /var/www/offroad4x4club.com/forum/system/Content/Controller.php(45): IPS\Dispatcher\_Controller->execute()
#4 /var/www/offroad4x4club.com/forum/applications/forums/modules/front/forums/topic.php(40): IPS\Content\_Controller->execute()
#5 /var/www/offroad4x4club.com/forum/system/Dispatcher/Dispatcher.php(129): IPS\forums\modules\front\forums\_topic->execute()
#6 /var/www/offroad4x4club.com/forum/index.php(13): IPS\_Dispatcher->run()
#7 {main}

 

Hello,

Fixed. I'll upload new version coming soon

  • Replies 142
  • Views 14.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • newbie LAC
    newbie LAC

    ​It is advisable to make for 1st page only. I could add new setting  

  • Hello, I made quick test and plugin works.

  • Hello, I guess you can use conditions + css {{if request.page > 2}} <style> #nbPinnedSeparatorTop, #nbPinnedSeparatorBottom, .cNbPinnedPost { display: none; } </style>

Posted Images

  • Author

Hello,

Fixed. I'll upload new version coming soon

Done

Hi, Possible to automatically pin the first post on a selected forum ? thanks

  • Author

Hi, Possible to automatically pin the first post on a selected forum ? thanks

Hello,

Not in this version.

Do you want this feature when topic created?

Yes, when a topic is create, the first post automatically pinned. I don't know if it's possible for you to add this and maybe I'm only one to want it, but actually in my live forum (my live forum is again on 3.4.. The 4.0 just use for test for the moment) I have a plugin to pin the first post but I need to do that manually..; and it's very very bad for me to do that manually (because take many time), so if you add this in your plugin I will very interested to buy it... If it's possible for you. ;)

  • Author

Yes, when a topic is create, the first post automatically pinned. I don't know if it's possible for you to add this and maybe I'm only one to want it, but actually in my live forum (my live forum is again on 3.4.. The 4.0 just use for test for the moment) I have a plugin to pin the first post but I need to do that manually..; and it's very very bad for me to do that manually (because take many time), so if you add this in your plugin I will very interested to buy it... If it's possible for you. ;)

No problem. I'l add this feature

pinned.thumb.png.63697a17bea0f1ea30b8169

Edited by newbie LAC

Wahou, you are very fast, thank you very much it's perfect. I buy it now and very happy to see that on the new version :thumbsup:

  • Author

Wahou, you are very fast, thank you very much it's perfect. I buy it now and very happy to see that on the new version :thumbsup:

I uploaded new version with 2 new settings

  • 3 weeks later...

@newbie LAC I have found a bug in this application.

It works perfectly in a 'Discussion' forum however f you try using it in a 'Question' forum the original post that is made to create the topic is duplicated on the thread and then you get the pinned post so it looks like this;

Question

Answer1
Answer2
Answer3

If I want to pin Answer 3 this is what I get with the plugin;

Question

Question
Answer3
Answer1
Answer2

If I then refresh the page or come back to that thread it looks like this;

Question

Answer1
Answer2
Answer3 (This one is still showing as pinned as you have the 'Unpin' option yet the post is back in its original place and it hasn't been unpinned.

Hope that makes sense.

  • Author

@newbie LAC I have found a bug in this application.

It works perfectly in a 'Discussion' forum however f you try using it in a 'Question' forum the original post that is made to create the topic is duplicated on the thread and then you get the pinned post so it looks like this;

Hello,

Not tested with questions. But confirmed.

How it should look like? We already have the first post (question) that is visible on all pages.

Hello,

Not tested with questions. But confirmed.

How it should look like? We already have the first post (question) that is visible on all pages.

I think it should simply be the first answer on every page

  • Author

If I want to pin Answer 3 this is what I get with the plugin;

Question

Question
Answer3
Answer1
Answer2

Fixed

If I then refresh the page or come back to that thread it looks like this;

Question

Answer1
Answer2
Answer3 (This one is still showing as pinned as you have the 'Unpin' option yet the post is back in its original place and it hasn't been unpinned.

I can't reproduce this.

pinq.thumb.png.7c13ecaa5bc70e7c5c04dc180

Also I removed pin button from questions

If you want to test new version PM me.

  • 1 month later...

I have error when delete plugin (2S101/J We could not locate the item you are trying to view.). IPS 4.0.13.1.

One more request: can you add option for accept pin posts only in user own topic if user have permission for pin? I want permission set only for user's own posts/topics.

Edited by PROSECRETS.COM

  • Author

Hello,

5 hours ago, PROSECRETS.COM said:

I have error when delete plugin (2S101/J We could not locate the item you are trying to view.). IPS 4.0.13.1.

Can't reproduce error.

1. Install the plugin

2. Pinned some posts

3. Deleted the plugin

4. Refreshed the topic page and doesn't see any errors

5 hours ago, PROSECRETS.COM said:

One more request: can you add option for accept pin posts only in user own topic if user have permission for pin? I want permission set only for user's own posts/topics.

Yes, I can

1 hour ago, newbie LAC said:

Yes, I can

It would be GREAT!

I have error when install and next delete plugin. After page update error dissapear and all seems work properly. Just a visual bug.

  • Author
1 hour ago, PROSECRETS.COM said:

It would be GREAT!

qo86d3.png

Is that what you want?

39 minutes ago, newbie LAC said:

qo86d3.png

Is that what you want?

Yes! (At the same time, administrators can pin posts in all topics when switch is on?)

  • Author
27 minutes ago, PROSECRETS.COM said:

Yes! (At the same time, administrators can pin posts in all topics when switch is on?)

I think would be better make

13zy3yx.png

1 setting instead of 2 (yes/no + excluded groups)

 

Mb something like:

  1. Groups can pin / unpin posts everywhere. (for administrators/moderators/etc.)
  2. Groups can pin / unpin posts in his own topics only.

And switch button: Users from 2. will be able pin / unpin only his own posts if On and all posts in his own topics, if Off.

Edited by PROSECRETS.COM

  • Author
27 minutes ago, PROSECRETS.COM said:

And switch button: Users from 2. will be able pin / unpin only his own posts if On and all posts in his own topics, if Off.

Not sure what you mean.

Setting "Groups (GLOBAL)" allow to pin all posts everywhere

Setting "Groups (TOPIC OWNER/STARTER)" allow to pin all posts in topic only if member is topic starter

If you select group "Members" for both settings the first override the second

If selected group "Members" in "Groups (TOPIC OWNER/STARTER)", user can pin not his own posts in his own topics. Switch button for accept/decline pin other users posts in his own topics for "Groups (TOPIC OWNER/STARTER)".

Edited by PROSECRETS.COM

  • Author
40 minutes ago, PROSECRETS.COM said:

If selected group "Members" in "Groups (TOPIC OWNER/STARTER)", user can pin not his own posts in his own topics.

Yes.

40 minutes ago, PROSECRETS.COM said:

Switch button for accept/decline pin other users posts in his own topics for "Groups (TOPIC OWNER/STARTER)".

Do you want separate setting for this?

r0nl9v.png

2 hours ago, newbie LAC said:

Yes.

Do you want separate setting for this?

r0nl9v.png

That's great!

  • Author
18 hours ago, PRO secrets said:

That's great!

I'll upload new version coming soon

Done

Edited by newbie LAC

Remembered! For the following versions: should add the option "Maximum number of pinned posts in the topic".

Edited by PRO secrets

Recently Browsing 0

  • No registered users viewing this page.