Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-03T23:44:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2193 2011-11-03T23:44:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50969#p50969 <![CDATA[Re: Email Notification of profile updates]]>
<?php
add_action ('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
$user = new WP_User($vars['user_id']);
wp_mail ('me@me.com', 'Profile update- ' . $user->user_login, '
Username: ' . $user->user_login . '
Email: ' . $user->user_email . '
First Name: ' . $user->first_name. '
Last Name: ' . $user->last_name. '
Middle: ' . $user->ss_dbprefixs2member_custom_fields['middle'] . '
Suffix: ' . $user->ss_dbprefixs2member_custom_fields['suffix'] . '
');
}
?>

Custom fields need ss_dbprefixs2member_custom_fields! Thanks for all your help Cristian!

Statistics: Posted by mnads — November 3rd, 2011, 11:44 pm


]]>
2011-11-03T21:41:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50961#p50961 <![CDATA[Re: Email Notification of profile updates]]>
Code:
$user = new WP_User($vars['user_id']);
print_r($user); 

Statistics: Posted by Cristián Lávaque — November 3rd, 2011, 9:41 pm


]]>
2011-11-03T09:17:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50896#p50896 <![CDATA[Re: Email Notification of profile updates]]>
Username:
Email:
First Name:
Last Name:
middle:
Suffix:
Nickname:
status:
Chapter:
Grad:
Address:
City:
State:
Zip:
country:
main_phone:
secondary_phone_number:
facebook:
linkedin:
info:
terms:
And so on...

Statistics: Posted by mnads — November 3rd, 2011, 9:17 am


]]>
2011-11-02T23:55:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50867#p50867 <![CDATA[Re: Email Notification of profile updates]]> mysite_ prefix:

Code:
<?php
add_action 
('ws_plugin__s2member_during_handle_profile_modifications''email_profile_changes');
function 
email_profile_changes($vars = array())
{
    
$user = new WP_User($vars['user_id']);
    
wp_mail ('me@mydomain.com''Profile update - ' $user->user_login'
        Username: ' 
$user->wp_s2member_custom_fields['Username'] . '
        Email: ' 
$user->wp_s2member_custom_fields['Email'] . '
        First Name: ' 
$user->wp_s2member_custom_fields['First Name'] . '
        Last Name: ' 
$user->wp_s2member_custom_fields['Last Name'] . '
        middle: ' 
$user->wp_s2member_custom_fields['middle'] . '
        Suffix: ' 
$user->wp_s2member_custom_fields['Suffix'] . '
        Nickname: ' 
$user->wp_s2member_custom_fields['Nickname'] . '
        status: ' 
$user->wp_s2member_custom_fields['status'] . '
        Chapter: ' 
$user->wp_s2member_custom_fields['Chapter'] . '
        Grad: ' 
$user->wp_s2member_custom_fields['Grad'] . '
        Address: ' 
$user->wp_s2member_custom_fields['Address'] . '
        City: ' 
$user->wp_s2member_custom_fields['City'] . '
        State: ' 
$user->wp_s2member_custom_fields['State'] . '
        Zip: ' 
$user->wp_s2member_custom_fields['Zip'] . '
        country: ' 
$user->wp_s2member_custom_fields['country'] . '
        main_phone: ' 
$user->wp_s2member_custom_fields['main_phone'] . '
        secondary_phone_number: ' 
$user->wp_s2member_custom_fields['secondary_phone_number'] . '
        facebook: ' 
$user->wp_s2member_custom_fields['facebook'] . '
        linkedin: ' 
$user->wp_s2member_custom_fields['linkedin'] . '
        info: ' 
$user->wp_s2member_custom_fields['info'] . '
        terms: ' 
$user->wp_s2member_custom_fields['terms'] . '
        And so on...'
);
}
?>

