XFileSharing Pro - custom design need to moving codes
-
- Posts: 5
- Joined: Sep 12, 2012 10:17 am
custom design need to moving codes
i made a custom header and i want to move some links
like login and register into header div
but when i do that it's still appear even if i logged in
any suggestions?
You need to use the TMPL_IF commands.
Basically if my_login is true then it means you're logged in and it'll show that code.
Otherwise it'll show the signup-login code instead.
Code: Select all
<TMPL_IF my_login>
[user details code goes here]
<TMPL_ELSE>
[register - login code goes here]
</TMPL_IF>
Otherwise it'll show the signup-login code instead.
-
- Posts: 5
- Joined: Sep 12, 2012 10:17 am
can i repeat template if my login?
like that
<TMPL_IF my_login>
like that
<TMPL_IF my_login>
Code: Select all
</TMPL_IF>
--------------
<TMPL_IF my_login>
[code goes here]
</TMPL_IF>
----------------
<TMPL_IF my_login>
[code goes here]
</TMPL_IF>