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: Profile item clickable  (Read 3573 times)

0 Members and 1 Guest are viewing this topic.

seb123

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Profile item clickable
« on: December 19, 2005, 12:15:26 pm »

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.
Logged

Nibbler

  • Guest
Re: Profile item clickable
« Reply #1 on: December 19, 2005, 03:51:28 pm »

Find this array in profile.php

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

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

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' => 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.