BuddyDev

Search

Replies

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45854

    In fact it’s okay, I succeed to do what I want with BP profile search plugin :).

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45827

    Okay,

    Thank you for that I understand perfectly.

    No problem I can wait a little bit for your help πŸ™‚

    Thank you so much

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45814

    Hello,

    Thank you for the code, but the problem is that I also want to keep the actual member’s page and add 3 other with the modified code and don’t know where to put the modified code.

    I need 3 different pages with 3 different values.

    If I create a page, I don’t know where and how to call the modified loops for a specific page…

    Thank you

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45801

    Any help on that please ?

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45771

    I found this code to create a function that will filter based on the field value :

    function my_custom_ids( $field_name, $field_value = ” )

    I fount it here : https://codex.buddypress.org/developer/loops-reference/the-members-loop/

    I understood I need to add this code in my-theme/functions.php or in bp-custom.php but after that how can I call this function on the 3 different pages with the 3 different fields values ??

    The code on the three pages will be like that if I understood well :

    <?php if ( bp_has_members( my_custom_ids( ‘Team’, ‘1’ ) ) ) : ?>
    <?php if ( bp_has_members( my_custom_ids( ‘Team’, ‘2’ ) ) ) : ?>
    <?php if ( bp_has_members( my_custom_ids( ‘Team’, ‘3’ ) ) ) : ?>

    I missed something, I really don’t know where to put the code that call the created function on the new page I created :/

    Thank you for your help

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45770

    Hello @Brajesh Singh,

    I got an eye on this plugin but that’s not what I need, this plugin permit to do a search form for searching in a field and then showing those members.

    Me i just want a page with a shortcode showing directly members who has a specific value in a field.

    and I will create one page for each value of this field.

    So in the example given before, on page for users from team 1, one page for users from team 2 and one for users from team 3.

    Don’t want any user interaction for that, just showing automatically members who has this value in this field.

    It’s just like a SQL Query like that :

    SELECT * FROM users where Team=1

    And I want this to show all users from team 1 like the member page does.

    Thank you πŸ™‚

  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45689

    Hello again,

    Sorry, it doesn’t work, I was wrong, the text is showing like that if I choose text field type : <a href="https://mywebsite.com/test_customized_link/">URL is now hidden</a>

    But if I choose a URL field type, I have an error and the field is not saved with the provided value.

    I tried to modify your code like this by modifying if ( 'url' == $field_type ) to if ( 'text' == $field_type ) but it still doesn’t work.

    And just to clarify, I just want that all URL fields are not filtered and interpret HTML code, for all users, don’t want to specify anything in parameter if possible.

    Thank you

    Since it will be a private website and fields are accessible only to logged on users, no security problems, everyone on this website are trustful people.

    • This reply was modified 1 year, 9 months ago by lobo.
  • Participant
    Level: Initiated
    Posts: 10
    lobo on #45688

    Thanks a lot !! I will test it ASAP πŸ™‚