Skip to:
Content
Pages
Categories
Search
Top
Bottom

Not listing all users if typing @ in activity posts


  • pablito10
    Participant

    @pablito10

    Dear support,
    we would need your help to solve the following issue: when a user types “@username” starting with @ in post editor at front end, he gets only the first 10 users of the website (@a, @ab, …). See attachment as a reference. We would need to retrieve correctly the list of users .

    Here image of first 10 users when typing only @: https://pasteboard.co/Hj8gT3x.png
    Here when typing @b: https://pasteboard.co/Hj8h9wp.png and consider there are users with names starting with “b” in our website.

    Info: buddypress 2.9.3, kleo theme

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

  • pablito10
    Participant

    @pablito10

    is there anybody who can help with this issue? (it is becoming very urgent) I would really appreciate it, thanks a lot and best regards


    shanebp
    Moderator

    @shanebp

    I think you are referring to this class BP_Members_Suggestions in this file:
    buddypress\bp-core\classes\class-bp-members-suggestions.php

    As you can see, there is a default limit of 10 – which explains why you only see ten suggestions.
    Typically, you expect a user to type more than one letter and thereby get better matches.

    Fortunately for you, there is a filter hook ( bp_members_suggestions_args ) in the class that you can use to set the limit parameter to whatever you want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar