Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to keep the sticky posts at the top

  • Avatar of Anton
    Anton
    Participant

    @antonrsaopencirclecoza

    Is there a way to keep sticky forum posts at the top of the forum directory?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of stwc
    stwc
    Participant

    @stwc

    Been chasing this down myself… seems that sticky threads are sticky in the site.com/groups/groupname/forum/ view but not in the site.com/forums/ view, which seems weird, because if I understand it, both views render the list with the same forums-loop.php…

    Avatar of jivany
    jivany
    Participant

    @jivany

    That looks like a bug. Raise a ticket if you haven’t already.

    Avatar of stwc
    stwc
    Participant

    @stwc

    Done, but it does come to mind (and I’ve mentioned it in the ticket) that having all stickies from all groups be sticky in the forums view might mean WAY too many sticky threads.

    Suggestion: only threads stuck by the sitewide admin be sticky in the /forums/ view as opposed to the /groups/groupname/forum view.

    Avatar of Anton
    Anton
    Participant

    @antonrsaopencirclecoza

    Sounds like a good plan @stwc

    Thanks for creating a ticket for it.

    Avatar of gian-ava
    gian-ava
    Participant

    @gian-ava

    I was about to write a thread for this as well. Luckly enough the search produce some relevant result (not often the case, I must say), and I found it already existed.

    Well, so there is nothing else but wait for the option to have sticky topics to actually stick in the Forum Directory to be implemented in a next release?

    Mmm…the waiting without knowing WHEN and IF, is kind of killing for somebody like me… Mmmm…

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    +1

    Avatar of stwc
    stwc
    Participant

    @stwc

    My trac ticket got a reply that it is intended behaviour, so I don’t think we’ll be seeing a change in core.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    @stwc you got dodged. I want stickies to stick on the global directory.

    check into the bbPress function get_sticky_topics() and use that in some capacity on the forums/index.php theme page.

    Avatar of rossagrant
    rossagrant
    Participant

    @rossagrant

    I think it works far better if you DON’t have sticky topics in the group directory showing at the top. That would mean that if you had over 20 sticky topics you would never see ANY of the other ones without scrolling through the groups directory. It is useful to have them sticky in the actual group itself but not in the entire group directory.

    Avatar of info_sponge
    info_sponge
    Member

    @info_sponge

    I know this is pretty old, but the issue still exists. It may be “intended behavior”, but that doesn’t mean it’s “desirable behavior”.

    I was working on a somewhat atypical install of BP that was using groups for membership/subscription control, and only using the main forum listing, not individual group forums. Not having stickies working here was a BIG problem!

    Anyway, for all those interested in hacking out a solution, look no further. In the buddypress/bp-forums/bp-forums-template.php file, edit the defaults at the top of the bp_has_forum_topics function. (Line 268).
    Change $do_stickies = false; to $do_stickies = true;

    (This is in reference to version 1.5.1)

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.