coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: AfroJoJo on November 07, 2007, 06:58:56 PM

Title: Show email in public profile
Post by: AfroJoJo on November 07, 2007, 06:58:56 PM
I tried messing with profile.php and can't get the email to show. Any ideas?

// profile mod test

$display_profile_form_param = array(

    array('text', 'username', $lang_register_php['username']),

    array('text', 'reg_date', $lang_register_php['reg_date']),

    array('text', 'group', $lang_register_php['group']),

    array('text', 'email', $lang_register_php['email]),

    array('text', 'user_profile1', $CONFIG['user_profile1_name']),

    array('text', 'user_profile2', $CONFIG['user_profile2_name']),

    array('text', 'user_profile3', $CONFIG['user_profile3_name']),

    array('text', 'user_profile4', $CONFIG['user_profile4_name']),

    array('text', 'user_profile6', $CONFIG['user_profile6_name']),

    array('text', 'pic_count', $lang_register_php['pic_count']),

    array('thumb', 'user_thumb'),

    );
Title: Re: Show email in public profile
Post by: Sami on November 08, 2007, 08:42:10 AM
Showing user's email to public is not a good idea, that makes spam trouble for them

BTW here is your answer

You need to change default part of switch statement too
change this

$form_data = array('username' => $user_data['user_name'],
            'reg_date' => localised_date($user_data['user_regdate'], $register_date_fmt),
            'group' => $user_data['group_name'],
                        'user_profile1' => $user_data['user_profile1'],
                        'user_profile2' => $user_data['user_profile2'],
                        'user_profile3' => $user_data['user_profile3'],
                        'user_profile4' => $user_data['user_profile4'],
                        'user_profile5' => $user_data['user_profile5'],
                        'user_profile6' => bb_decode($user_data['user_profile6']),
                        'user_thumb' => $quick_jump,
                        'pic_count' => $pic_count,
            );

with this

$form_data = array('username' => $user_data['user_name'],
            'reg_date' => localised_date($user_data['user_regdate'], $register_date_fmt),
            'group' => $user_data['group_name'],
            'email' => $user_data['user_email'],
                        'user_profile1' => $user_data['user_profile1'],
                        'user_profile2' => $user_data['user_profile2'],
                        'user_profile3' => $user_data['user_profile3'],
                        'user_profile4' => $user_data['user_profile4'],
                        'user_profile5' => $user_data['user_profile5'],
                        'user_profile6' => bb_decode($user_data['user_profile6']),
                        'user_thumb' => $quick_jump,
                        'pic_count' => $pic_count,
            );

I don't test this please confirm if it's working
Title: Re: Show email in public profile
Post by: AfroJoJo on November 08, 2007, 07:07:44 PM
Yes, it works. Thanks.

I am using Nibblers suggestion here as well.

http://forum.coppermine-gallery.net/index.php?topic=46130.0