Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to keep the sticky posts at the top


  • 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)

  • 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…


    jivany
    Participant

    @jivany

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


    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.


    Anton
    Participant

    @antonrsaopencirclecoza

    Sounds like a good plan @stwc

    Thanks for creating a ticket for it.


    Gianfranco
    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…


    modemlooper
    Moderator

    @modemlooper

    +1


    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.


    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.


    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.


    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)
  • The topic ‘How to keep the sticky posts at the top’ is closed to new replies.
Skip to toolbar