| View previous topic :: View next topic |
| Author |
Message |
RockDiz
Joined: 05 May 2011 Posts: 59
|
Posted: Jun 29, 2011 2:06 am Post subject: <TMPL_IF admin> code |
|
|
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! |
|
| Back to top |
|
 |
applewar
Joined: 08 Feb 2011 Posts: 72
|
Posted: Jun 29, 2011 3:55 pm Post subject: |
|
|
<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> |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Jul 01, 2011 1:31 pm Post subject: |
|
|
To hide from admin:
| Code: | | <TMPL_UNLESS admin>...</TMPL_UNLESS> |
To show for Reg only:
<TMPL_IF my_login>...</TMPL_IF> |
|
| Back to top |
|
 |
kunc86
Joined: 26 Jul 2010 Posts: 7
|
Posted: Jul 04, 2011 10:18 am Post subject: |
|
|
hi,
how to show only unregistered user ? so registered user and premium user will not show.
Thank you |
|
| Back to top |
|
 |
nyan
Joined: 28 Oct 2010 Posts: 121
|
Posted: Jul 04, 2011 10:30 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
kunc86
Joined: 26 Jul 2010 Posts: 7
|
Posted: Jul 04, 2011 11:54 am Post subject: |
|
|
| thankss |
|
| Back to top |
|
 |
RockDiz
Joined: 05 May 2011 Posts: 59
|
Posted: Jul 05, 2011 8:36 pm Post subject: |
|
|
| PilgrimX182 wrote: | To hide from admin:
| Code: | | <TMPL_UNLESS admin>...</TMPL_UNLESS> |
To show for Reg only:
<TMPL_IF my_login>...</TMPL_IF> |
OMGGGG, thanks so muchh!!
this extra info would just bother me >_< |
|
| Back to top |
|
 |
|