On my download0 page I added a new button for user to register in order to download faster and without limitations.
Now when a user is logged and click on register he is directed to register page and not download1.
below is the code from download0.Can you please tell me what should i add in order for logged user to be redirect to download1 and hide the free button from a logged user because no longer applies to him since is registered already.
Code: Select all
<h2><TMPL_VAR lang_download_file> <TMPL_VAR file_name></h2>
<font style="font-size:12px;"><TMPL_VAR lang_you_requested> <font color="red"><TMPL_VAR site_url><TMPL_IF usr_add_login>/<TMPL_VAR usr_login></TMPL_IF>/<TMPL_VAR file_code>/<TMPL_VAR file_name></font> (<TMPL_VAR fsize>)</font>
<br>
<TMPL_INCLUDE comparison.html>
<br>
<Form method="POST" action=''>
<input type="hidden" name="op" value="download1">
<input type="hidden" name="usr_login" value="<TMPL_VAR usr_login>">
<input type="hidden" name="id" value="<TMPL_VAR file_code>">
<input type="hidden" name="fname" value="<TMPL_VAR file_name>">
<input type="hidden" name="referer" value="<TMPL_VAR referer>">
<div style="margin-left:43px; margin-top:0px">
<table width="930" cellspacing="0" cellpadding="0" border="0" style="border-collapse:collapse;border:none">
<tbody><tr>
<td width="180" valign="bottom" style="margin:6px;" rowspan="2">
<p style="margin-left:25px;"> </p>
</td>
<td width="138" valign="top" align="center">
<p style="margin-left:8px;"><input type="submit" value="Free Download" name="method_free"></p>
</td>
<td width="188" valign="top" align="center">
<p style="margin-left:38px;"><a href="http://domain.com/?op=registration"><img border="0" src="http://www.domain.com/images/dregister.jpg"></a> </p>
</td>
<td width="138" valign="top" align="center">
<p style="margin-left:13px;"><input type="submit" value="Premium Download" name="method_premium"></p>
</td>
</tr>
<tr>
<td width="480" valign="top" style="margin-left:10px;" colspan="3"> </td>
</tr>
</tbody></table>