This topic has 8 replies, 4 voices, and was last updated 6 years by Radu.

  • Author
  • #201224
     mirajas
    Participant

    Hi,

    I would like to search through users activity on the frontend.

    As I couldn’t find a way to add search though activity, I am asking here to know if there is any possibility to add Activity context like Members, Posts, Groups etc. under theme option.

    Thank you,

    Miraj

    #201289
     Laura
    Moderator

    Hello, sadly buddypress does not have a search feature for activity and I do not know if they will add it in the future

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #204042
     hbcondo
    Participant

    I have a similar question…is it possible to add Authors to the Search context select list? Also, I installed the Pinterest homepage demo data and no matter what search context is specified, it is always search everything.

    Attachments:
    You must be logged in to view attached files.
    #204103
     Laura
    Moderator

    Hello, can you share access so i can check it out?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #204121
     hbcondo
    Participant

    Hi, Laura. I ended up reviewing the kleo_ajax_search function in theme-functions.php and found that there is no condition for authors. Is there a way to update or override this code so the search results includes only authors? I would also want to change the text displayed if no results are found, how can this be done?

    As for the search context not working, the main search bar is not submitting the context form data parameter while the search icon in the top right does.

    #204146
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #204259
     Radu
    Moderator

    Hi guys,

    There is no pre-made snippet allowing to search for the authors… and also no quick solution, The theme search for bp members no for authors, here’s the php code that can be pasted in wp-content/themes/kleo-child/functions.php and overwritten as you need.

    code : https://pastebin.com/raw/QnjbXuhF

    Then you can alter the logic by developing your desired functionality.

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #204722
     hbcondo
    Participant

    Radu, thank you for your reply. Why is the HTML and content hard-coded into the PHP code? This makes it difficult to understand and maintain; if an update to Kleo is made then we would have to update this code manually?

    #204783
     Radu
    Moderator

    Keeping that in child theme/functions.php will be updateproof

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?