Forumlar / Cotonti / Support / question

Kingsley
#1 2010-05-22 20:01
I use

<!-- BEGIN: USER -->
<!-- END: USER -->

(don't know what it's called)
to display user content (like you didn't know that piece) but I need to display some more stuff only for a certain level and higher. I tried

<!-- BEGIN: ADMIN -->
<!-- END: ADMIN -->

But that didn't help

doesn't that ADMIN thingy work within

<!-- BEGIN: USER -->
<!-- END: USER -->

or am I doing something wrong?

can someone help me out?

Also tried to use that ADMIN part seperate from USER, but no succes, helas.
5uper Mario
#2 2010-05-22 21:33
Logic Blocks my Friend

http://www.cotonti.com/forums.php?m=posts&q=2305&d=0

Thought I remember there being a thread something like what you posted.
Though I could be wrong.

Anyways hope the above link works :)
Kort
#3 2010-05-22 22:08
<!-- IF {PHP.usr.id} == 0 -->
<p>You ARE NOT logged in!</p>
<!-- ELSE --> 
<p>You ARE logged in!</p>
<!-- ENDIF -->
That's guest/user. Groups are alike.
Using search could've helped.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Kingsley
#4 2010-05-22 22:10
Oke, so I think i can do it with:

<!-- IF {PHP.usr.profile.user_name} == "admin" -->

put my content here

<!-- ENDIF -->

can this part {PHP.usr.profile.user_name} be aimed at the usergroup? If so, what does the code need to be?

and will it work between

<!-- BEGIN: USER -->
<!-- END: USER -->

?

Added 1 minute later:

@ kort

Used search, but if I don't know the correct words, how can I find what I'm looking for?

I know noobs like me can irritate you with lame questions, and seeing your reaction on others lately, I guess you are getting fed up with noobs like me..
Try to remember though, that cotonti is a good system, which will attract other ppl than programmers too.
Personally I followed some other ppl from seditio to here, and am here from the beginning of Cotonti. Am not planning to leave either.. so please, if you are bored with answering questions, do not answer them anymore, but let ppl keep there value, even if it doesn't fit in your lane..
Kort
#5 2010-05-22 22:17
Sorry about that. Anyways, hope it helped you out.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
Kingsley
#6 2010-05-22 22:28
it did..

got it working, thanks!!