Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Profile item clickable  (Read 3540 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.016 seconds with 19 queries.