Show links and notes to other admins?
w1ckd |
|
---|---|
Is there a tag who only display the content within for example <-- begin admin, for admins?
Found a plugin on the neocrome site but it is dead, Searched the cotonti site asswell witouth luck. Thanks in advanced. For our Freedom and Yours!
|
|
Відредаговано: w1ckd (20.06.2010 00:55, 13 років тому) |
Kingsley |
|
---|---|
<!-- IF {PHP.usr.id} == 90 -->
<!-- ELSE --> <!-- ENDIF --> works perfect for me, thx to somebody who pointed that out to me:) |
ez |
|
---|---|
@King,
This is for ONE person only namely the one with number 90 For complete groups use: <!-- IF {PHP.usr.maingrp} == 5 --> where 5 is the id for the admin group on your site (I think 5 is default the admin group) You can check this by going to: admin.php?m=users Hope this helps ==- I say: Keep it EZ -==
|
w1ckd |
|
---|---|
haha, red it somewhere but i tought this future was somehow disabled. very nice, thank you both for your comments;)
For our Freedom and Yours!
|
Kort |
|
---|---|
... and the oscar goes to
<!-- IF {PHP.usr.isadmin} --> SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
pieter |
|
---|---|
# Kingsley : works perfect for me, thx to somebody who pointed that out to me:) I guess it was Kort. He is amazing with those things. See post above. ... can we help you ...
|
GHengeveld |
|
---|---|
Note that {PHP.usr.isadmin} will also work for moderators (or anyone else with admin rights to that section), while {PHP.usr.maingrp} == 5 will only work for members in the admin group.
|
Kort |
|
---|---|
"Anyone else with admin rights" is admin
SED.by - создание сайтов, разработка плагинов и тем для Котонти
|
w1ckd |
|
---|---|
and what about guests? the maingroup doesnt respond on group 1?
Added 2 minutes later: wacky wacky,, coulda found it in the first place: <!-- IF {PHP.usr.id} == 0 --> For our Freedom and Yours!
|