-
Philippe replied to the topic BuddyPress Email Notification Ignoring SMTP Server Settings? in the forum How-to & Troubleshooting 5 years, 4 months ago
Thanks @shanebp, I have done that 😉 !
-
Cas Dekkers replied to the topic Changing BuddyPress Groups Slug in the forum How-to & Troubleshooting 5 years, 7 months ago
Hi @shanebp,
Thanks so much for your reply, this fixes my issue!
-
Kristian Yngve replied to the topic Deny access to admins profile not working in the forum How-to & Troubleshooting 5 years, 9 months ago
Test this, and it works! @shanebp, thank you for all your help in this – finally a resolution to this issue spanning 5 -6 years!
Thanks again.
-
Kristian Yngve replied to the topic Deny access to admins profile not working in the forum How-to & Troubleshooting 5 years, 9 months ago
It all works, thank you so much @shanebp!
so if there are more than one admin profiles, i can just use commas?
for eg:
function bpfr_hide_admins_profile() {
[Read more]
if( bp_is_user() && bp_displayed_user_id() == 1,2,3 && bp_loggedin_user_id() != 1,2,3 ) {
bp_core_redirect( site_url() );
}
}
add_action( 'bp_ready', 'bpfr_hide_admins_profile',… -
Bradley replied to the topic A Mess of Issues in the forum How-to & Troubleshooting 5 years, 11 months ago
@shanebp Youzer has worked fine for me. It’s recently these issues started happening. I’ve contacted Kaine Labs.
-
Christian Freeman (codelion) replied to the topic How to Disable ALL BuddyPress Emails in the forum Creating & Extending 6 years, 2 months ago
Nice, I didn’t know that the object could be passed in that way. Very cool indeed.
Also, I checked the
validate
method, and I found thebp_email_validate
filter that I can use to force it to fail the validation as…[Read more] -
Christian Freeman (codelion) replied to the topic How to Disable ALL BuddyPress Emails in the forum Creating & Extending 6 years, 2 months ago
Thanks for the super quick response @shanebp!
I did take a look at this filter, but in reviewing the BP_Email class, it would appear that this only disables the BP PHP Mailer templating system, but still sends the email using WP Mail.
I really want to prevent it from sending any BP Emails at all, whether through WP Mail, or the BP_Email…[Read more]
-
Boone Gorges replied to the topic Earliest point in registration I can know the user ID in the forum How-to & Troubleshooting 7 years ago
@almostsultry – It depends on your setup. By default, on Multisite, WP user objects are not created at ‘bp_core_signup_user’. By default, on non-Multisite, users *are* created at the time of registration (ie ‘bp_core_signup_user’). This behavior may be modified by other plugins, especially those that interact with the login process (like SSO…[Read more]
-
Boone Gorges replied to the topic Earliest point in registration I can know the user ID in the forum How-to & Troubleshooting 7 years ago
@shanebp is correct that you’ll need to choose a hook where the user ID is made available.
Unfortunately, ‘bp_core_signup_user’ may be too early. On some setups (specifically, most Multisite configs) no user has yet been created at ‘bp_core_signup_user’ – only a signup object. The earliest point when you can be confident that a WP user object…[Read more]
-
Boone Gorges replied to the topic Buddypress does not work right anymore in the forum How-to & Troubleshooting 7 years ago
To follow up on @shanebp‘s advice: It sounds like you’re experiencing problems with AJAX requests. AJAX requests are sent to wp-admin/admin-ajax.php, so your IP-based whitelist must exclude this URL. If your whitelist is built in PHP, something along the lines of the advice above will work. If it’s built in Apache or at the webserver level, be…[Read more]
-
Boone Gorges replied to the topic Custom tab and content on BP profile in the forum How-to & Troubleshooting 7 years ago
As @shanebp notes, adding the tabs themselves is pretty straightforward. In addition to
bp_core_new_nav_item()
etc, you might also look into the more all-encompassingBP_Component
class. See https://codex.buddypress.org/developer/bp_component/, https://codex.buddypress.org/developer/function-examples/core/bp_core_new_nav_item/.It’s the content…[Read more]
-
Georgio replied to the topic Add mentionname in group member directory in the forum How-to & Troubleshooting 7 years, 1 month ago
Thanks for your response, @shanebp
But it doesnt’t work. All I get is the @ symbol… -
Nahum replied to the topic Creating a Custom Component Without Plugin in the forum How-to & Troubleshooting 7 years, 6 months ago
@shanebp thanks for the reply
I was looking at the BP component references, even on your event simple plugin to get an idea…
If what I would like to do is just assign all my CPT comments tracking under a united CPT comments component or post component with all the different cpt post actions in one stream, I would need to create a different…[Read more]
-
Ashim Adhikari replied to the topic fetching specfic role users in the forum Requests & Feedback 7 years, 8 months ago
any solution?
-
Henry Wright replied to the topic City, State, Country Location Plugin in the forum Third Party Plugins 7 years, 8 months ago
Nice @shanebp!
Does the plugin support dependent fields? This kind of thing:
Town
City – auto populated based on value of Town
Country – auto populated based on value of Town -
Ashim Adhikari replied to the topic fetching specfic role users in the forum Requests & Feedback 7 years, 8 months ago
@shanebp , thanks .. just tried, and gives the same result.
-
Slava Abakumov replied to the topic BuddyPress Newsletter relaunched in the forum Miscellaneous 7 years, 9 months ago
@shanebp
I don’t see reasons against your suggestion. I will do that for future newsletter issues. -
Alex Stine replied to the topic User Meta Output On Profile in the forum Creating & Extending 7 years, 10 months ago
Hello
Thanks, I seemed to misread the codex. I did not realize the word “the” was not included. Here’s the code that did it for me in the end.
$member_id = bp_displayed_user_id();
[Read more]
$x = ( get_user_meta( $member_id, 'staff', true ) == '' ) ? "Staff" : get_user_meta( $member_id, 'staff', true );
echo '<div class="staff-label">';
echo… -
Alex Stine replied to the topic User Meta Output On Profile in the forum Creating & Extending 7 years, 10 months ago
Hello @shanebp,
I tried this code but it did not work. Anywhere I went wrong?
$member_id = bp_displayed_user_id();
[Read more]
$x = ( get_the_user_meta( 'staff', $member_id ) == '' ) ? "Staff" : get_the_user_meta( 'staff', $member_id );
echo '<div class="staff-label">';
echo $x ;
echo… -
Masoud replied to the topic [Resolved] is it possible to let users set a field only limited times? in the forum How-to & Troubleshooting 8 years, 5 months ago
@shanebp tnx a lot 😀
please mark this topic as resolved. i used your suggestion, and sorted it out. it’s ok now. - Load More
@shanebp
Active 2 hours, 19 minutes ago