Statistics: Posted by Cristián Lávaque — November 2nd, 2011, 11:55 pm


]]>
2011-11-02T18:32:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50841#p50841 <![CDATA[Re: Email Notification of profile updates]]>
Code:
<?php
add_action 
('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
    $user = new WP_User($vars['user_id']);
    wp_mail ('me@mydomain.com', 'Profile update - ' . $user->user_login, '
        Username: '
 . $user->mysite_wp_s2member_custom_fields['Username'] . '
        Email: '
 . $user->mysite_wp_s2member_custom_fields['Email'] . '
        First Name: '
 . $user->mysite_wp_s2member_custom_fields['First Name'] . '
        Last Name: '
 . $user->mysite_wp_s2member_custom_fields['Last Name'] . '
        middle: '
 . $user->mysite_wp_s2member_custom_fields['middle'] . '
        Suffix: '
 . $user->mysite_wp_s2member_custom_fields['Suffix'] . '
        Nickname: '
 . $user->mysite_wp_s2member_custom_fields['Nickname'] . '
        status: '
 . $user->mysite_wp_s2member_custom_fields['status'] . '
        Chapter: '
 . $user->mysite_wp_s2member_custom_fields['Chapter'] . '
        Grad: '
 . $user->mysite_wp_s2member_custom_fields['Grad'] . '
        Address: '
 . $user->mysite_wp_s2member_custom_fields['Address'] . '
        City: '
 . $user->mysite_wp_s2member_custom_fields['City'] . '
        State: '
 . $user->mysite_wp_s2member_custom_fields['State'] . '
        Zip: '
 . $user->mysite_wp_s2member_custom_fields['Zip'] . '
        country: '
 . $user->mysite_wp_s2member_custom_fields['country'] . '
        main_phone: '
 . $user->mysite_wp_s2member_custom_fields['main_phone'] . '
        secondary_phone_number: '
 . $user->mysite_wp_s2member_custom_fields['secondary_phone_number'] . '
        facebook: '
 . $user->mysite_wp_s2member_custom_fields['facebook'] . '
        linkedin: '
 . $user->mysite_wp_s2member_custom_fields['linkedin'] . '
        info: '
 . $user->mysite_wp_s2member_custom_fields['info'] . '
        terms: '
 . $user->mysite_wp_s2member_custom_fields['terms'] . '
        And so on...'
);
}
?>


These are the fields:
Username -non custom
Email-non custom
First Name -non custom
Last Name -non custom
-
middle-Text ( single line )
Suffix-Text ( single line )
Nickname -Text ( single line )
status-Select Menu ( drop-down )
Chapter-Select Menu ( drop-down )
Grad-Text ( single line )
Address-Textarea ( multi-line )
City-Text ( single line )
State-Select Menu ( drop-down )
Zip-Text ( single line )
country-Select Menu ( drop-down )
main_phone -Text ( single line )
secondary_phone_number-Text ( single line )
facebook -Text ( single line )
linkedin -Text ( single line )
info-Textarea ( multi-line )
terms-Checkbox ( single )

Statistics: Posted by mnads — November 2nd, 2011, 6:32 pm


]]>
2011-11-02T01:42:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50753#p50753 <![CDATA[Re: Email Notification of profile updates]]> Statistics: Posted by Cristián Lávaque — November 2nd, 2011, 1:42 am


]]>
2011-11-01T01:06:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=50671#p50671 <![CDATA[Re: Email Notification of profile updates]]>
I tried to use the code below and it broke my s2member:
Code:
    <?php
    add_action 
('ws_plugin__s2member_during_handle_profile_modifications''email_profile_changes');
    function 
email_profile_changes($vars = array())
    {
        
$user = new WP_User($vars['user_id']);
        
wp_mail ('me@me.net''Profile Update- ' $user->user_login'
        There has been an update to the user in the subject please verify. mysite.net/wp-login.php'
);
    }
    
?>

Statistics: Posted by mnads — November 1st, 2011, 1:06 am


]]>
2011-08-19T01:08:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=32378#p32378 <![CDATA[Re: Email Notification of profile updates]]>

Statistics: Posted by Cristián Lávaque — August 19th, 2011, 1:08 am


]]>
2011-08-18T17:11:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=32316#p32316 <![CDATA[Re: Email Notification of profile updates]]>
I have several databases on this server so I was using the full name as in
$user->atlymca_wrdp1_wp_s2member_custom_fields['street_address_1']

While all I need is:
$user->wp_s2member_custom_fields['street_address_1']

I didn't think about it but the rest is not needed as the correct database is already loaded :oops:

DP

Statistics: Posted by man-O-media — August 18th, 2011, 5:11 pm


]]>
2011-08-18T15:21:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=32310#p32310 <![CDATA[Re: Email Notification of profile updates]]> Statistics: Posted by Cristián Lávaque — August 18th, 2011, 3:21 pm


]]>
2011-08-18T13:16:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=32285#p32285 <![CDATA[Re: Email Notification of profile updates]]>
My implementation of this code is not working any more.
Cristián Lávaque wrote:
Code:
<?php
add_action 
('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');
function email_profile_changes($vars = array())
{
    $user = new WP_User($vars['user_id']);
    wp_mail ('me@mydomain.com', 'Profile update - ' . $user->user_login, '
        Address: '
 . $user->mysite_wp_s2member_custom_fields['street_address_1'] . '
                 '
 . $user->mysite_wp_s2member_custom_fields['street_address_2'] . '
        City: '
 . $user->mysite_wp_s2member_custom_fields['city'] . '
        And so on...'
);
}
?>



Did something change in the way one must reference s2member custom fields in a recent s2 update?

Thanks, DP

Statistics: Posted by man-O-media — August 18th, 2011, 1:16 pm


]]>
2011-03-19T22:19:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8033#p8033 <![CDATA[Re: Email Notification of profile updates]]>

(Please, don't forget to go rate s2Member over at WordPress.org! and report that your version combination works, ok? Thank you! http://wordpress.org/extend/plugins/s2member/)

Statistics: Posted by Cristián Lávaque — March 19th, 2011, 10:19 pm


]]>
2011-03-19T21:14:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8032#p8032 <![CDATA[Re: Email Notification of profile updates]]>
Cristián Lávaque wrote:
I'm glad it worked! :)

About the checkboxes, 1 means it was checked, empty means that it wasn't. You need to work with that when creating the email.

Code:
        Wants User Listing: ' . ($user->mysite_wp_s2member_custom_fields['wants_user_listing'] == 1 ? 'Yes' : 'No') . ' 



Oh boy, do I feel like an idiot...
The problem I was having is that neither of my True/False fields were even showing up with a 1, they were both blank but I just discovered that somehow I mistyped both so was trying to pull a "True" value out of thin air.
Now that I have the right field names, it all works.

I had actually setup a standard if statement to set some variables which, now that the field names are correct, does the trick but what you sent is pretty cool.

DP

Statistics: Posted by man-O-media — March 19th, 2011, 9:14 pm


]]>
2011-03-19T16:22:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8028#p8028 <![CDATA[Re: Email Notification of profile updates]]>

About the checkboxes, 1 means it was checked, empty means that it wasn't. You need to work with that when creating the email.

Code:
        Wants User Listing' . ($user->mysite_wp_s2member_custom_fields['wants_user_listing'] == 1 ? 'Yes' : 'No') . ' 

Statistics: Posted by Cristián Lávaque — March 19th, 2011, 4:22 pm


]]>
2011-03-19T15:45:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8027#p8027 <![CDATA[Re: Email Notification of profile updates]]>

so, I'm still learning about classes and objects, so I'm not sure if the formatting when accessing an array inside an object will be 100% correct, but we'll know after you try.


By George... Cristián, I do believe you got it :D
Most of the data is coming in so MANY THANKS for that !

Also, there doesn't seem to be any strange behavior like blank screens so I guess calling non-existant fields like in the previous version somehow confuses WP though the fact that the function was being called at all is odd.

