News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

Main Menu

Show email in public profile

Started by AfroJoJo, November 07, 2007, 06:58:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

AfroJoJo

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'),

    );

Sami

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
‍I don't answer to PM with support question
Please post your issue to related board

AfroJoJo