Forum Replies Created
-
Removed files from plugin in version 2.4.1
Odd, you should not have both files. Try to delete plugin and reinstall from .org
update coming today….
There is nothing like this. Would make a great plugin. BuddyPress allows people to request group membership for private groups. Change a group to private and the “join” group button becomes “request membership”
auto join plugin based on role https://www.buddyboss.com/purchase/buddypress-auto-group-join/
Sounds like a good plugin, since this is not a support request I will go ahead and close the topic. More info on filtering the loops https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/
There is no compare arg for activity parse args.
You’d have to use javascript for conditional fields that change based on selection.
Use this fork, fixed it
There is nothing wrong with using a plugin. Check WordPress .org for a plugin. If you insist and do not want to use a plugin you can check through the code to find out how they accomplished it
to check if on edit you can check the current action
if ( $field_name === 'Cost Per Hour' && 'edit' === bp_current_action() ) {
Your code worked for me on user profile and editing in admin
Make sure your registration slug is not “registration” or “signup” or any other guessable word. Change the slug frequently.
Scroll down to function bp_dont_save_minis. It’s an example to block saving types of activity. Only do this if you never want these items. Otherwise you’d want to filter out. Better for site speed to not save so a choice is up to you.
There isn’t an official API for BuddyPress. Development on API starting early January
install BuddyPress and only activate the Profile component.
There are some plugins, do a google search.
you can also use this code but you will get spam if they can get in without email conformation.
add_filter( 'bp_registration_needs_activation', '__return_false' );
I’m still confused, the code I gave you will add content above every 5th item. when you click load more it adds to the 5th item in the response.
If you have 20 items and you want every 5th item. then you can check array
function custom_markup_before_every_fifth_activity() { global $activities_template; $items = array( $activities_template->activities[4]->id, $activities_template->activities[9]->id, $activities_template->activities[14]->id, ); if ( in_array( $activities_template->activity->id, $items, true ) ) { echo '<li>'; echo '<div class="activity-content">'; echo 'place add code here'; echo '</div>'; echo '</li>'; } }; add_action( 'bp_before_activity_entry', 'custom_markup_before_every_fifth_activity' );
Fifth post? here’s what code looks like
heres some starter code
function custom_markup_before_every_fifth_activity() { global $activities_template; $item_5 = $activities_template->activities[4]; if ( $item_5->id === $activities_template->activity->id ) { echo '<li>'; echo '<div class="activity-content">'; echo 'place add code here'; echo '</div>'; echo '</li>'; } }; add_action( 'bp_before_activity_entry', 'custom_markup_before_every_fifth_activity' );
If you are using latest WordPres (4.7). Then use custom WP-API endpoint to post content from cross domain. https://developer.wordpress.org/rest-api/
You will have to authenticate somehow, preferably oauth. https://wordpress.org/plugins/rest-api-oauth1/
Try another browser, the zip from .org should not download to local. It could also be an issue if you installed BuddyPress from a one click installer. They sometimes create bad folder permissions.
in the admin, visit plugins, click add new, search “BuddyPress”, install then activate.
Not sure you can, BP email is not going through wp_mail. Could try to hook here https://github.com/buddypress/BuddyPress/blob/master/src/bp-core/classes/class-bp-phpmailer.php#L118
Not easily accomplished without coding knowledge.
If I were developing this I would not force a user to fill in a form before deleting account. You could send an exit email with a custom email https://codex.buddypress.org/emails/custom-emails.