Anyway, there is, at least at the moment, one incomplete thing.
Most of what I have are simple text fields but I have a two True/False "check box" data fields. Previously they were not populated but I populated them and nothing is returned.
This is the output of $user for a populated field: [wants_user_listing] => 1
The field contains no data for a false condition.

Any thoughts on that ?

DP

Statistics: Posted by man-O-media — March 19th, 2011, 3:45 pm


]]>
2011-03-19T12:02:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8024#p8024 <![CDATA[Re: Email Notification of profile updates]]>
About the error, I'm really sorry, due to the formatting of the print_r output I missed that street, etc., were inside an array.

Code:
<?php
add_action 
('ws_plugin__s2member_during_handle_profile_modifications''email_profile_changes');

function 
email_profile_changes($vars = array())
{
    
$user = new WP_User($vars['user_id']);

    
wp_mail ('me@mydomain.com''Profile update - ' $user->user_login'
        First Name: ' 
$user->first_name '
        Last Name: ' 
$user->last_name '
        Address: ' 
$user->mysite_wp_s2member_custom_fields['street_address_1'] . '
                 ' 
$user->mysite_wp_s2member_custom_fields['street_address_2'] . '
        City: ' 
$user->mysite_wp_s2member_custom_fields['city'] . '
        And so on...'
);
}
?>


Also, I'm still learning about classes and objects, so I'm not sure if the formatting when accessing an array inside an object will be 100% correct, but we'll know after you try. :P

Statistics: Posted by Cristián Lávaque — March 19th, 2011, 12:02 pm


]]>
2011-03-19T10:41:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8021#p8021 <![CDATA[Re: Email Notification of profile updates]]> With your code active, each time I create a new post, delete a post, etc, my screen goes blank and there is no further response. If I refresh the page it remains blank and no further response.
If I go 'back' in the browser and refresh the page I can see that the previous action was successful.

If I switch back to my old code, that issue goes away.

Nothing to do with you but this bothers me a bit as I would have expected the code only to be called when a profile modification actually occurs.
I wonder if Jason is monitoring this thread?

DP

Statistics: Posted by man-O-media — March 19th, 2011, 10:41 am


]]>
2011-03-19T01:03:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8013#p8013 <![CDATA[Re: Email Notification of profile updates]]> First Name: my First Name is delete
Last Name: My Last name is also delete

The other two fields, which are part of the s2member_custom_fields, have no data
Address:
City:
And so on...


DP

Statistics: Posted by man-O-media — March 19th, 2011, 1:03 am


]]>
2011-03-18T23:15:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8008#p8008 <![CDATA[Re: Email Notification of profile updates]]>
Code:
<?php
add_action 
('ws_plugin__s2member_during_handle_profile_modifications', 'email_profile_changes');

function email_profile_changes($vars = array())
{
    $user = new WP_User($vars['user_id']);

    wp_mail ('me@mydomain.com', 'Profile update - ' . $user->user_login, '
        First Name: '
 . $user->first_name . '
        Last Name: '
 . $user->last_name . '
        Address: '
 . $user->street_address_1 . '
                 '
 . $user->street_address_2 . '
        City: '
 . $user->city . '
        And so on...'
);
}
?>

Statistics: Posted by Cristián Lávaque — March 18th, 2011, 11:15 pm


]]>
2011-03-18T22:25:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8007#p8007 <![CDATA[Re: Email Notification of profile updates]]> I want wordpress to send an email to a department of the organization with most of a users info after they have updated their profile. The organization can then go in and manually update some other related documents with the new data.

In answer to your question, no, I do not want the output of print_r($user) to be in the email as it is too confusing. I included it in the last post simply to show that there really is data available. Mind you, if I try to put $user in the body, everything stops.

What I am working with right now is simply:
Code:
 <?php
add_action 
("ws_plugin__s2member_during_handle_profile_modifications", "email_profile_changes");

