Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private Message Pagination


  • RecAgenda
    Participant

    @recagenda

    Google showed a couple of threads on here in the (distant) past, but they were both unanswered and I can’t find anything else on this so…

    Is there a way to enable pagination for private messages? I can’t seem the find an easy click-and-play setting in the /wp-admin and this page tells me… Well, I dunno what it tells me, actually.

    To keep it simple, all I’m wanting to know is how I can restrict a private message conversation to no more than 15 messages per page (and I’m talking about replies to a conversation, here, not the threads themselves – those work just fine).

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

  • danbp
    Moderator

    @danbp

    Hi @recagenda,

    you can’t enable this, because it doesn’t exist. I could be wrong, but so far i know, private conversation are not paginable.

    Reference file is bp-templates\bp-legacy\buddypress\members\single\messages\single.php

    https://buddypress.org/support/topic/pagination-private-message-thread/@henrywright


    RecAgenda
    Participant

    @recagenda

    So then, if I can get some clarification, what’s it talking about on this page with:

    per_page optional
    The number of messages to display on a page before they are paginated to the next page.

    • Default value: 10

    If that’s as obvious as I think it is, then where I can find that in my files?


    danbp
    Moderator

    @danbp

    per_page option is availble for the message loop, like inbox (which is default), sentbox and notices where all received message are stored. This option let you paginat the result.

    Now, the case of a long conversation. This start in the inbox, where you found it at page 1 or 12…
    You click on the message and you see the content. This page is not concerned by the loop containing your per_page option. You can control that in the url.

    If you read the code in the file i indicated you previously, you’ll see that there is no pagination system in it.

    Message option can be set in bp-templates\bp-legacy\buddypress\members\single\messages\message-loop.php

    You need to copy this file into your child-theme first so you won’t loose your modification at next update. See codex if you need more infos about theming.


    Henry Wright
    Moderator

    @henrywright

    @danbp I needed your answer 1 year 6 months ago 🙂


    danbp
    Moderator

    @danbp

    Yeah @henrywright, i stumbled upon that topic yesterday :-). Better later as never !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Private Message Pagination’ is closed to new replies.
Skip to toolbar