Profile item clickable Profile item clickable
 

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]

Main Menu

Profile item clickable

Started by seb123, December 19, 2005, 12:15:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

seb123

Hello all,

I filled in the optionel fields for the profile (example: e-mail and website). The e-mail and website is shown for the visitors in the profile and i want to make it clickable (website _blank and e-mail mailto:). How can i manage that?
Thanks!

Seb.

Nibbler

Find this array in profile.php


        $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,
            );


You should be able to use make_clickable() on the fields you want


        $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' => make_clickable($user_data['user_profile1']),
                        'user_profile2' => make_clickable($user_data['user_profile2']),
                        'user_profile3' => make_clickable($user_data['user_profile3']),
                        'user_profile4' => make_clickable($user_data['user_profile4']),
                        'user_profile5' => make_clickable($user_data['user_profile5']),
                        'user_profile6' => bb_decode($user_data['user_profile6']),
                        'user_thumb' => $quick_jump,
                        'pic_count' => $pic_count,
            );


If you want them to be _blank then you'll need to change the function itself, there are instructions already posted on how to do that.