BP Profile Search
Limit this option to a specific member type... (8 posts)

  1. vinaysagar4u
    Posted 4 years ago #

    Hey Andrea,before all...My love and kisses...Thats such a wonderful plugin you have donated here...Thanks a Tonn!!!
    Well i was also wondering if i can limit this functionality to certain member types like for admins,authors or someone that way...If you have a solution,i'd love to have it from you...

    Thanks again!


  2. Samuel B
    Posted 4 years ago #

  3. Andrea Tarantini
    Plugin Author

    Posted 4 years ago #

    Since you are adding the search form to your theme with the line:

    <?php do_action ('bp_profile_search_form'); ?>

    if you need to limit that functionality you can add a condition, e.g.

    if (current_user_can('any_capability_here'))
    do_action ('bp_profile_search_form');

  4. vinaysagar4u
    Posted 4 years ago #

    @Samuel...Thank you very much for the link...However i already use members plugin that does the job..I also tried if there are permissions for this plug in but i couldnt find there...So i had to ask...I still dont know how much this new plugin you gave in can do to my above problem...If you think i need to know more about it,please reply.....

    @Andrea...Thank you very much once again...But i didnt follow your installation tips when i installed it...It still worked for me...I use bp 1.2.9 and fishbook theme...Where do you want me to add that code???At the same time,i dont want a drop down box for search box that say bp profile search...any suggestion???

  5. vinaysagar4u
    Posted 4 years ago #

    Hey sorry...I had to delete from my browser cache and i did...Its only about permissions now

  6. Andrea Tarantini
    Plugin Author

    Posted 4 years ago #

    The Fishbook theme is a child theme of the BuddyPress default theme, so you probably added the BP Profile Search code to your BuddyPress default theme. If so, go there and change it as explained.

  7. vinaysagar4u
    Posted 4 years ago #

    Hey Andrea,
    I donno how to thank you and it just worked fine for me... Tons of Love..

  8. clamoreaux
    Posted 3 years ago #

    I am really new to WP and BP and I need to do something like this but am not sure what file you are referring to to change with the conditional statement. I am using the BuddyPress Default theme with a child theme. What file do I change? I was thinking of copying the file from the default theme directory and putting it in my child theme folder (just so I don't mess it up!)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BP Profile Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic