Search Results for 'notification user id'
-
AuthorSearch Results
-
July 28, 2018 at 6:23 pm #275474
Topic: How update default emal preference code ?
in forum How-to & Troubleshootingwebsite001
ParticipantHello friends
Got this code from buddydev website
for theme functions php
works, but newer versions of buddypress have
5 group options. This code covers 4.——————————————————————————————————
add_action( ‘bp_core_activated_user’,‘bpdev_set_email_notifications_preference’);
function bpdev_set_email_notifications_preference( $user_id ) {
//I am putting all the notifications to no by default
//you can set the value to ‘yes’ if you want that notification to be enabled.
$settings_keys = array(
‘notification_activity_new_mention’ => ‘no’,
‘notification_activity_new_reply’ => ‘no’,
‘notification_friends_friendship_request’ => ‘no’,
‘notification_friends_friendship_accepted’ => ‘no’,
‘notification_groups_invite’ => ‘no’,
‘notification_groups_group_updated’ => ‘no’,
‘notification_groups_admin_promotion’ => ‘no’,
‘notification_groups_membership_request’ => ‘no’,
‘notification_messages_new_message’ => ‘no’,
);foreach( $settings_keys as $setting => $preference ) {
bp_update_user_meta( $user_id, $setting, $preference );
}//that’s it. have fun!
}
———————————————————————————————————
This is the option it doesn’t cover—–
#5
“Your request to join a group has been approved or denied”Can anyone update this ? That would be awsome.
Thanks alot
buddypress 2.8.2
WordPress 4.7.5July 8, 2018 at 9:18 pm #275108MorgunovVit
ParticipantWordPress 4.9.7
BuddyPress 3.1.0
Theme: OceanWP (but the same problems with Twenty Seventeen v1.6.)Hi!
It seems that I am faced with a problem.
The new BuddyPress template called Nouveau, fails and stops displaying the navigation menu in the user profile and group profile. The block with the main navigation simply disappears (I mean navigation in which items such as Activity, Friends, Groups, etc. are displayed), only the sub navigation of the section remains.
I tried to disable all plugins, but navigation did not appear. Also, I changed the theme from the ocean to the WP on Twenty Seventeen – no results. And only after switching from Nouveau to the old BuddyPress template was the navigation displayed.
Could You help me, please?
Thanks!—————–
The List of using plugins:
BadgeOS Version: 1.4.11
BadgeOS BadgeStack Add-On Version: 1.0.1
BadgeOS Community Add-On Version: 1.2.4
BadgeOS LearnDash Add-On Version: 1.0.2
BadgeOS Suggested Achievements Add-On Version: 1.0.1
bbPress Version: 2.5.14
BuddyPress Version: 3.1.0
BuddyPress for LearnDash Version: 1.2.5
Elementor Version: 2.1.2
H5P Version: 1.10.3
LearnDash & bbPress Integration Version: 2.0.2.1
LearnDash Course Grid Version: 1.4.1
LearnDash LMS Version: 2.5.8.2
LearnDash LMS – Notifications Version: 1.2.0
LearnDash ProPanel Version: 2.1.3
Ocean Demo Import Version: 1.0.9
Ocean Extra Version: 1.4.17
SVG Support Version: 2.3.15
Tin Canny LearnDash Reporting Version: 2.9.3
Uncanny LearnDash Toolkit Version: 2.4.2
WP Translitera Version: p1.2.5June 24, 2018 at 9:04 pm #274684In reply to: Buddypress, Analytics & GDPR
knowitallninja
ParticipantHi @r-a-y
My apologies for responding so slowly. I didn’t get a response notification to my email for some reason.
As for Twitter. I’m not sure what they’re doing. I just know that Google Analytics are very clear that under GDPR no personally identifiable information should be passed in the URLs to Analytics and that usernames count as PII.
I had a look at that ticket. Unfortunately the code in there causes my member areas to not work. It does replace their usernames with their id numbers in the url, but the url isn’t functional.
So I guess my only option is to try that plugin to change all my users nicenames? That’s unfortunate. I really would hope the Buddypress developers would look into this as it is definitely an issue with Google Analytics conditions which I imagine many BP users do use.
I’ll give the nicenames plugin a go soon.
Thanks
May 31, 2018 at 3:40 am #273785ethanstein
ParticipantIt seems like parameters 6-8 are no longer being passed with the new version of buddypress?
This is my code which has been working:
function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string', $component_action, $component_name, $id ) { if ("wbp_party" === $component_name && is_user_logged_in()) { ... if ( 'string' === $format ) { $return = apply_filters( 'wbp_notification_filter','<a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link ); // Deprecated BuddyBar } else { $return = apply_filters( 'wbp_notification_filter_array', array( 'text' => $custom_text, 'link' => $custom_link ), $custom_link, (int) $total_items, $custom_text, $custom_title ); } return $return; } } add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 8 );May 28, 2018 at 7:32 pm #273713In reply to: Activation Emails are not being sent
filipponeri20
ParticipantThanks a lot @sharebophar for your solution. I had to do a little of adjustment but it was right on the spot!
PROBLEM:
buddypress nouveau not sending activation email but buddypress nouveau sending correctly emails to user for notifications on manually activated users. So in my case the problem was ONLY that the validation email was not sent. I say ‘only’ from a technical perspective but from the user perspective was a VERY BIG issue. Again thanks @sharebophar for your solution
Also note that I am not running a wordpress multisite.SOLVED:
Here are the steps I have employed:STEP 1
a) browse to “/bp-core/bp-core-functions.php” in buddypress plugin directory
b) replace the code for ‘core-user-registration’ and ‘core-user-registration-with-blog’ with the following one'core-user-registration' => array( /* translators: do not remove {} brackets or translate its contents. */ 'post_title' => __( '[{{{site.name}}}] Activate your account', 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>", 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}", 'buddypress' ), ), 'core-user-registration-with-blog' => array( /* translators: do not remove {} brackets or translate its contents. */ 'post_title' => __( '[{{{site.name}}}] Activate {{{user-site.url}}}', 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: <a href=\"{{{activate-site.url}}}\">{{{activate-site.url}}}</a>.\n\nAfter you activate, you can visit your site at <a href=\"{{{user-site.url}}}\">{{{user-site.url}}}</a>.", 'buddypress' ), /* translators: do not remove {} brackets or translate its contents. */ 'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account and site, go to the following link: {{{activate-site.url}}}\n\nAfter you activate, you can visit your site at {{{user-site.url}}}.", 'buddypress' ), ),STEP 2
a) go to wordpress dashboard, settings, buddypress
b) select and run the ‘repair email’ optionSTEP 3
all now works. I have been testing it with dummy users. I hope the whole explanation helps.
RegardsMay 23, 2018 at 2:56 pm #273390uncooluser
ParticipantHello everyone, I am new to BuddyPress, but I got it set up really fast and had it going.
Friends requests are shotty, if the user gets a notification for the friends request, and they hit “read” it will just remove the request entirely and make it impossible send, request,accept, or deny friendship and it remains in limbo.
Not sure how to repair those or make them revert or whatever to resolve the error but that’s one problem I am having.
The other problem is I am not able to upload an image to my profile without the image being ultra tiny and impossible to crop. You always end up with something weird, especially when using selfies.
Cover photos, also some trouble of their own, I would like to allow the cropping of those to happen rather than just having it but I think that’s on the other dev, not you guys.
Side question, how to I allow my members to upload custom background pictures to their profiles for the background of their feed and allow them to change the colors of their “activity blocks” so it doesn’t leave them with limited options of backgrounds?
Cheers!
Mostly the friends request thing is what I need help with.
May 12, 2018 at 9:38 pm #272960In reply to: Migrating from Ultimate Member 2 to Buddypress
Michael
ParticipantWordPress:
Version: 4.9.5
Language: en_US
Permalink Structure: /%postname%/
Active Theme: Tempera NoLink 0.6
Page On Front: Si Valetis, Valeo! (#62)
Page For Posts: Blog (#133)— Web Server Configurations —
PHP Version: 7.0.30
MySQL Version: 5.6.34
Web Server Info: Apache— PHP Configurations —
PHP Memory Limit: 256M
PHP Upload Max Size: 256M
PHP Post Max Size: 301M
PHP Upload Max Filesize: 256M
PHP Time Limit: 1000
PHP Max Input Vars: 1000
PHP Arg Separator: &
PHP Allow URL File Open: Yes— WordPress Active Plugins —
Akismet Anti-Spam: 4.0.3
Caldera Forms: 1.6.1.1
Category Posts Widget: 4.8.5
Category Sticky Post: 2.10.1
Cryout Serious Theme Settings: 0.5.9
Custom Login Page Templates: 1.0
Custom Sidebars: 3.1.4
Disable Emojis: 1.7
Download Monitor: 4.0.8
Google Analytics Dashboard for WP (GADWP): 5.3.3
GTranslate: 2.8.40
Jetpack by WordPress.com: 6.1
Plugins Garbage Collector: 0.10.3
Shortcodes Ultimate: 5.0.3
Simple:Press: 5.7.5.2
Simple Link Directory – Pro: 4.8.0
Team Members PRO: 4.1.1
The Events Calendar: 4.6.15
TinyMCE Advanced: 4.6.7
Ultimate Member: 2.0.13
Ultimate Member – Followers: 2.0.1
Ultimate Member – Friends: 2.0.1
Ultimate Member – Google reCAPTCHA: 2.0
Ultimate Member – Instagram: 2.0.1
Ultimate Member – MailChimp: 2.0.1
Ultimate Member – Notices: 2.0.1
Ultimate Member – Online Users: 2.0
Ultimate Member – Private Messages: 2.0.2
Ultimate Member – Profile Completeness: 2.0.1
Ultimate Member – Real-time Notifications: 2.0.1
Ultimate Member – Social Activity: 2.0.1
Ultimate Member – Social Login: 2.0.1
Ultimate Member – Terms & Conditions: 2.0
Ultimate Member – User Reviews: 2.0.3
Ultimate Member – User Tags: 2.0
Ultimate Member – Verified Users: 2.0.1
UM New Members widget: 1.0.7
UpdraftPlus – Backup/Restore: 2.14.8.1
VaultPress: 1.9.5
Wise Chat Pro: 1.9
WP-Optimize: 2.2.4
WP Responsive Recent Post Slider: 1.4.2
Yoast SEO Premium: 7.4.2May 5, 2018 at 6:22 am #272745In reply to: Disable Change Email Address?
Venutius
ModeratorThat’s wierd, I did post a reply, now it’s gone.
Here it is again:
function venutius_change_profile_settings_edit_tab() { if( bp_is_active( 'xprofile' ) ) : $access = bp_core_can_edit_settings(); $slug = bp_get_settings_slug(); $args = array( 'parent_slug' => $slug, 'subnav_slug' => $slug . '/notifications/', 'screen_function' => 'bp_settings_screen_notification', 'user_has_access' => $access ); bp_core_new_nav_default( $args ); bp_core_remove_subnav_item( 'settings', 'general' ); endif; } add_action( 'bp_actions', 'venutius_change_profile_settings_edit_tab' );May 2, 2018 at 2:18 pm #272606In reply to: Email solution
Varun Dubey
Participant@mrditt
You can switch in real time.
Mailgun will send email sent to WordPress or any other plugins including BuddyPress.
Mailgun has a free slot and paid stot, based on usages you can increase your plan.
When someone sends a message to Adam (just random username), Adam will get an email notification as well.You can find the doc here https://codex.buddypress.org/emails/
It will help you disable all bp emails, alter them and disable some emails based on their actions.April 30, 2018 at 6:55 am #272517In reply to: Email notification default settings
Varun Dubey
Participant@demiano You can try following codes inside your child theme functions.php or use code snippet plugin
add_action( 'bp_core_activated_user', 'wb_set_email_notifications_preference'); function wp_set_email_notifications_preference( $user_id ) { //I am putting all the notifications to no by default //you can set the value to 'yes' if you want that notification to be enabled. $settings_keys = array( 'notification_activity_new_mention' => 'no', 'notification_activity_new_reply' => 'no', 'notification_friends_friendship_request' => 'no', 'notification_friends_friendship_accepted' => 'no', 'notification_groups_invite' => 'no', 'notification_groups_group_updated' => 'no', 'notification_groups_admin_promotion' => 'no', 'notification_groups_membership_request' => 'no', 'notification_messages_new_message' => 'no', ); foreach( $settings_keys as $setting => $preference ) { bp_update_user_meta( $user_id, $setting, $preference ); } }April 28, 2018 at 10:41 pm #272492kwavewd
ParticipantSo here’s what I have done.
if I set it like this
$User_phone = get_userdata($r->user); $Worker_phone = get_userdata($r->worker); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID );and I set USER_PHONE and WORKER_PHONE in my email templates is shows the correct usernames or worker name of each user or worker in the emails so the shortcode setup works it’s just the data on the right .
so It would seem what need to be changed is this
'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login,but if I change to
$User_phone->user_login, to $wpdb->get_col(“SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $r->ID”),
you were missing the closing ” and I can’t put ; it has to be , at the end
it shows no errors just shows blank on the email.
here is the entire confirmation email template
<?php class Appointments_Notifications_Confirmation extends Appointments_Notification { /** * Send confirmation email to customer, admin and worker * * @param integer $app_id Appointment ID * * @return bool True if emails were sent */ public function send( $app_id ) { $appointments = appointments(); $app = appointments_get_appointment( $app_id ); if ( ! $app ) { return false; } $options = appointments_get_options(); $send_confirmation = 'yes' === $options["send_confirmation"]; $send_confirmation = apply_filters( 'appointments_send_confirmation', $send_confirmation, $app_id ); if ( ! $send_confirmation ) { return false; } $sent_to = array(); $customer_email = $app->get_customer_email(); $result = $this->customer( $app_id, $customer_email ); if ( $result ) { $sent_to[] = $customer_email; $admin_email = $appointments->get_admin_email(); if ( ! in_array( $admin_email, $sent_to ) && $this->admin( $app_id, $admin_email ) ) { $sent_to[] = $admin_email; } $worker_email = $appointments->get_worker_email( $app->worker ); if ( ! in_array( $worker_email, $sent_to ) ) { $this->admin( $app_id, $worker_email ); } return true; } return $result; } /** * Sends a confirmation email to the customer * * @param int $app_id Appointment ID * @param string $email Email to send to * * @return bool True if the email has been sent */ public function customer( $app_id, $email ) { $appointments = appointments(); $r = appointments_get_appointment( $app_id ); if ( ! $r ) { return false; } if ( ! is_email( $email ) ) { $this->manager->log( sprintf( __( 'Unable to notify the client about the appointment ID:%s confirmation, stopping.', 'appointments' ), $app_id ) ); return false; } $template = $this->get_customer_template( $app_id, $email ); if ( ! $template ) { return false; } $attachments = apply_filters( 'app_confirmation_email_attachments', '', $app_id ); $mail_result = wp_mail( $email, $template['subject'], $template['body'], $appointments->message_headers(), $attachments ); if ( ! $mail_result ) { return false; } $this->manager->log( sprintf( __('Confirmation message sent to %s for appointment ID:%s','appointments'), $r->email, $app_id ) ); do_action( 'app_confirmation_sent', $template['body'], $r, $app_id, $email ); return true; } /** * Send a confirmation email to admin * * @param $app_id * @param $admin_email * * @return bool */ public function admin( $app_id, $admin_email ) { $appointments = appointments(); $r = appointments_get_appointment( $app_id ); if ( ! $r ) { return false; } $disable = apply_filters( 'app_confirmation_disable_admin', false, $r, $app_id, $admin_email ); if ( $disable ) { return true; } if ( ! is_email( $admin_email ) ) { return false; } $template = $this->get_admin_template( $app_id ); if ( ! $template ) { return false; } $result = wp_mail( $admin_email, $template['subject'], $template['body'], $appointments->message_headers() ); if ( $result ) { do_action( 'appointments_confirmation_admin_sent', $admin_email, $app_id, $template['body'], $template['subject'] ); } return $result; } public function get_admin_template( $app_id ) { global $wpdb; $appointments = appointments(); $r = appointments_get_appointment( $app_id ); if ( ! $r ) { return false; } $customer_email = $r->get_customer_email(); if ( ! $customer_email ) { return false; } /*$provider_add_text = sprintf( __('A new appointment has been made on %s. Below please find a copy of what has been sent to your client:', 'appointments'), get_option( 'blogname' ) ); $provider_add_text .= "\n\n\n"; $subject = __('New Appointment','appointments');*/ /*Added by */ $options = appointments_get_options(); $subject = $options["confirmation_subject_artist"]; $provider_add_text = $options['confirmation_message_artist']; if($r->travel_type==2){ $address=$r->address; $travel_type="Photographer Travel to Me"; } else { $sql = "SELECT * FROM <code>wppl_friends_locator</code> where member_id=".$r->worker; $squad=$wpdb->get_results( $sql ); if($squad){ $address=$squad[0]->formatted_address; } else{ $address=""; } $travel_type="Travel to Photographer"; } $customerUser = get_userdata($r->user); $artistUser = get_userdata($r->worker); $User_phone = get_userdata($r->user); $Worker_phone = get_userdata($r->worker); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID ); $provider_add_text = $this->replace_placeholders( $provider_add_text, $args, 'confirmation-body', $r ); /*end Added by */ $body = $this->get_customer_template( $app_id, $customer_email ); return array( 'subject' => $subject, 'body' => $provider_add_text ); } public function get_customer_template( $app_id, $email ) { global $wpdb; $appointments = appointments(); $r = appointments_get_appointment( $app_id ); if ( ! $r ) { return false; } $options = appointments_get_options(); $body = $options['confirmation_message_customer']; if($r->travel_type==2){ $address=$r->address; $travel_type="Photographer Travel to Me"; } else { $sql = "SELECT * FROM <code>wppl_friends_locator</code> where member_id=".$r->worker; $squad=$wpdb->get_results( $sql ); if($squad){ $address=$squad[0]->formatted_address; } else{ $address=""; } $travel_type="Travel to Photographer"; } $customerUser = get_userdata($r->user); $artistUser = get_userdata($r->worker); $Worker_phone = get_userdata($r->worker); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'worker_phone' => $Worker_phone->user_login, 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID ); $body = $this->replace_placeholders( $body, $args, 'confirmation-body', $r ); $body = $appointments->add_cancel_link( $body, $app_id ); $body = apply_filters( 'app_confirmation_message', $body, $r, $app_id ); $subject = $options["confirmation_subject_customer"]; $subject = $this->replace_placeholders( $subject, $args, 'confirmation-subject', $r ); return array( 'subject' => $subject, 'body' => $body ); } }thank you again
April 28, 2018 at 9:53 pm #272487kwavewd
ParticipantI believe the user is is already pulled because we show username, links to profile pages in email template already.
There is a notification file but I already called USER_PHONE AND WORKER_PHONE. Correctly into this file.
$replacement = array( '/\bSITE_NAME\b/U' => wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ), '/\bCLIENT\b/U' => $args['user'], '/\bCUSTOMER_USERNAME\b/U'=> $args['customer_username'], '/\bARTIST_USERNAME\b/U' => $args['artist_username'], '/\bSERVICE_PROVIDER\b/U' => $args['worker'], '/\bSERVICE\b/U' => preg_replace( '/\$(\d)/', '\\\$$1', $args['service'] ), '/\bDATE_TIME\b/U' => mysql2date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $args['datetime'] ), '/\bORDER_ID\b/U' => $args['ID'], '/\bTRAVEL_TYPE\b/U' => $args['travel_type'], '/\bUSER_PHONE\b/U' => $args['user_phone'], '/\bWORKER_PHONE\b/U' => $args['worker_phone'],This basically sets the SHORTCODE for use in admin notification email template section.
I think I also need to add some code to the functions.php file of my theme. I see some other coding in functions.php from my past developer but it may not be related to the notification parts.
$profile_name=xprofile_get_field_data( 'Profile Name' , $user_id ); if($profile_name!=""){ global $wpdb; $query="select * from {$wpdb->prefix}bp_xprofile_data"; $phone=$wpdb->get_results($query); if(count($phone)>0){ $arr=array(); foreach($phone as $service){ $arr[]= $service->ID; $arr2=array( 'service_id' => $service->ID, 'provider_id' => $user_id, 'additional_price' => 0 ); $wpdb->insert( "{$wpdb->prefix}app_service_additional_price", $arr2); }I don’t understand how we can change this to bp_xprofile_data all I need to call at this point is the phone data id 206 and 7 the field title is Phone.
This is what I have in my confirmation template but not working error line user phone and worker phone
$User_phone = get_userdata($r->phoneuser); $Worker_phone = get_userdata($r->phoneworker); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'phoneuser' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id"); 'phoneworker' => $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id"); 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID );I also tried this which did not show errors but just didn’t work
$User_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 206 AND user_id = $user_id"); $Worker_phone = $wpdb->get_col("SELECT value FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 7 AND user_id = $user_id"); $args = array( 'user' => $r->name, 'customer_username'=>$customerUser->user_login, 'artist_username'=>$artistUser->user_login, 'service' => $appointments->get_service_name( $r->service ), 'worker' => appointments_get_worker_name( $r->worker ), 'datetime' => $r->start, 'price' => $r->price, 'deposit' => $appointments->get_deposit( $r->price ), 'phone' => $r->phone, 'user_phone' => $User_phone->user_login, 'worker_phone' => $Worker_phone->user_login, 'note' => $r->note, 'address' => $address, 'email' => $email, 'city' => $r->city, 'number_of_guest'=>$r->number_of_guest, 'travel_type'=>$travel_type, 'ID'=>$r->ID );April 27, 2018 at 7:21 pm #272451In reply to: Before I use BP, why not SocialEngine or Peepso?
Venutius
ModeratorHi Glenn,
I’ve never tried Peepso or Social Engine, so I@m not speaking from a point of balance. I have tried other dedicated hosted platforms such as Ning though so I do have some wider experience.
I think your issues can be boiled down into two areas: Maintenance, and features.
Any WordPress site, any site for that matter is going to require maintenance the main question is who does that maintenance, how well is it done and how quickly new issues can be resolved.
With a WordPress/BuddyPress installation I’d say that the level of maintenance that you yourself have to do (or pay for) is going to be higher than with peepso. Much depends on what features your add to the basic installation, in my experience in general WP and BP updates are solid and cause few issues, it’s usually the other plugins that can cause issues (prime eample recently was a SiteOrigin Page Builder update that wrecked my front page and they did not fix it for several months).
My expectation with Peepso is that what you sacrifice in the way of variety of options available to you I’d hope that in return the options you do get will be reasonably well integrated with each other and less likely to cause conflicts resulting in feature or site loss that you would need to take a hand in resolving. The downside is if you find there are specific feature you need, or issues that are not getting resolved, you have few alternatives to go to, you may find yourself stuck.
I once had a paid hosted site costing $50 per month which pretty much ground to halt and the provider refused to see the problem. It made me feel pretty helpless and it was the reason I moved to BuddyPress – I figured the money I saved on hosting I could use to fund feature additions to the basic BP setup.
Anyway getting back to the point, so I reckon peepso will be less maintenance but with less features, and this brings me on to the second point – features.
I think it would probably be a good idea to map out exactly which features you want in quite some detail and see how that drives your thoughts. For example you say you want video, would this be you hosting the video files or libraries of YouTube style embeds? Would you need group galleries, user galleries, sitewide gallery etc?
Here’s what I tend to use:
Chat – IfyChat – free version limited to 10 concurrent users but an excellent chat engine
Video/photos/audio – Either MediaPress or rtMedia, rtMedia is more stylish but add-ons are quite expensive.
Groups/xprofiles, activity, friends – BuddyPress.
News areas – probably more general workpress based solutions for this, are you thinking RSS feeds from other sites or internal news (could be done with a simple News category?).
Polls – never really looked at polls, I note there is this – https://themekraft.com/new-plugin-buddypress-polls/ for starters, looks interesting but I’ve not tried it.Regarding supporting mobile, BP is coming out with a new theme – BP Nouveau, this has options for vertical menus which I think will be a lot more mobile friendly.
The bulk of being mobile friendly comes down to the theme you are using and whilst most are responsive these days I personally find that having a mobile responsive theme is not good enough for phones, what I do is run a second mobile specific theme and use a theme switcher to detect and switch themes.
Another point to bear in mind with BP is that there are a great many plugins that help you choose how your site is going to work, there’s a range of plugins that change the may notifications and email subscriptions work. This is a benefit of BP, but it does also increase the plugin count.
April 26, 2018 at 2:23 pm #272421kwavewd
ParticipantHello I’m trying to Call Xprofile Field Data into the Appointments+ notification email
I have create an xprofile field with id 206 and I am also using WPMU appointments+ Within that there is a email notification template section where you can insert PlaceHolder code to pull the users info into the emails. They have some built in but I need to add a new one
I have made a new field and want to add USERS_PHONE to the placeholder system.
this is the code snippet im working in
$customerUser = get_userdata($r->user);
$artistUser = get_userdata($r->worker);$args = array(
‘user’ => $r->name,
‘customer_username’=>$customerUser->user_login,
‘artist_username’=>$artistUser->user_login,
‘service’ => $appointments->get_service_name( $r->service ),
‘worker’ => appointments_get_worker_name( $r->worker ),
‘datetime’ => $r->start,
‘price’ => $r->price,
‘deposit’ => $appointments->get_deposit( $r->price ),
‘phone’ => $r->phone,
‘note’ => $r->note,
‘address’ => $address,
’email’ => $email,
‘city’ => $r->city,
‘number_of_guest’=>$r->number_of_guest,
‘travel_type’=>$travel_type,
‘ID’=>$r->ID
);Now I’ve used <?php echo xprofile_get_field_data(‘206’); ?> and can show the info within a page template but do not know how to make the above code work. My disconnect is how to pull the xprofile data into this snippet and then call the data to show in the email. I will use USERS_PHONE in the email template to call the data
April 19, 2018 at 9:21 pm #272236In reply to: Assign Members Page
baccoeur
ParticipantHi
I have figure it out where the issue is i have checked this 3 components
PLease see screenshot
https://prnt.sc/j7k2k1So i can now assign my member page
http://prntscr.com/j7k7ufSo can you please give easy way instrutions or tutorial?
On How can i make this Please!1.Create Buddypress Community
*Users can create and update profiles, including the use of profile photos. Site administrators can easily set up the parameters of the user profiles.*Users can befriend one another. The site owner can decide what special abilities friends have with regard to one another.
*Users can send private messages. BuddyBoss comes with a robust private messaging system, similar to that found on Facebook. Users can choose whether or not to receive an email notification when someone sends them a message.
*Users can form and join groups. Groups can be used for a wide range of functions within the website. Administrators can choose to let their users create and join groups of common interest.
*Users can follow activity streams. BuddyPress activity streams provide a quick digest of the recent activity going on within a site or with regard to a particular user.
*Users can create blogs. Capitalizing on the full functionality of WordPress, the most popular blogging platform in the world, BuddyPress gives administrators and users a full-featured online publishing platform.
*Users can participate in forum discussions. BuddyPress is fully integrated with bbPress, a slick forum system.
2. Active Login portal with Facebook or Google login credentials.
3. Active User generated material through BuddyForms or other methods.Please advice thank you!
April 18, 2018 at 6:22 pm #272202In reply to: Fake Notifications Error
Ermejo
ParticipantTnx Vapvarun
It’s definitely Buddypress as the LMS wasn’t installed a few years ago when I started noticing them
With the LMS installed now, users cannot see the lessons their profile has these notifications
Any idea how to fix the issue?
Regards
Antonio
April 4, 2018 at 6:14 pm #271777d d
ParticipantI’m seeing the pattern now. Even in forums more than a decade old (and before @ mentions became a feature on many sites), people used @username even if it did nothing. This was simply shorthand for getting a specific person’s attention in a thread with many participants.
Looks as though BuddyPress is trying to be smart and pull these @ mentions from old content and add them to the activity stream. Since it’s a new addition to the activity stream, BuddyPress also thinks it’s new and therefore sends out an email notification. This is why it only affects old members.
Now… How do stop it?
Stopping notifications across the board is not a good idea. Even if I do it now and turn it back on later, we’ll never know when an old member might join us again. So really the only solution is to have BuddyPress stop importing old forum posting with the ‘@’ character into a new activity.
Still open to suggestions. Thanks.
March 7, 2018 at 5:01 am #271212In reply to: How display the notifications on header (colors)
Florian Bansac
ParticipantHi,
The term “Notifications” is included in the output of the $notif variable, as you can see here:
// condition: 0 unread notifications if($bpnotifcount == 0) { $notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>'; } else { $notif = '<li><a href=" ' .$url. ' ">Notifications <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>'; }There must be something in your WP theme preventing it to display, which you should modify.
Alternatively you may surround the “Notifications” mention in the function $notif with <span></span> tags, to which you can add your own css class or style, like this:
// condition: 0 unread notifications if($bpnotifcount == 0) { $notif = '<li><a href=" ' .$url. ' "><span class="your-notif-style">Notifications</span> <span class="notifmenucount">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>'; } else { $notif = '<li><a href=" ' .$url. ' "><span class="your-notif-style">Notifications</span> <span class="notifmenucount countnot0">'. bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) .'</span></a></li>'; }March 3, 2018 at 12:37 am #271158In reply to: Buttons Turn Grey when Hovering
orribu
ParticipantAh, forgot to answer these:
- WordPress ver. 4.9.4
- BuddyPress ver. 2.9.3
- Installation: Runs in main directory (public_html)
- Upgraded from WordPress ver. — I’m going to guess 4.9.3?
- Yep, WP was working fine. It still is, I just recovered it from a pretty bad PHP error. (disclaimer, I have NO idea how to PHP)
- Upgraded from bbPress 2.9.2
- Other Plugins: Akismet 4.0.3; bbpress 2.5.14; Blackhole for Bad Bots 1.8; Comment Mention Notifications 1.0.0; Custom Sidebars 3.1.2; Fancybox for WordPress 3.0.13; Jetpack 5.8; MailChimp 4.1.15; Maintenance 3.6.1; SiteOrigin Page Builder 2.6.2; Patreon for WordPress 2.6.2; Responsive Menu 3.1.13; Shortcodes Ultimate 5.0.3; SiteOrigin CSS 1.1.5; SiteOrigin Widgets Bundle 1.11.4; UpdraftPlus – Backup/Restore 1.14.4; User Role Editor 4.4; WooCommerce 3.3.3; WooCommerce Services 1.11.0; WordPoints 2.4.1; WP Super Cache 1.5.9; Yoast SEO 6.3.1
- Parent Theme: Rose
- I’ve uploaded the Rose theme and made a child theme. I’ve also altered wp-config.php to allow Multisite functionality.
- bbp-custom.php– I made one now! There are no functions.
- Hosted through BlueHost.
- Server OS: More than likely Linux (Apache).
Recent errors:
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162February 8, 2018 at 4:53 pm #270680In reply to: Problem with hotmail
JC
ParticipantOutllook.com are blocking the emails because of this:
if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== site_url( 'wp-login.php' ) ) { $user = get_user_by( 'email', $tokens['recipient.email'] ); $headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( bp_email_get_unsubscribe_link( array( 'user_id' => $user->ID, 'notification_type' => $email->get( 'type' ), ) ) ) ); }If yoy remove this if statement activation mails are sent. This code is located at buddypress/bp-core/bp-core.filters
It’s a new commit, that’s why it worked in previous versions.
To sum up, if you are using BuddyPress 2.9.3, users with Microsoft accounts will not receive the activation email.
February 8, 2018 at 4:51 pm #270679JC
ParticipantFirst sorry for my spelling in the above messages.
Outllook.com are blocking the emails because of this:
if ( ! empty( $tokens['unsubscribe'] ) && $tokens['unsubscribe'] !== site_url( 'wp-login.php' ) ) { $user = get_user_by( 'email', $tokens['recipient.email'] ); $headers['List-Unsubscribe'] = sprintf( '<%s>', esc_url_raw( bp_email_get_unsubscribe_link( array( 'user_id' => $user->ID, 'notification_type' => $email->get( 'type' ), ) ) ) ); }If yoy remove this if statement mails activation mails are sent. This code ir located ad buddypress/bp-core/bp-core.filters
It’s a new commit, that’s why it worked in previous versions.
To sum up, if you are using BuddyPress 2.9.3, users with Microsoft accounts will not receive the activation email.
I hope this get fixed in the next version.
February 1, 2018 at 6:09 pm #270528Carsten Lund
ParticipantHi there, thanks for your respond. The reason why I want to see my profile, is more a matter of having BP components like messages and notifications visible at all times, without adding them to the theme menu.
Another strange ting is BP’s redirection to the activity page, when activity component is active. Why does BP not allow users decide which page should be the landing page, when viewing own, and others profile?
And why do I need to install a third part plugin to have my profile as landing page after login?December 4, 2017 at 11:12 pm #269412In reply to: Custom BuddyPress email not always sending
bcanr2d2
ParticipantI am using WP Mail SMTP to get the mail to send without issues. But it seems to affect this particular email only, I am getting everything else as far as I am aware.
Here are my current active plugins – There is quite a long list.
I do use Autoptimize, so not sure if it’s affecting anything.
One of note, is Social Login, which when logging directs to their site, and redirects back to my site to log the user in via their social network, this is where it falls over and does not send this one email. It manages to send other emails related to the login, but it now gives me an idea to look into the code that sends this social email sign up notification.(BuddyDev) BP Auto Login on Activation (1.0.3)
Advanced Custom Fields (4.4.11)
Allow Multiple Accounts (3.0.4)
Autoptimize (2.2.2)
BP Profile Message UX Free (1.5)
BP xProfile Location (1.2)
BP XProfile WordPress User Sync (0.6.4)
BuddyDev Username Availability Checker (1.1.1)
BuddyExtender (1.0.1)
BuddyPress (2.7.4)
BuddyPress Member Type Generator (1.0.3)
BuddyPress Security Check (2.1.2)
BuddyPress Simple Terms And Conditions (1.3)
BuddyPress Xprofile Custom Fields Type (2.6.3)
BuddyPress Xprofile Member Type Field (1.0.4)
BuddyPress XProfile Validate with RegEx (0.1.2)
Cherry Parallax Plugin (1.1.0)
Cherry Plugin (1.2.8.1)
Child Theme Configurator (2.1.2)
Conditional Profile Fields for BuddyPress (1.1.9)
Contact Form 7 (4.6)
Contact Form 7 – Dynamic Text Extension (2.0.1)
Contact Form 7 Conditional Fields (1.0)
Contact Form 7 Get and Show Parameter from URL (0.9.7)
Contact Form 7 Honeypot (1.10)
Contact Form 7 Modules: Hidden Fields (2.0)
Contact Form 7 Shortcode Enabler (1.1)
Custom Hooks (1.0)
Custom Post Template By Templatic (1.0)
Custom Post Type UI (1.4.3)
Disable Comments (1.6)
Display Posts Shortcode (2.7.0)
FacetWP (2.7.4)
FacetWP – Map (1.0.5)
Flamingo (1.5)
GeoIP Detection (2.7.0)
GEO my WP (2.7)
Google Analytics Dashboard for WP (4.9.6.2)
List Plugins (1.4.4)
Meta Slider (3.4)
Optimize Database after Deleting Revisions (4.2.1)
Page-list (5.1)
PHP Compatibility Checker (1.4.0)
Popup Maker (1.4.20)
Shortcodes in Menus (3.2)
Social Login (5.2)
Stream (3.2.0)
String Locator (2.2.0)
Sucuri Security – Auditing, Malware Scanner and Hardening (1.8.3)
SuitePlugins – Advanced XProfile Fields for BuddyPress (1.0.3)
Theme Check (20160523.1)
Visual Builder for Contact Form 7 (2.0)
WPFront User Role Editor (2.13)
WP Mail SMTP (0.11.1)
WP Private Content Plus (1.13.1)
WP Smush (2.6.1)
Yoast SEO (4.3)December 3, 2017 at 6:29 am #269378In reply to: [Fixed] Groups Messages Disappear After Update
grimbot
Participantok.. it works again.. Not sure which step fixed it but here is what I did..
In the database area I clicked the Optimize, repair, and reset permission buttons.
In wordpress I cleared off some of the warning notifications I was getting about “Activity Stream” and “User Links” pages not having pages set for them..
I had those removed on purpose btw.
The code to hide the members directory doesn’t work anymore but someone said something about maybe being able to redirect traffic to that page to a password protected or otherwise restricted page.
So.. That should do it if you have the problem I did.. clear the page missing error for user links and activity and run the one click fixes on the database to reset permissions and such.
November 18, 2017 at 8:05 pm #269045In reply to: How to disable private message notification?
Boone Gorges
KeymasterThanks, @friendlygooners – I did read your previous post and visit your site, but what I’m saying is that I’m not sure what “mesage” or “notification” you are talking about. I currently see a partially-hidden item in the upper-right corner of the page, which ends in the sentence “Please reply if you are not a bot”. Is this the message that you are talking about?
If so, it appears that this element is created by your theme, Buddy. I don’t have access to the source of this theme, but I’m guessing that it uses some buggy logic to decide whether or not the notice should be shown. I’m unsure how to fix this bug in PHP because I can’t see the theme code. But you can hide this element with the following CSS:
.sidebar #message { display: none; }You may also want to add some styling so that the top menu doesn’t cover up your site’s content:
#content-wrapper { margin-top: 105px; }This may look different for logged-in users, so your mileage may vary.
-
AuthorSearch Results