RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

File mirror script

Newsletter script
<TMPL_IF admin> code

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
RockDiz



Joined: 05 May 2011
Posts: 59

PostPosted: Jun 29, 2011 2:06 am    Post subject: <TMPL_IF admin> code Reply with quote

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
View user's profile Send private message Visit poster's website
applewar



Joined: 08 Feb 2011
Posts: 72

PostPosted: Jun 29, 2011 3:55 pm    Post subject: Reply with quote

<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
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 2106
Location: UFO Lab

PostPosted: Jul 01, 2011 1:31 pm    Post subject: Reply with quote

To hide from admin:
Code:
<TMPL_UNLESS admin>...</TMPL_UNLESS>


To show for Reg only:
<TMPL_IF my_login>...</TMPL_IF>
Back to top
View user's profile Send private message Visit poster's website
kunc86



Joined: 26 Jul 2010
Posts: 7

PostPosted: Jul 04, 2011 10:18 am    Post subject: Reply with quote

hi,

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


Thank you
Back to top
View user's profile Send private message
nyan



Joined: 28 Oct 2010
Posts: 121

PostPosted: Jul 04, 2011 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
kunc86



Joined: 26 Jul 2010
Posts: 7

PostPosted: Jul 04, 2011 11:54 am    Post subject: Reply with quote

thankss
Back to top
View user's profile Send private message
RockDiz



Joined: 05 May 2011
Posts: 59

PostPosted: Jul 05, 2011 8:36 pm    Post subject: Reply with quote

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!! Very Happy
this extra info would just bother me >_<
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group