This topic has 2 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #100071
     JunctionPro
    Participant

    On the Member Directory page (members-loop.php) I want to show a different image at the top of the page depending on the search term that is used in BP Profile Search. I got it to work with search queires, but can’t find the value of the BP Profile Search. Below is an example of what I put in for the search query…

    ?php $search_query = get_search_query(); if( $search_query == ‘envato’ ) { ?

    So is the search term is envato, I have it display the image I want it to show.

    Does this make sense?

    Your help would be greatly appreciated.

    Thanks

    #100225
     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 🙂

    #100846
     Radu
    Moderator

    Hi,

    This is an advanced customization and it will require some middle-advanced php knowledges from your side.

    You will have to check values that are send to server via GET like in example below.

    COPY CODE
    
    if(isset($_GET['id'])) {
        // id index exists
    }
    

    http://stackoverflow.com/questions/12019684/how-to-verify-if-get-exists

    Cheers

    Radu

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

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?