forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: seb123 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.
-
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.