Author Topic: adding user profile link  (Read 2062 times)

Offline tr1g3r

  • Newbie
  • *
  • Posts: 1
adding user profile link
« on: June 05, 2007, 08:08:20 AM »
Hi i'm using the 1-1-7 for my joomla and smf site. I was trying to add a update profile link on the login module. I added the code in mod_smf_login.php
Code: [Select]
$smf_profile = $params->get('smf_profile');
if ($smf_profile)
echo '<br />
<a href="', sefReltoAbs($scripturl. 'action=profile'),'">Update Profile</a>';

then i added this on mod_smf_login.xml
Code: [Select]
<param name="smf_profile" type="radio" default="1" label="Update Profile Link" description="Show/Hide SMF update profile link.">
<option value="0">Hide</option>
<option value="1">Show</option>

the problem is the code doesnt work and doesnt show the link. How can I add a new link on the login module? and I also tried to change the default value = 0 on the smf_loggedin_time but still it shows after logging in how can i change from show to hide? thank you in advance