hi friends,
can someone tell me how can I add a login box in my website header?
anyone do It already?
XFileSharing Pro - Login box, how?
-
- Posts: 14
- Joined: Aug 24, 2009 9:51 pm
Code: Select all
<TMPL_IF my_login>
<b>Welcome <TMPL_VAR my_login> - <a href="<TMPL_VAR site_url>/?op=logout" class="logout"><TMPL_VAR lang_logout></a>
<TMPL_ELSE>
<form method="POST" action="<TMPL_VAR site_url>/" name="FL">
<input type="hidden" name="op" value="login">
<input type="hidden" name="redirect" value="<TMPL_VAR redirect>">
<table>
<tr>
<td><input class="username_input" type="text" name="login" value="<TMPL_VAR login>"></td>
<td> <input class="password_input" type="password" name="password"></td>
<td><input type="submit" value="Login" /></td>
</tr>
</table>
</form>
</b>
</TMPL_IF>
Last favor
Can you make possible to show also the Premium-Account expire date.
Like you said appears:
But that info only appears in the My Account page ;(
Any idea how to solve that in order to appear in all pages?
Can you make possible to show also the Premium-Account expire date.
Like you said appears:
I mean to show like that:Welcome: username
Logout
I tried to add this code from my_account.html into main.html:Welcome: username
Premium-Account expire: 11 February 2011
Logout
Code: Select all
<TMPL_IF premium>
<TMPL_VAR lang_prem_valid_until>: <b><TMPL_VAR premium_expire></b><input type="button" class="btn2" value="<TMPL_VAR lang_extend_account>" onClick="document.location='?op=payments'">
</TMPL_IF>
Any idea how to solve that in order to appear in all pages?