This topic has 12 replies, 2 voices, and was last updated 11 years by SQadmin.

  • Author
  • #3600
     Cenk
    Participant

    Hello,

    I hope you can help me with this one.

    – (1) How to display ‘Group Directory’ as a list?
    – (2) How to add a specific notification balloon for receiving a group invitation? (the same notification balloon when somebody sent a friend request or a message)
    – (3) Is there a way to display the group navigation menu as a dropdown menu? I want to use it as a WP-custom menu on the sidebar.
    – (4) How to add a sidebar on the member search page?

    Thank you for the support.

    Cenk

    #3625
     SQadmin
    Keymaster

    Hi,
    1. You need to edit groups / groups-loop.php file
    2. This needs some programming to be achieved
    3. Buddypress generates it so i don’t think you can achieve this without Buddypress core changes. Also you need custom development
    4. To add a sidebar to members page you need to edit members/index.php file and change line 21 to
    <div class="<?php echo apply_filters('kleo_bp_directory_main_cols','eight');?> columns">

    and at the end before:
    <?php get_footer( 'buddypress' ); ?>
    add:
    <?php get_sidebar('buddypress' ); ?>

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

    Thank you for the answers. I’ll work on it. I have problem with the search results. When I search something specific (like my name) I get all the results. This problem appeared before the adjustments. It worked a few weeks ago. But now it’s bugging.

    And do you know how to speed up the website? I did a zlib Compression en activated the wp super cache plugin. It works..is much faster. But how to increase more speed.

    Cheers

    #3694
     SQadmin
    Keymaster

    Hi,
    Maybe you have added a new plugin? Or maybe the caching plugin does this. Try disabling some plugins
    That should do it to speed up your site. A dedicated server makes the difference or a VPS with dedicated resources.

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

    Thank you for the help. I will ask Hostgator for recommendations.

    The search results page is not functioning right. I don’t know why. Example: when I find a result the page says: “Your search returned 1 member” But instead of displaying the search results the page shows me all the members. Let me know if you need more info, or if I need to copy paste a code.

    #3779
     SQadmin
    Keymaster

    Hi, You can provide a link to your search page so we can see it in action

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #3800
     Cenk
    Participant
    This reply has been set as private.
    #3816
     SQadmin
    Keymaster

    I think you did some changes or have a plugin that affects this. You should try disabling plugins that might affect this or think if you modified the members template.

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

    Yes, I found the plugin. It’s called: BuddyPress Friends On-line (FOL). Now the results are working again:) Thanks.

    I would like to display the group directory as a list. Is there an easy way to do that? Or do I’ve to work with css? You told me to look in the group-loop.php But It’s already written as a group-list. Take a look.

    ————Group-Loop.php—————————-

    <?php

    /**
    * BuddyPress – Groups Loop
    *
    * Querystring is set via AJAX in _inc/ajax.php – bp_dtheme_object_filter()
    *
    * @package BuddyPress
    * @subpackage bp-default
    */

    ?>

    <?php do_action( ‘bp_before_groups_loop’ ); ?>

    <?php if ( bp_has_groups( bp_ajax_querystring( ‘groups’ ).”&per_page=”. apply_filters(‘kleo_bp_groups_pp’, 12) ) ) : ?>

    <?php do_action( ‘bp_before_directory_groups_list’ ); ?>

    <div id=”groups-list” class=”item-list search-list” role=”main”>

    <?php while ( bp_groups() ) : bp_the_group(); ?>

    <div class=”four columns”>
    <div class=”search-item”>

    <div class=”avatar”>
    “><?php bp_group_avatar( ‘type=thumb&width=94&height=94&class=’ ); ?>
    </div>

    <div class=”search-meta”>
    <h5 class=”author”>“><?php bp_group_name(); ?></h5>
    <p class=”date”><?php printf( __( ‘active %s’, ‘buddypress’ ), bp_get_group_last_active() ); ?></p>
    </div>
    <div class=”search-body”>
    <div class=”item-desc”><?php bp_group_description_excerpt(); ?></div>

    <?php do_action( ‘bp_directory_groups_item’ ); ?>
    </div>
    <br>
    <div class=”action”>
    <?php do_action( ‘bp_directory_groups_actions’ ); ?>
    <div class=”meta”>
    <?php bp_group_type(); ?> / <?php bp_group_member_count(); ?>
    </div>
    </div>
    <br>
    </div>
    </div>

    <?php endwhile; ?>

    </div>

    <?php do_action( ‘bp_after_directory_groups_list’ ); ?>

    <div id=”pag-bottom” class=”pagination”>

    <div class=”pag-count” id=”group-dir-count-bottom”>

    <?php bp_groups_pagination_count(); ?>

    </div>

    <div class=”pagination-links” id=”group-dir-pag-bottom”>

    <?php bp_groups_pagination_links(); ?>

    </div>

    </div>

    <?php else: ?>

    <div id=”message” data-alert class=”alert-box”>
    <?php _e( ‘There were no groups found.’, ‘buddypress’ ); ?>
    </div>

    <?php endif; ?>

    <?php do_action( ‘bp_after_groups_loop’ ); ?>

    #3844
     Cenk
    Participant

    If fix it. Did a code change at line 25 ( <div class=”list”>) then customised it with css. But I still can’t remove the profile links.

    I tried both:

    <?php

    if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
    define( ‘BP_AVATAR_THUMB_WIDTH’, 120 ); //change this with your desired thumb width

    if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
    define( ‘BP_AVATAR_THUMB_HEIGHT’, 120 ); //change this with your desired thumb height

    if ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
    define( ‘BP_AVATAR_FULL_WIDTH’, 580 ); //change this with your desired full size,weel I changed it to 260 :)

    if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
    define( ‘BP_AVATAR_FULL_HEIGHT’, 580 ); //change this to default height for full avatar

    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );

    define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘members’ );

    function remove_xprofile_links() {
    remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
    }
    add_action(‘bp_setup_globals’, ‘remove_xprofile_links’);

    ?>

    Or

    <?php

    if ( !defined( ‘BP_AVATAR_THUMB_WIDTH’ ) )
    define( ‘BP_AVATAR_THUMB_WIDTH’, 120 ); //change this with your desired thumb width

    if ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
    define( ‘BP_AVATAR_THUMB_HEIGHT’, 120 ); //change this with your desired thumb height

    if ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
    define( ‘BP_AVATAR_FULL_WIDTH’, 580 ); //change this with your desired full size,weel I changed it to 260 :)

    if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
    define( ‘BP_AVATAR_FULL_HEIGHT’, 580 ); //change this to default height for full avatar

    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );

    define( ‘BP_GROUPS_DEFAULT_EXTENSION’, ‘members’ );

    function remove_xprofile_links() {
    remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 9, 2 );
    }
    add_action( ‘bp_init’, ‘remove_xprofile_links’ );

    ?>

    #3856
     SQadmin
    Keymaster

    What do you mean by profile links?

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

    The profile links on the profile page.

    —–Example —–

    Name: Something (linked)
    Place: Something (linked)
    Etc.

    When I click on it I get the search result page.

    #3882
     SQadmin
    Keymaster

    Hi,
    Yes it can be done.
    Add this code to wp-content/plugins/bp-custom.php to make Buddypress not generate the links:

    COPY CODE
    
    function remove_xprofile_links() {
        remove_filter( 'bp_get_the_profile_field_value', 'xprofile_filter_link_profile_data', 9, 2 );
    }
    add_action( 'bp_init', 'remove_xprofile_links' );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?