function email_profile_changes ($vars = array ())
{
     $user = new WP_User ($vars["user_id"]);
     // print_r($user); 
     // print_r($user->home_phone);

     wp_mail ('me@mydomain.com', 'Subject ( ' . $user->user_login . ' just updated their Profile )', 'Message Body goes here.' );
}
?>

The subject properly includes the users login.
What I would like to achieve in the body is a listing of all the fields a user can access when they update their profile so for example:
First Name: user first name
Last Name: user last name
Address: user address
City: user city
etc, etc, etc.

For the time being, I am using this code;
Code:
 <?php
add_action
("ws_plugin__s2member_during_handle_profile_modifications", "email_profile_changes");

function email_profile_changes(){
     global $current_user;     
     get_currentuserinfo
(); 

    wp_mail
("me@mydomain.com", $current_user->user_login  . " has updated their membership profile", " User Login: " . $current_user->user_login . "\n" .  "    User ID: " . $current_user->ID . "\n" . ' First Name: ' . $current_user->user_firstname . "\n" . '  Last Name: ' . $current_user->user_lastname . "\n" .  ' User email: ' . $current_user->user_email  );
}
?>

with it I can generate a decent enough email to clearly indicate who has just changed their profile but because all the fields are not included, it is necessary for the department people to log into wordpress and get the additional data which is what I want to avoid.

Thanks for sticking with me !!!

DP

Statistics: Posted by man-O-media — March 18th, 2011, 10:25 pm


]]>
2011-03-18T19:44:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=8002#p8002 <![CDATA[Re: Email Notification of profile updates]]>
Could you show me your code please? Put it between code tags, like this please:

[code=php]Your code here. [/code]

Statistics: Posted by Cristián Lávaque — March 18th, 2011, 7:44 pm


]]>
2011-03-18T19:11:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=7998#p7998 <![CDATA[Re: Email Notification of profile updates]]>

try $user->my_phone


I wish it was that simple...
For testing, if I for example use echo $user->user_login;
I get the correct user name sent to the screen

If I use echo $user->home_phone; AND
If I use print_r($user->home_phone);
I get no data on the screen which is at least an improvement in that the statement does not cause a crash.

My guess is that I need to more specifically refer to mysite_wp_s2member_custom_fields and then the specific field name but?

