Forums / Cotonti / Support / begin admin ??

Show links and notes to other admins?

w1ckd
#1 2010-06-20 00:24
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!
This post was edited by w1ckd (2010-06-20 00:55, 13 years ago)
Kingsley
#2 2010-06-20 02:17
<!-- IF {PHP.usr.id} == 90 -->

<!-- ELSE -->

<!-- ENDIF -->

works perfect for me, thx to somebody who pointed that out to me:)
ez
#3 2010-06-20 02:35
@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 :D
==- I say: Keep it EZ -==
w1ckd
#4 2010-06-20 03:27
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
#5 2010-06-21 04:34
... and the oscar goes to
<!-- IF {PHP.usr.isadmin} -->
SED.by - создание сайтов, разработка плагинов и тем для Котонти
pieter
#6 2010-06-21 14:23
# 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
#7 2010-06-24 04:24
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
#8 2010-06-24 12:58
"Anyone else with admin rights" is admin
SED.by - создание сайтов, разработка плагинов и тем для Котонти
w1ckd
#9 2010-06-28 04:24
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!