-
Author
-
September 30, 2013 at 21:20 #3600CenkParticipant
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
October 1, 2013 at 02:41 #3625SQadminKeymasterHi,
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 solutionOctober 1, 2013 at 18:18 #3656CenkParticipantThank 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
October 2, 2013 at 01:15 #3694SQadminKeymasterHi,
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 solutionOctober 2, 2013 at 18:19 #3745CenkParticipantThank 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.
October 3, 2013 at 13:05 #3779SQadminKeymasterHi, 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 solutionOctober 4, 2013 at 00:59 #3816SQadminKeymasterI 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 solutionOctober 4, 2013 at 01:43 #3820CenkParticipantYes, 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’ ); ?>
October 4, 2013 at 18:24 #3844CenkParticipantIf 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 widthif ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 120 ); //change this with your desired thumb heightif ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
define( ‘BP_AVATAR_FULL_WIDTH’, 580 ); //change this with your desired full size,weel I changed it to 260if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
define( ‘BP_AVATAR_FULL_HEIGHT’, 580 ); //change this to default height for full avatardefine( ‘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 widthif ( !defined( ‘BP_AVATAR_THUMB_HEIGHT’ ) )
define( ‘BP_AVATAR_THUMB_HEIGHT’, 120 ); //change this with your desired thumb heightif ( !defined( ‘BP_AVATAR_FULL_WIDTH’ ) )
define( ‘BP_AVATAR_FULL_WIDTH’, 580 ); //change this with your desired full size,weel I changed it to 260if ( !defined( ‘BP_AVATAR_FULL_HEIGHT’ ) )
define( ‘BP_AVATAR_FULL_HEIGHT’, 580 ); //change this to default height for full avatardefine( ‘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’ );?>
October 5, 2013 at 00:41 #3856SQadminKeymasterWhat 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 solutionOctober 5, 2013 at 01:11 #3862CenkParticipantThe 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.
October 5, 2013 at 02:33 #3882SQadminKeymasterHi,
Yes it can be done.
Add this code to wp-content/plugins/bp-custom.php to make Buddypress not generate the links:COPY CODEfunction 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 -
AuthorPosts
The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.