Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: tr1g3r on June 05, 2007, 08:08:20 AM

Title: adding user profile link
Post by: tr1g3r 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

$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