Replies
- Brajesh Singh on April 7, 2018 at 10:36 am in reply to: Ajax registration – form has gone whacky #14330
Thank you Diana.
I am sorry for the delayed reply.
Please put this in your child theme
/** * Load on login page. */ function buddydev_login_load_ajaxr_styles() { wp_enqueue_style( 'bp-custom-ajaxr', get_stylesheet_directory_uri() . '/bp-ajax-register.css' ); } add_action( 'login_enqueue_scripts', 'buddydev_login_load_ajaxr_styles' );That will load the styles from your child theme on the wp-login.php page too and should fix the form.
Regards
Brajesh Hi Martin,
Thank you for clarifying.So, the problem lies with the bbPress generated content. Please allow me to test it today and get back to you later today/early tomorrow.
Thank you
Brajesh- Brajesh Singh on April 7, 2018 at 9:47 am in reply to: Activities : no storage, erase all activities automatically every year #14328
Hi Herve,
1. Please see https://buddydev.com/buddypress/disallowing-activity-recording-for-components-or-some-activity-types-in-buddypress/
2. You will need to replace the table and the year for each of the following instructions.
a). List all activities for a user
SELECT * FROM 'wp_bp_activity' WHERE YEAR(date_recorded) = 2016b). Delete for a year
DELETE FROM <code>wp_bp_activity</code> WHERE YEAR(date_recorded) = 2016c). List orphan activity meta
SELECT * FROM <code>wp_bp_activity_meta</code> WHERE activity_id NOT IN( SELECT id from wp_bp_activity )d). Cleanup the orphan meta
DELETE FROM <code>wp_bp_activity_meta</code> WHERE activity_id NOT IN( SELECT id from wp_bp_activity )All the above actions are destructive and it is strongly suggested to take database backup before them. Also, Manually deleting activity will cause other complications.
3. The less interesting needs to be quantified. How do you define something less interesting?
Regards
Brajesh Hi Jill,
Can you please link me to a page where I can see the Sidewide activity plugin in action?Thank you
BrajeshThank you Jill.
I am looking at it and will get back to you soon.Regards
BrajeshHi Monica,
Thank you for posting.
I have received your email regarding the same and have seen the site. I will get back to you with details via email as this task falls outside of our forum support here.Regards
BrajeshHi Madhavi,
No, there is no available way to automate it from WP Admin to Cpanel. It is possible to do so with the CPanel APi
https://documentation.cpanel.net/display/DD/Guide+to+cPanel+API+2
https://documentation.cpanel.net/display/DD/cPanel+API+2+Functions+-+SubDomain%3A%3AaddsubdomainThe time and effort does not justify it as it is a problem with hosting and putting temporary fix is not the right way to handle it.
Regards
BrajeshHi Ahmed,
Most probably this plugin https://buddydev.com/plugins/bp-private-message-rate-limiter/ can be used with a few hooks to accomplish the same. It does not directly integrate with the PMPro though.Regards
BrajeshHi Jill,
I am sorry for the inconvenience.Are you using any other plugin for posting to activity? Also, which theme are you using?
Regards
Brajesh- Brajesh Singh on April 6, 2018 at 8:21 pm in reply to: [Resolved] insert a value into my new xprofile numeric field #14316
Hi Herve,
You may use the following code/** * Set an xprofile field value on account activate. * * @param int $user_id user id. */ function buddydev_insert_preset_field_value( $user_id ) { $field_id = 794; xprofile_set_field_data( $field_id, $user_id, 4 ); } add_action( 'bp_core_activated_user', 'buddydev_insert_preset_field_value' );That will insert/update the field value when user account is activated.
Regards
Brajesh