| 
Welcome, Guest

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

TOPIC: Delimiter field to show ACL levels

Re:Delimiter field to show ACL levels 2 years, 11 months ago #90702

  • Posts:
  • Karma:
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
The topic has been locked.

Re:Delimiter field to show ACL levels 2 years, 11 months ago #90715

  • Posts:
  • Karma:
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.

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
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 2 years, 8 months ago #101514

  • Posts:
  • Karma:
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
The topic has been locked.

Re:Delimiter field to show ACL levels 2 years, 8 months ago #101732

  • Posts:
  • Karma:
Sorry to be a pain, any suggestions would be greatly appreciated as a client is really breakin' my balls!

Thanks,
Tim
The topic has been locked.

Re:Delimiter field to show ACL levels 2 years, 8 months ago #101945

  • Posts:
  • Karma:
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
The topic has been locked.

Re:Delimiter field to show ACL levels 2 years, 6 months ago #105265

  • Posts:
  • Karma:
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
The topic has been locked.
Time to create page: 0.72 seconds