Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Foren / Cotonti / Support / begin admin ??

Show links and notes to other admins?

w1ckd
#1 20. Juni 2010, 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!

Dieser Beitrag wurde von w1ckd (am 20. Juni 2010, 00:55, vor 12 Jahre) bearbeitet
Kingsley
#2 20. Juni 2010, 02:17
<!-- IF {PHP.usr.id} == 90 -->

<!-- ELSE -->

<!-- ENDIF -->

works perfect for me, thx to somebody who pointed that out to me:)
ez
#3 20. Juni 2010, 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 20. Juni 2010, 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 21. Juni 2010, 04:34
... and the oscar goes to
<!-- IF {PHP.usr.isadmin} -->
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти
pieter
#6 21. Juni 2010, 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 24. Juni 2010, 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 24. Juni 2010, 12:58
"Anyone else with admin rights" is admin
Seditio.by - создание сайтов, разработка плагинов и тем для Котонти
w1ckd
#9 28. Juni 2010, 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!