Delimiter field to show ACL levels

12 years 7 months ago #90702 by sh0em0nkey
Replied by sh0em0nkey on topic Re:Delimiter field to show ACL levels
Hi Beat,

You probably know this, but it was not said in your post.

These substitutions also work in the language file.

Post edited by: sh0em0nkey, at: 2009/03/05 08:08

Please Log in to join the conversation.

12 years 7 months ago #90715 by beat
Replied by beat on topic Re:Delimiter field to show ACL levels
sh0em0nkey wrote:

Hi Beat,

You probably know this, but it was not said in your post.

These substitutions also work in the language file.

Post edited by: sh0em0nkey, at: 2009/03/05 08:08


Correct. B)

Thanks for reminding that.

Translations are always done before substitutions, so yes, even more powerful. :)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

12 years 4 months ago #101514 by timatsid
Replied by timatsid on topic Re:Delimiter field to show ACL levels
Hi Guys,

I'm trying to write the following if statement but have tried everything without success.

[IF "profile I'm viewing" IS "mine"] Then show this html

I have buttons in html I only want the owner of the profile to see.

I've tried these (& variations):


[cb:if user="#me"] Then show this html [/cb:if]

[cb:if user="id"] Then show this html [/cb:if]

[cb:if user="#me" user="displayed"] Then show this html [/cb:if]

[cb:if user="#me" username=[cb:userdata field="username" /]] Then show this html [/cb:if]


Any help would be greatly appreciate.

Thank you,
Tim

Please Log in to join the conversation.

12 years 4 months ago #101732 by timatsid
Replied by timatsid on topic Re:Delimiter field to show ACL levels
Sorry to be a pain, any suggestions would be greatly appreciated as a client is really breakin' my balls!

Thanks,
Tim

Please Log in to join the conversation.

12 years 4 months ago #101945 by timatsid
Replied by timatsid on topic Re:Delimiter field to show ACL levels
I was able to get a solution from someone which is:

[cb:if user_id = "myid"] Then show this html [/cb:if]

So if you only want to show things on a profile in tab positions to it's owner only, this code works.

P.S. Make the field type deliminator

Please Log in to join the conversation.

12 years 3 months ago #105265 by some1new
Replied by some1new on topic Re:Delimiter field to show ACL levels
beat wrote:

...

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...


Well, long time ago that statement. Is there any documentation available yet?

Regards
some1new

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.244 seconds

Facebook Twitter LinkedIn