| 
Welcome, Guest

Delimiter field to show ACL levels
(1 viewing) (1) Guest

TOPIC: Delimiter field to show ACL levels

Delimiter field to show ACL levels 3 years ago #87455

  • Posts:
  • Karma:
Hi all,

wondering whether there is a delimiter field tag where you can pull and display a users ACL status (for eg. guest, registered , editor, premium member etc)

Thanks in advance
Bijou
The topic has been locked.

Re:Delimiter field to show ACL levels 3 years ago #87457

  • Posts:
  • Karma:
bijuhameed wrote:
Hi all,

wondering whether there is a delimiter field tag where you can pull and display a users ACL status (for eg. guest, registered , editor, premium member etc)

Thanks in advance
Bijou


This substitution works at any place where substitutions can be made:
[cb:userdata field="usertype" /]


Moreover you could display this info only for Super Administrators' eyes:

[cb:if user="#me" usertype="Super Administrator"]User of type: [cb:userdata field="usertype" /]  [/cb:if]


Here some additional possibilities:

[cb:if user="#me" user_id="0"]i am A GUEST[/cb:if]
 

Using raw data from database (we recommend cb:userfield instead, where possible, as that would be rendered content, instead of raw one):
 
The user [cb:userdata field="username" /] lives in [cb:userdata field="cb_citystate" /] and his name is: [cb:userdata field="name" /].
 

Again with cb:userfield: That would display the rendered field, not raw data
 
The user [cb:userfield field="username" /] lives in [cb:userfield field="cb_citystate" /] and his name is: [cb:userfield field="name" /].
 

Again with cb:userdata OF #me:
The user [cb:userdata field="username" user="#me" /] lives in [cb:userdata field="cb_citystate" user="62" /] and his name is: [cb:userdata field="name" user="#me" /].
 

NOW SEE IFS possible:
 
[cb:if username="trail"]This is Trail being displayed[/cb:if]
[cb:if user="#displayed" username="nant"]This is Nant being displayed[/cb:if]
[cb:if user="#me" username="trail"]This is Trail watching[/cb:if]
[cb:if user="#me" username="admin"]This is Admin watching[/cb:if]
[cb:if user="#me" username!="admin"]This is NOT Admin watching[/cb:if]
[cb:if user="#me" username!="admin" and sername!="nant"]This is NOT Admin and NOT nant watching[/cb:if]
 
 


Note that substitutions work in:
- delimiter fields
- fields titles
- fields, tabs and list titles and descriptions
- BUT NOT in field-contents (provided by users!)

- operators are supported: and / or
- comparators supported: = , !=, <, >, <=, >=

There is many more possibilities on that, and we are writing the documentation. Take the above as an apetizer.

CB 1.2 Stable required for the above.
Beat
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly
CB links: Subscribe to CB documentation - Our templates - Paid Subscriptions - Get Hosting - Our Forge - Incubator
Visit my CB Profile - Send me a Private Message (PM)
--
help us spend more time coding by helping others in this forum, many thanks
The topic has been locked.

Re:Delimiter field to show ACL levels 3 years ago #87460

  • Posts:
  • Karma:
Wow !

Cool !

Thanks a million

Bijou
The topic has been locked.

Re:Delimiter field to show ACL levels 3 years ago #87464

  • Posts:
  • Karma:

I knew some of the easy stuff, like [username]'s Profile in Title and stuff like that, but now I'm really excited to see what we can do!

Thanks Beat!
Jamie (Rapunzl)
Community Builder Team Member

Before posting on forums: Read all CB Articles | Specially the FAQ | Help us help you
CB links: Subscribe to CB documentation | Our templates | Paid Subscriptions | Get Hosting | Our Forge
Visit my CB Profile

My personal site Rapunzl's Reality always under reconstruction
The topic has been locked.

Re:Delimiter field to show ACL levels 3 years ago #87488

  • Posts:
  • Karma:
Don't want to hijack anything, but Is it possible to have several levels of users? Or atleast just have them in different user-types or groups?

THanks
The topic has been locked.

Re:Delimiter field to show ACL levels 3 years ago #87824

  • Posts:
  • Karma:
Hi,
I wander if possible to limit avatar tab just for "author" users for ex - I mean only author to be able to upload image and implicit have avatar displayed...but in users list (with config User Groups to Include in List:author ) if the list is access to:everybody, all site visitors to be able do view author users avatars in that list.

Extended...If I limit a tab just for author (I mean just author users to be able to input and edit data), to be able to display information from the fields included in that tab also in users list (with everybody acces).

Now if a limit tab just for author users, only author type of users can see that info in users list...and this is not practical.

Regards Mark

Post edited by: mserbanoiu, at: 2009/02/05 15:20
The topic has been locked.
Time to create page: 1.44 seconds