adding user profile link

Started by tr1g3r, June 05, 2007, 08:08:20 AM

Previous topic - Next topic

tr1g3r

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

$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

<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>
</param>



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

Advertisement: