XFileSharing Pro - custom design need to moving codes

Powerfull XFileSharing version

Moderator: admin

Message
Author
h.abdallah
Posts: 5
Joined: Sep 12, 2012 10:17 am

custom design need to moving codes

#1 Postby h.abdallah » Sep 12, 2012 12:46 pm

Image

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?

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#2 Postby trinsic » Sep 13, 2012 12:14 am

You need to use the TMPL_IF commands.

Code: Select all

<TMPL_IF my_login>

[user details code goes here]

<TMPL_ELSE>

[register - login code goes here]

</TMPL_IF>


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.

h.abdallah
Posts: 5
Joined: Sep 12, 2012 10:17 am

#3 Postby h.abdallah » Sep 13, 2012 8:29 am

can i repeat template if my login?
like that


<TMPL_IF my_login>

[code goes here]

</TMPL_IF>
--------------
<TMPL_IF my_login>

[code goes here]

</TMPL_IF>
----------------
<TMPL_IF my_login>

[code goes here]

</TMPL_IF>

trinsic
Posts: 149
Joined: Dec 21, 2009 9:24 am

#4 Postby trinsic » Sep 13, 2012 8:58 am

Yep you can use it as much as you like.


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests