-
shanebp started the topic [Resolved] template compat – override profile in the forum How-to & Troubleshooting 11 years, 5 months ago
BP 1.7.2
WP 3.5.1I’m trying to override the profile-loop.php template file.
I’ve tried:
/themes/headway/buddypress/members/single/profile/profile-loop.phpand
/themes/headway/buddypress/profile-loop.php
Client is using Headway Base theme and has their Community Builder plugin installed.
Everything works fine, except for overriding…[Read more] -
shanebp replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
echo get_the_author_id() first to make sure it has a value.
If it doesn’t, xprofile_get_field_data will return nothing.
also – If the profile field in question is empty, nothing will be returned.
-
shanebp replied to the topic How to sync BP user data w/ WP user data? in the forum How-to & Troubleshooting 11 years, 5 months ago
I’ve worked on sites using WishList and BP and have not seen an avatar issue.
So it’s probably an issue with the avatar path created by Profile Builder.
I’ve sent you an email.
-
shanebp replied to the topic Xprofile get field data checkbox returns array in the forum How-to & Troubleshooting 11 years, 5 months ago
To return a csv string rather than array, try:
xprofile_get_field_data( 'Specialist Sectors', get_the_author_id(), $multi_format = 'comma' )
-
shanebp replied to the topic Hide members from Members Directory in the forum How-to & Troubleshooting 11 years, 5 months ago
That approach is okay, but it’s post query.
Starting in 1.7 there are some pre_query hooks. And I think more in 1.8.
Those hooks are very handy, especially on big sites where performance is an issue.In this context, you would:
Gather all the ids in the stated range
And exclude them from the member query – take a look at the…[Read more] -
shanebp replied to the topic Hide Buddypress Profile based on Admin Field Value in the forum How-to & Troubleshooting 11 years, 5 months ago
While very doable, this will require custom coding.
You can contact me at PhiloPress -
shanebp replied to the topic Hide Buddypress Profile based on Admin Field Value in the forum How-to & Troubleshooting 11 years, 5 months ago
You need to state which versions of WP & BP you use.
You want to ‘hide’ the profile page for a member who hasn’t paid their dues?
What should happen if that page is accessed by that member or another member?
Redirect? Custom message page ?If ‘paid dues’ is a boolean, then it’s easy to write a function.
Where is that boolean stored?Does…[Read more]
-
shanebp replied to the topic [Resolved] Locking a website using bp-custom in the forum How-to & Troubleshooting 11 years, 5 months ago
Or use the unfiltered_uri, for example… `
function restrict_access(){
global $bp_unfiltered_uri;if ( !is_user_logged_in() && !bp_is_register_page() && !bp_is_activation_page() && ( $bp_unfiltered_uri[0] != ‘some-slug’) )
bp_core_redirect( get_option(‘home’) . ‘/register’ );}
add_action( ‘wp’, ‘restrict_access’, 3 );
` -
shanebp replied to the topic Multiple profiles under 1 email address in the forum Creating & Extending 11 years, 5 months ago
Try: https://wordpress.org/plugins/allow-multiple-accounts/
I’ve used it with BP 1.6.x.
-
shanebp replied to the topic Idea: Stopping Spammers with Sandbox in the forum How-to & Troubleshooting 11 years, 5 months ago
>how is this ‘too complicated’?
Can you code it?
How would you explain it to membership?>the user doesn’t know that they are in a sandbox
lol, and that won’t lead to a flurry of support submissions?For public sites, there has to be a balance between driving membership numbers and ‘protecting’ existing members.
An abuse / spam flag syste…[Read more] -
shanebp replied to the topic Idea: Stopping Spammers with Sandbox in the forum How-to & Troubleshooting 11 years, 5 months ago
Too complicated, imo.
Harnessing the membership for these kinds of things is a tried & proven technique.
In this context, provide a flagging system to bring activity to the attention of admins.
And provide content sweeping and IP blocking via htaccess for repeat offenders.
Not difficult to write.
I’ve done it for large BP sites and no doubt…[Read more] -
shanebp replied to the topic Display groups in member search in the forum How-to & Troubleshooting 11 years, 5 months ago
You don’t state which version of BP you’re using.
>as soon I start searching (whether it’s the name of the member, or part of the address) the groups-loop stops working.
If I understand you correctly, bp_has_groups doesn’t ‘work’ if you include search terms.
Perhaps it is working but the search terms are not being found, so no groups are b…[Read more]
-
shanebp replied to the topic Display groups in member search in the forum How-to & Troubleshooting 11 years, 5 months ago
>I also know the bp_get_member_user_id() is working perfectly inside the user-loop, so that shouldn’t be the issue either.
Classic mistake. Don’t assume – check it.
Create a string and echo it out.$user_id = bp_get_member_user_id();
echo 'user_id: ' . $user_id;$args = array(
'type' => 'alphabetical',
'user_id' => $user_id
);
if ( b…[Read more] -
shanebp replied to the topic Wishlist Member Integration in the forum Third Party Plugins 11 years, 5 months ago
There is no ‘paid level of support’ within this site.
BuddyPress has a very ‘internalized’ business model.You can post a call for developers here:
Be sure to include your contact info!
-
shanebp replied to the topic Adding Member Contact Info to All Members Directory Page in the forum How-to & Troubleshooting 11 years, 5 months ago
You may be interested in BuddyProfileData
-
shanebp replied to the topic more buddypress.org 'server issues' ? in the forum Requests & Feedback 11 years, 6 months ago
Thanks for the update, mercime.
Things definitely are not yet ‘back to normal’ but hopefully will be soon.
-
shanebp replied to the topic more buddypress.org 'server issues' ? in the forum Requests & Feedback 11 years, 6 months ago
[ check re ‘0 and 0’ re replies and voices ]
-
shanebp replied to the topic Features of BuddyPress in the forum Ideas 11 years, 6 months ago
For ‘expert web developers’
-
shanebp replied to the topic Cannot redeclare bp_get_groups_pagination_count() in the forum How-to & Troubleshooting 11 years, 6 months ago
To change the output, use the filter hook in
bp-groups-template.php -> bp_get_groups_pagination_count()return apply_filters( 'bp_get_groups_pagination_count', sprintf( __( 'Viewing group %1$s to %2$s (of %3$s groups)', 'buddypress' ), $from_num, $to_num, $total ) );
You can’t override functions unless they are…[Read more]
-
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
Using ‘scope’ will over-ride any filters, as noted in bp-activity-template.
There are various ways to makes this a function, but it depends on your install params, hooks etc.
Following on with your approach, try putting this (untested) at the top of the main activity template.
[Read more]
$user_id = bp_loggedin_user_id();
$following = array();
if (… - Load More
@shanebp
Active 18 hours, 21 minutes ago