Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Conditionals and Userlists

  • Lostpinky
  • Lostpinky
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 3 weeks ago - 11 years 3 weeks ago #234935 by Lostpinky
CB Conditionals and Userlists was created by Lostpinky
Hi Guys

I'm trying to setup a simple userlist with conditionals.

Now the below conditional is working

"If self (eg: 315p) value = 0 then hide"

Username: Lostpinky
Joined: 2 years ago
Game Name: Lostpinky
350r: 2
325a: 1
315p: -
300i: -

As you can see the value for 315p and 300i are hidden when they are 0 and shown for 350r and 325a when not 0.

I need the userlist to display the captions (field names) otherwise the data is useless but what i don't need is the field names for the hidden values. How can i fix this?

I'm using plain textfields for the fields
Last edit: 11 years 3 weeks ago by Lostpinky.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 3 weeks ago #234952 by krileon
Replied by krileon on topic CB Conditionals and Userlists
Only way to hide it entirely is turn off captions. The captions can't be hidden by CB Conditional. Only the values can.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Lostpinky
  • Lostpinky
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 3 weeks ago - 11 years 3 weeks ago #234980 by Lostpinky
Replied by Lostpinky on topic CB Conditionals and Userlists
ok forgive the ignorance this is my first run with conditionals...

Would a field delimiter situation work in this instance?

Reading through these forums it appears I could display the text field as i have it now

eg:

Name = Value
cb_300i = 1

then create a field delimter with something like

[title][cb_300i]

and then set the conditional on that field delimiter and show it or not show it in the userlist instead?
Last edit: 11 years 3 weeks ago by Lostpinky.

Please Log in or Create an account to join the conversation.

  • Lostpinky
  • Lostpinky
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
11 years 3 weeks ago #234981 by Lostpinky
Replied by Lostpinky on topic CB Conditionals and Userlists
this seems to work for the profile page and the profile edit page but i can't seem to get it working for the userlist.

Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 3 weeks ago #235001 by krileon
Replied by krileon on topic CB Conditionals and Userlists
That won't work. A delimiter field does not have a value. The userlist conditionals work by stripping the fields value from the user object and forcing it to null. Profile edit and profile view it can actually safely remove the field entirely, but on userlists such a usage can not be done.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum