• Resolved mpiroh

    (@mpiroh)


    Hi,

    I created a separate directory for my premium members which is owrking fine. I just would like to remove All Members / My Friends / Students / Teachers … Ordery By line which is displyaing numbers of members from entire directory. Is there any easy way to do this?

    Thank you,

    Martin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Martin,

    If you only wish to hide the number of members, try adding this code to Customize -> Additional CSS:

    #buddypress div.item-list-tabs ul li a span {display: none;}

    Thread Starter mpiroh

    (@mpiroh)

    Hi Andrea,

    Thank you for your advise, but this is not quite what I need. I created a separate directory for premium members, but the line showing all members count / friends count, etc is displaying amount of users from the main directory. I either need to remove this line completely, or only display numbers of users in newly created directory (premium members). Also search members box should not be visible. I did not find an option to hide these anywhere.

    Thank you,

    Martin

    • This reply was modified 6 years, 10 months ago by mpiroh.
    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Martin,

    You have to modify the BuddyPress template for your Members directory. The procedure to follow is outlined in:

    https://dontdream.it/bp-profile-search/custom-directories/

    You may be interested in bullet E) or F), but reading the whole page is recommended.

    Thread Starter mpiroh

    (@mpiroh)

    Hi Andrea,

    Thanks a lot. Can you also point me to the right direction on how to associate newly created template with my new members directory? In a form settings I didn’t find an option to change the path to the template.

    Thank you,

    Martin

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Martin,

    You can use a shortcode like this:

    [bps_directory template='members/index-2, members/members-loop-2']

    The detailed procedure is explained in:

    https://dontdream.it/bp-profile-search/custom-directories/

    under F) Create and use a new Members directory template.

    Thread Starter mpiroh

    (@mpiroh)

    Hi Andrea,

    This is where i get confused. F) is for creating and using NEW members directory template, yet first point in this tutorial says – 1. Go to the buddypress/members directory you created in procedure E) (which is for modifying standard members directory template)

    I’m not using child template, I just would like to create another Members directory template. I created new directory called ‘members premium’ in
    /web /wp-content /plugins /buddypress /bp-templates /bp-legacy /buddypress /members premium but I’m not sure how I refer this path from the template itself. When I use the shortcode you menntioned, I get a blank page.

    Thank you,

    Martin

    Plugin Author Andrea Tarantini

    (@dontdream)

    Hi Martin,

    I see the procedure can be a bit confusing, I’ll modify the page to improve it.

    In the meantime, I’ll detail the complete procedure here (there is no way to use the files you created under plugins/buddypress, because they will be overwritten by the next BuddyPress update):

    You should also create a child theme, otherwise all your changes will be overwritten by the next theme update. Follow the instructions in the Codex to create and activate your child theme.

    A few steps are specific to the BuddyPress template pack you are using (legacy or nouveau).

    1. Create a directory ‘buddypress’ inside your active child theme directory

    2. Create a directory ‘members’ inside the new ‘buddypress’ directory

    3. (legacy) Copy the files index.php and members-loop.php from
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members to the new buddypress/members directory

    3. (nouveau) Copy the files index.php and members-loop.php from
    wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members to the new buddypress/members directory

    4. Copy index.php to index-2.php and members-loop.php to members-loop-2.php

    5. (legacy) Edit index-2.php, locate the string ‘members/members-loop’ and replace it with ‘members/members-loop-2’

    5. (nouveau) — nothing to do —

    6. Modify the new files index-2.php and/or members-loop-2.php according to your needs

    7. Create a new WordPress page and enter this shortcode:
    [bps_directory template='members/index-2, members/members-loop-2']

    8. Save, and visit your new page. It should display a Members directory using your new template.

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

The topic ‘Remove All members linen’ is closed to new replies.