It is a bunch of stuff which is why I placed it at the bottom but as you can see from the results of print_r($user), home_phone contains 999-999-9999 so there is data, it is just a mater of the right syntax:
========================================================
WP_User Object ( [data] => stdClass Object ( [ID] => 7 [user_login] => delete2 [user_pass] => $P$BGVsKUyw39djl1M7m/ja28d/lo93efy [user_nicename] => delete2 [user_email] => me@mydomain.com [user_url] => [user_registered] => 2011

-03-10 13:50:40 [user_activation_key] => [user_status] => 0 [display_name] => delete2 [first_name] => my First Name is delete [last_name] => My Last name is also delete [nickname] => delete2 [description] => [rich_editing] => true

[comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [aim] => [yim] => [jabber] => [mysite_wp_capabilities] => Array ( [s2member_level2] => 1 ) [mysite_wp_user_level] => 0 [mysite_wp_s2member_custom_fields] => Array (

[street_address_1] => delete Stereet Adressx [street_address_2] => [city] => Atlanta City [state] => GA [zip] => 12222 [home_phone] => 999-999-9999 [work_phone] => [cell_phone] => [wants_weekly_news] => [emergency_phone] =>

[wants_user_listing] => [directory_name] => [secondary_email] => [mail_address_1] => [mail_address_2] => [mail_city] => [mail_state] => [mail_zip] => ) [default_password_nag] => 1 [mysite_wp_s2member_notes] => Demoted by

s2Member: Fri Mar 11, 2011 12:04 am UTC Demoted by s2Member: Fri Mar 11, 2011 1:44 am UTC [mysite_wp_s2member_paid_registration_times] => Array ( [level] => 1299768460 [level2] => 1299768460 )

[mysite_wp_s2member_auto_eot_time] => 1300838400 [show_admin_bar_front] => true [show_admin_bar_admin] => false [user_level] => 0 [user_firstname] => my First Name is delete [user_lastname] => My Last name is also delete

[user_description] => ) [ID] => 7 [id] => 7 [caps] => Array ( [s2member_level2] => 1 ) [cap_key] => mysite_wp_capabilities [roles] => Array ( [0] => s2member_level2 ) [allcaps] => Array ( [read] => 1 [level_0] => 1 [access_s2member_level0] =>

1 [access_s2member_level1] => 1 [access_s2member_level2] => 1 [s2member_level2] => 1 ) [first_name] => my First Name is delete [last_name] => My Last name is also delete [filter] => [user_login] => delete2 [user_pass] => $P

$de56ws94otljs237^wl(t/hzytfd61 [user_nicename] => delete2 [user_email] => user@mysite.com [user_url] => [user_registered] => 2011-03-10 13:50:40 [user_activation_key] => [user_status] => 0 [display_name] => delete2 [nickname] =>

delete2 [description] => [rich_editing] => true [comment_shortcuts] => false [admin_color] => fresh [use_ssl] => 0 [aim] => [yim] => [jabber] => [mysite_wp_capabilities] => Array ( [s2member_level2] => 1 ) [mysite_wp_user_level] => 0

[mysite_wp_s2member_custom_fields] => Array ( [street_address_1] => delete Stereet Adressx [street_address_2] => [city] => New York City [state] => NY [zip] => 12222 [home_phone] => 999-999-9999 [work_phone] => [cell_phone] =>

[wants_weekly_news] => [emergency_phone] => [wants_user_listing] => [directory_name] => [secondary_email] => [mail_address_1] => [mail_address_2] => [mail_city] => [mail_state] => [mail_zip] => ) [default_password_nag] => 1

[mysite_wp_s2member_notes] => Demoted by s2Member: Fri Mar 11, 2011 12:04 am UTC Demoted by s2Member: Fri Mar 11, 2011 1:44 am UTC [mysite_wp_s2member_paid_registration_times] => Array ( [level] => 1299768460 [level2] =>

1299768460 ) [mysite_wp_s2member_auto_eot_time] => 1300838400 [show_admin_bar_front] => true [show_admin_bar_admin] => false [user_level] => 0 [user_firstname] => my First Name is delete [user_lastname] => My Last name is also

delete [user_description] => )
========================================================
DP

Statistics: Posted by man-O-media — March 18th, 2011, 7:11 pm


]]>
2011-03-18T00:15:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=7965#p7965 <![CDATA[Re: Email Notification of profile updates]]> $user with an array, but it's an object...

Instead of $user['my_phone'], try $user->my_phone.

Statistics: Posted by Cristián Lávaque — March 18th, 2011, 12:15 am


]]>
2011-03-17T19:01:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=7961#p7961 <![CDATA[Re: Email Notification of profile updates]]>
You are correct, my_phone is simply one custom data field contained in the array of custom data fields so no, I can not print_r my_phone directly but yes, I can print_r($user).
In that case (I can't look at the display at the moment) but inside the collection of some 25 custom fields of data is something like my_phone => 999-999-9999

And indeed, this is where my problem is coming in, getting at just the plain text in the various fields and why I was trying to use your suggestion of $user['my_phone']


Daine

Statistics: Posted by man-O-media — March 17th, 2011, 7:01 pm


]]>
2011-03-17T18:26:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2193&p=7959#p7959 <![CDATA[Re: Email Notification of profile updates]]> print_r will work with arrays only, and $user['my_phone'] is most probably not one.

Are you sure you have 'my_phone' in user? If you print_r($user) (the line you have commented out there), do you see 'my_phone' in the output?

Statistics: Posted by Cristián Lávaque — March 17th, 2011, 6:26 pm


]]>