XFileSharing Pro - <TMPL_IF admin> code

Message
Author
RockDiz
Posts: 135
Joined: May 05, 2011 4:47 pm

<TMPL_IF admin> code

#1 Postby RockDiz » Jun 29, 2011 2:06 am

Hello!
I need help finding out how to hide certain things when you're logged in as admin.
when you're logged in, you see certain things with <TMPL_IF admin>, now how do you hide stuff if you're logged in as admin?
thanks!
It'll be helpful if you can tell me how to hide stuff for reg users as well.
Thanks again!

applewar
Posts: 67
Joined: Feb 08, 2011 4:21 am

#2 Postby applewar » Jun 29, 2011 3:55 pm

<TMPL_IF admin>
your code, visible for admin only
</TMPL_IF>


<TMPL_IF premium>
your code, visible for premium only (invisible for your admin account if is regular account)
<TMPL_IF>

User avatar
PilgrimX182
Posts: 2187
Joined: Mar 22, 2006 1:39 pm

#3 Postby PilgrimX182 » Jul 01, 2011 1:31 pm

To hide from admin:

Code: Select all

<TMPL_UNLESS admin>...</TMPL_UNLESS>


To show for Reg only:
<TMPL_IF my_login>...</TMPL_IF>

kunc86
Posts: 20
Joined: Jul 26, 2010 5:06 am

#4 Postby kunc86 » Jul 04, 2011 10:18 am

hi,

how to show only unregistered user ? so registered user and premium user will not show.


Thank you

nyan
Posts: 163
Joined: Oct 28, 2010 8:01 pm

#5 Postby nyan » Jul 04, 2011 10:30 am

kunc86 wrote:hi,

how to show only unregistered user ? so registered user and premium user will not show.


Thank you

He just said that o-o
TMPL_UNLESS my_login

kunc86
Posts: 20
Joined: Jul 26, 2010 5:06 am

#6 Postby kunc86 » Jul 04, 2011 11:54 am

thankss

RockDiz
Posts: 135
Joined: May 05, 2011 4:47 pm

#7 Postby RockDiz » Jul 05, 2011 8:36 pm

PilgrimX182 wrote:To hide from admin:

Code: Select all

<TMPL_UNLESS admin>...</TMPL_UNLESS>


To show for Reg only:
<TMPL_IF my_login>...</TMPL_IF>


OMGGGG, thanks so muchh!! :D
this extra info would just bother me >_<


Return to “XFileSharing Pro”