Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Show email in public profile  (Read 2482 times)

0 Members and 1 Guest are viewing this topic.

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Show email in public profile
« on: November 07, 2007, 06:58:56 pm »

I tried messing with profile.php and can't get the email to show. Any ideas?

Code: [Select]
// 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'),

    );
« Last Edit: November 09, 2007, 05:54:32 am by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Show email in public profile
« Reply #1 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
Code: [Select]
$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
Code: [Select]
$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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

AfroJoJo

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Show email in public profile
« Reply #2 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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 16 queries.