What should I do if I want only one level to be restricted…Like if I want only level 0 then I can see only level 0…then in case of level 1 I can see only level1 not 0 and others, in case of level 2 can see only level 2 not 0 and 1…that is only one level will be show not any others…not even higher levels…
Restriction for higher levels
Use [s2If current_user_is(…)] condition instead [s2If current_user_can(…)].
where I have to put this code.??
These are “conditional tags”, they handle your content. Put them in your text, they will control who what can see. Read full description at “Dashboard -> s2Member -> API / Scripting”, there all the tags are shown with examples.