Profile item clickable Profile item clickable
 

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

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.