-
shanebp replied to the topic I've Figured Out How To Create a Facebook-Style Wall, But… in the forum How-to & Troubleshooting 11 years, 6 months ago
Actually, in bp-activity=template -> bp_has_activities, there is a filter ‘user_id’ that accepts a csv string.
You shouldn’t need to hack that file.Did you try getting friends & followers and then passing that into bp_has_activities ?
Something like:
$user_ids = 'user_id=' . $csv_string . "'";
if ( bp_has_activities( $user_ids )… -
shanebp replied to the topic I've Figured Out How To Create a Facebook-Style Wall, But… in the forum How-to & Troubleshooting 11 years, 6 months ago
sorry, wrong thread
-
shanebp replied to the topic Maximizing performance for moderate traffic in the forum Creating & Extending 11 years, 6 months ago
Your error message refers to ‘SimplePie’, a plugin ?
Deactivate that plugin and see if you still get the fatal error. -
shanebp replied to the topic Problems with the registration page in the forum Installing BuddyPress 11 years, 6 months ago
function show_xprofile_fields ( $user ) {
$field_value = xprofile_get_field_data( 'x', $user->ID, $multi_format = 'comma' );
echo "x: " . $field_value . '<br />'.
$field_value = xprofile_get_field_data( 'y', $user->ID, $multi_format = 'comma' );
echo "y: " . $field_value . '<br />'.
}
add_action( 'edit_user_profile', 'show_xprofile_fields'… -
shanebp replied to the topic Problems with the registration page in the forum Installing BuddyPress 11 years, 6 months ago
You don’t need to repeat the function, just add as many additional field calls as you want to the function.
-
shanebp replied to the topic Problems with the registration page in the forum Installing BuddyPress 11 years, 6 months ago
>am i missing something?
It would seem so, but I have no idea what it would be.
Did you adjust the code for your situation? -
shanebp replied to the topic How to add a link to Friends Tab subnav in the forum How-to & Troubleshooting 11 years, 6 months ago
Try this in plugins/bp-custom.php
-
shanebp replied to the topic Change login landingpage in the forum How-to & Troubleshooting 11 years, 6 months ago
Put this function in your theme/functions.php or plugins/bp-custom.php
And change ‘members’ to the slug of the page you want.
function custom_login_redirect_to($user_login, $user) {
bp_core_redirect( get_option('siteurl') . "/members/" );
}
add_action('wp_login', 'custom_login_redirect_to', 10, 2); -
shanebp replied to the topic Blocking members and IP's in the forum How-to & Troubleshooting 11 years, 6 months ago
@funmi-omoba
Thank you for mentioning our BuddyBlock plugin.@tim_marston
If you’re using BP 1.7 then BuddyBlock will do exactly this:
” each individual member to be able to block another member from seeing/contacting/interacting with them”.Re IPs – there are some WordPress plugins that get IPs for posts and comments.
But the best way is to…[Read more] -
shanebp replied to the topic Problems with the registration page in the forum Installing BuddyPress 11 years, 6 months ago
It’s easy to display profile fields in the Dashboard.
Editing the fields on that screen requires additional custom work.
If that is something you need, please go to
http://www.philopress.com/services/ -
shanebp replied to the topic Font Size for Groups/Comments in the forum Ideas 11 years, 6 months ago
You can adjust the font size via filters.
If you don’t know how to use apply_filters, then editing or over-riding the css is another approach.
Look for ‘mini’ and ‘acomment’.
For example, ‘mini’ can be found in
bp-themesbp-default_inccssresponsive.css
bp-themesbp-default_inccssdefault.css
bp-themesbp-default_inccssdefault-rtl.css -
shanebp replied to the topic @mentions show up on personal activity streams like they do here on BP.org? in the forum Creating & Extending 11 years, 6 months ago
In 1.7, you can adjust the activity query via a filter – so you don’t have to hack a core file.
Take a look at the bp_activity_get_user_join_filter hook in bp-activity-classes.php
In particular, the $where_sql -
shanebp replied to the topic Can buddypress do the following? in the forum Creating & Extending 11 years, 6 months ago
So you know how to code a plugin that creates and handles cpts ?
Then something like this in the plugin class:
add_action( 'bp_setup_nav', array( $this, 'bp_stories_tab' ), 5 );// create the tab
function bp_stories_tab() {bp_core_new_nav_item( array(
'name' => __( 'Stories', 'bp-member-stories' ),
'slug' => 'stories',
'position' =>…[Read more] -
shanebp replied to the topic Group Text Size in The Activity Stream in the forum How-to & Troubleshooting 11 years, 6 months ago
>Is this the way it is supposed to be?
Yes.
Why? I’ve no idea, but it’s a ‘design’ decision.You can filter the activity stream via bp-custom.
But probably be easier to locate the css that makes it smaller. -
shanebp replied to the topic Can buddypress do the following? in the forum Creating & Extending 11 years, 6 months ago
BP can’t do that out of the box.
You can extend it using custom post types.
No need to send them to wp-admin, they could create stories via a page within their profile.
Read and sort can be handled via the usual WP post functions, within or outside profiles. -
shanebp replied to the topic Custom User Role Doesn't Have Sufficient Privileges in the forum How-to & Troubleshooting 11 years, 6 months ago
Glad you got it sorted.
But ‘manage_options’ is a powerful cap.
I could see where you wouldn’t want to grant that cap to a custom role.Now that you can explain the issue, I suggest you submit a bug.
https://buddypress.trac.wordpress.org/ -
shanebp replied to the topic Custom User Role Doesn't Have Sufficient Privileges in the forum How-to & Troubleshooting 11 years, 6 months ago
Perhaps try using an existing role, like Editor, instead of a custom role ?
And add caps to that role? -
shanebp replied to the topic Custom User Role Doesn't Have Sufficient Privileges in the forum How-to & Troubleshooting 11 years, 6 months ago
also – some role editors are funky.
Make sure it’s not that plugin.
Use this to check if your custom role really has those caps:
https://wordpress.org/extend/plugins/members/ -
shanebp replied to the topic Custom User Role Doesn't Have Sufficient Privileges in the forum How-to & Troubleshooting 11 years, 6 months ago
Try giving them the ‘bp_moderate’ capabilities.
It seems edit_profile checks to see if it’s your profile or whether
bp_current_user_can( 'bp_moderate' ) || current_user_can( 'edit_users' )
so adding the ‘edit_users’ cap should work.See bp_core_can_edit_settings() in bp-members-functions.php
It may not be a bug, but you could find out by…[Read more]
-
shanebp replied to the topic [Resolved] Distorted Avatar in the forum Third Party Plugins 11 years, 6 months ago
In that plugin, you need to replace
echo get_avatar( $current_user->ID, $sl_options['avatar_size'] );
with this:
echo bp_core_fetch_avatar( array( 'item_id' => $current_user->ID, 'type' => 'full' ) );
- Load More
@shanebp
Active 1 hour, 20 minutes ago