-
shanebp started the topic Group Banners plugin in the forum Third Party Plugins 10 years, 5 months ago
PhiloPress announces the release of a new premium plugin: BuddyGroupBanners
It allows Group Admins to upload a banner for their group.
Thanks to @mercime and @henrywright for thier feedback and suggestions.
-
shanebp replied to the topic Everything is unformated?! in the forum Installing BuddyPress 10 years, 5 months ago
What theme are you using?
Switch to a WP theme like TwentyTwelve and recheck the formatting.
-
shanebp replied to the topic Getting a value from one of the users xprofile fields in the forum How-to & Troubleshooting 10 years, 5 months ago
You don’t really need ‘prepare’ for a hard-coded query.
Your error is due to ‘prepare’ using of sprintf-like approach.
Read the codex: wpdbWhy use Select * when you only need ‘value’?
Why use get_row when you only need a single value? See ‘get_var’ in the link above.But why are you making a wpdb call?
If you’re not in the member loop or…[Read more]
-
shanebp replied to the topic [Resolved] Show only members with Avatars on Member Loop in the forum How-to & Troubleshooting 10 years, 6 months ago
Not a game changer, just requires (based on his code) a get_user_meta check.
-
shanebp replied to the topic [Resolved] Show only members with Avatars on Member Loop in the forum How-to & Troubleshooting 10 years, 6 months ago
>So I’m trying to do a member loop that shows only members with avatars.
And only members who have filled out ‘interests’.
Your code has some mistakes and unnecessary code.
I don’t know if this will help with the memory issue, but it should be a bit faster.
https://gist.github.com/shanebp/848d9c4e763fb0a51f2fPlease use a s…[Read more]
-
shanebp replied to the topic How to properly filter bp_member_avatar in the forum How-to & Troubleshooting 10 years, 6 months ago
$defaults aren’t being passed by the filter.
Try:
add_filter('bp_member_avatar', 'mm_hide_name_in_alt_text', 1);
function mm_hide_name_in_alt_text( $var ) {
var_dump( $var );
return $var;
}Then you should be able to tell what is being passed to the filter and adjust it accordingly.
You could also use the filters in…[Read more] -
shanebp replied to the topic Pulling from existing custom fields in the forum How-to & Troubleshooting 10 years, 6 months ago
[off-topic]
@henrywright – can you ping me via the addy in my profile? thanks.
-
shanebp replied to the topic New Members not Showing in Search in the forum How-to & Troubleshooting 10 years, 6 months ago
You can post a job here:
-
shanebp replied to the topic New Members not Showing in Search in the forum How-to & Troubleshooting 10 years, 6 months ago
You could:
1. filter the bp_ajax_querystring
2. filter BP_User_Query
3. For each member that you import, add an entry to the {$wpdb->prefix}bp_activity table. The entry ‘type’ = ‘last_activity’ and requires a timestamp. That will make them ‘active’.
I suggest that #3 is your best approach.
How you create the entry is mainly based on how…[Read more] -
shanebp replied to the topic overload template from plugin in the forum How-to & Troubleshooting 10 years, 6 months ago
Created a codex page: overload template part from plugin
-
shanebpdev updated the Template Overload from a Plugin page, on the BuddyPress Codex 10 years, 6 months ago
Note: overloading and / or adding templates from plugins can be quite complex. For more detailed discussion and examples, please see:
Upgrading older plugins that bundle custom templates for BP 1.7
Using BP […] -
shanebpdev updated the bp_get_template_part() page, on the BuddyPress Codex 10 years, 6 months ago
Use bp_get_template_part() when you want to filter a BuddyPress template part. You will need to pass your function three arguments ( $templates, $slug, $name ). The example below will swap out the activity.php […]
-
shanebpdev updated the BP_User_Query page, on the BuddyPress Codex 10 years, 6 months ago
BP_User_Query Class
The BP_User_Query class was introduced in BuddyPress 1.7 as part of making BuddyPress more scalable. The class lives at the top of bp-core/bp-core-classes.php.
Accepted […]
-
shanebp replied to the topic Custom field in admin groups backend in the forum Showcase 10 years, 6 months ago
Did you read this?
-
shanebp replied to the topic Translation fails only at "Sitewide Activity" in the forum How-to & Troubleshooting 10 years, 6 months ago
You can always submit a ticket at
https://buddypress.trac.wordpress.org/ -
shanebp started the topic overload template from plugin in the forum How-to & Troubleshooting 10 years, 6 months ago
Anyone know how to overload an existing BP 2.0 template from a plugin that is not creating a new component?
For example, overload this template – from a plugin:
buddypressbp-templatesbp-legacybuddypressmemberssinglemember-header.php[ And yes, I’ve read the codex articles by imath and r-a-y ]
-
shanebp replied to the topic Avatar of group in MySql Database in the forum Requests & Feedback 10 years, 6 months ago
It’s not stored in the database.
It’s in /wp-content/uploads/group-avatars/[group_id]/[…bpthumb or bpfull]
-
shanebp replied to the topic How add filter to bp_the_profile_group_field_ids? in the forum How-to & Troubleshooting 10 years, 6 months ago
danbp’s function works fine here.
Although in BP 2.0+, bp_is_profile_edit() should be bp_is_user_profile_edit() to avoid the deprecation notice.Are you sure you’re inserting the correct ids?
Try this and see if it hides the Name field:
$retval['exclude_fields'] = '1';
-
shanebp replied to the topic Nothing seems to work in the forum How-to & Troubleshooting 10 years, 6 months ago
Check your permalink settings and re-save them.
-
shanebp replied to the topic Creating subnav item to create a new group in the forum Creating & Extending 10 years, 6 months ago
You can force the link. Try:
bp_core_new_subnav_item( array(
‘name’ => ‘Create Virtual Village’,
‘slug’ => ‘create’,
‘parent_url’ => ‘groups’,
‘parent_slug’ => ‘groups’,
‘screen_function’ => ‘false’,
‘position’ => 50,
‘link’ => get_option(‘siteurl’) .…[Read more] - Load More
@shanebp
Active 6 hours, 55 minutes ago