Replies
- Brajesh Singh on April 11, 2016 at 2:59 pm in reply to: [Resolved] BP Editable Activity and MediaPress #3449
Hi Leo,
Thank you for buying the plugin.The problem is people will expect to modify the listed media. The media is not stored as html, so it is not feasible for us to allow media list(It is stored as ids and generated content).
It is possible to allow editing the activity content with media though. If you want that please do let me know and I will update this plugin for the purpose.
Thank you
Brajesh - Brajesh Singh on April 10, 2016 at 5:39 pm in reply to: [Resolved] Disable New User Registration, Friend request etc. Email notification #3442
Hi Dandy,
Please disable the above code and WordPress email will start working.To disable the notifications for BuddyPress, we have a small plugin
https://buddydev.com/plugins/bp-default-email-notification-settings-control/Please use it. It will start taking preference for new users. To update for existing users, Please use the button at the bottom of settings page of this plugin and It will set the preference for all users.
Hope that helps. Please do let me know if it works for you or not?
Thank you
Brajesh - Brajesh Singh on April 10, 2016 at 9:38 am in reply to: [Resolved] Show new notification without having to refresh? #3440
Hi Alayna,
Ravi will be away for a few more hours, so I am posting here.Since you have different elements, you will need to bind to ‘bpln:new_notifications’ event in javascript and handle it as you wish.
Please see the code below to find what data you can access
https://github.com/sbrajesh/bp-live-notification/blob/master/assets/js/bpln.js#L128Hope that helps.
Regards
Brajesh - Brajesh Singh on April 10, 2016 at 9:32 am in reply to: [Resolved] Getting an error when trying to save Mediapress settings? #3439
Hi Alayna,
I am sorry for the inconvenience. Is there any chance that you network activated MediaPress?
I don’t see any reason why there will be an error like this except there is an empty setting throwing notice somewhere.Enabling WP_DEBUG will give you exact issue why it happened.
Please do let me know more details.
Thank you
Brajesh - Brajesh Singh on April 9, 2016 at 4:49 pm in reply to: [Resolved] Disable New User Registration, Friend request etc. Email notification #3429
Hi Dandy,
I am sorry, I was having some issues and could not reply back.Please put the following code in your bp-custom.php
//force BuddyPress to use wp_mail add_filter( 'bp_email_use_wp_mail', '__return_true'); //override wp_mail if ( ! function_exists( 'wp_mail' ) ) : function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) { //don't do anything } endif;It will stop all email. After you are done with importing, please make sure to remove the code snippet.
Thank you
Brajesh - Brajesh Singh on April 8, 2016 at 2:54 am in reply to: [Resolved] Passing field data with jQuery (or alternative) #3411
Hi Andrew,
Welcome to BuddyDev.Thank you for posting the question.
Though the javascript approach is fine, and I have also posted similar snippets earlier on our forum, Let us see another easy approach today.
Instead of doing things in javascript, Let us hide the fields you don’t need using css. I hope, yopu can do that step without my help(using display:none in css)
Now, Here is a fail-proof method. You will need to put this snippet in your bp-custom.php
function buddydev_check_update_signup_fields() { //you can access the superglobal $_POST and set values in it too //for example $_POST['field_1140'] = $_POST['field_960']; //and so on } add_action( 'bp_signup_pre_validate', 'buddydev_check_update_signup_fields' );Please give it a try and let me know if this works or not?
Thank you
Brajesh - Brajesh Singh on April 7, 2016 at 11:25 pm in reply to: Issuing @mention notifications to all users with Admin role #3409
Hi Kieran,
You are most welcome.If you plan local notifications, you will need to use bp_notifications_add_notification() to add new notification and please remember to register a dummy component to allow you format notifications for the users.
Please do let me know how it went, I will be happy to assist.
Thank you
Brajesh - Brajesh Singh on April 7, 2016 at 11:15 pm in reply to: Issuing @mention notifications to all users with Admin role #3406
Hi Kieran,
Welcome to BuddyDev.What kind of notification you want the users to be notified. Do you want the email notification or the local site notification( Using BuddyPress notification).
Here is some example code that will give you an start
function buddydev_handle_custom_mention( $activity, $args1=null, $arg2=null,$arg3=null, $user_id = false ) { //check if the $user_id is the specific user //if ye, Please use one of the strategies to notify users //to find users, you may use get_users() } add_action( 'bp_activity_sent_mention_email', 'buddydev_handle_custom_mention', 10, 5 );Hope that helps.
Regards
Brajesh- This reply was modified 9 years, 6 months ago by
Brajesh Singh.
- This reply was modified 9 years, 6 months ago by
- Brajesh Singh on April 7, 2016 at 11:07 pm in reply to: Not logging member in after signing up #3404
Hi Travis,
I will be doing some test today for existing users and will get back to you.
Thank you
Brajesh Hi Travis,
I have tested it on your site. It is either the caching or your theme that is causing it. Please try this plugin by disabling others and you will find the culprit.Thank you
Brajesh