Show email in public profile Show email in public profile
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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