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 Auto Actions

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237194 by krileon
Replied by krileon on topic CB Auto Actions

Don´t you think this sounds contradictionary? I should not use it unless I know how to use it but you do not provide any documentation on how to use it. Weird.

It shouldn't be used by CB Auto Actions in nearly all cases as CB Auto Actions can't really do anything on it except possibly risking breaking field output. It's for custom plugins to alter field output. For example it's used by CB Privacy to remove field values when privacy doesn't match.

Well there are some weird things happening when I try to follow this advice. For this delimiter field you have suggested, I dont´t want the user to be able to search for it. Well basically this delimiter field should only show up in the userlist view. While the field the delimiter field relies on should appear on profile and on the search form.

Move it to a tab in a not shown on profile position. Then add the delimiter field to a column in your userlist. It now is only visible in userlist view. To remove its profile edit display use CB Privacy (CB 1.10 will have an option to disable edit display of a field). The field needs to be set to display on profile for it to show on userlist, but since its tab doesn't show on profile it won't be visible on profile.

2. When I use the IF statement in the delimiter field to validate a specific value from another field it seems that it will only return a result when the other field is visible. When I set the condition for the field to check on to "hide" and try to validate the value, then nothing gets returned. I would have expected the IF-statement to check on real value and not on visiblitiy. Or is there a way to tell the IF-statement to disregard the visibility state of the field?

The field needs to be API accessible for CB to grab its value. I'd have a better idea of what to suggest if you provide your substitution usage and what you want to accomplish with it.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 11 months ago - 10 years 11 months ago #237218 by KatoKalin
Replied by KatoKalin on topic CB Auto Actions

krileon wrote: It's for custom plugins to alter field output. For example it's used by CB Privacy to remove field values when privacy doesn't match.

Yeah right, but there is no documentation for plugin usage as well? Unless I have overlooked it.

krileon wrote: Move it to a tab in a not shown on profile position. Then add the delimiter field to a column in your userlist. It now is only visible in userlist view. To remove its profile edit display use CB Privacy (CB 1.10 will have an option to disable edit display of a field). The field needs to be set to display on profile for it to show on userlist, but since its tab doesn't show on profile it won't be visible on profile.

I will try that.

krileon wrote: The field needs to be API accessible for CB to grab its value. I'd have a better idea of what to suggest if you provide your substitution usage and what you want to accomplish with it.

I need to transform the search by value into a binary search. For some fields for my users it is only important to know if a field contains a value and not what value it is.
For example: A user has a field for his car: A BMW (to make this exciting)
For a user performing a search in my case it is only important to know if the field "car" has a value and not what value it is. So for the search form the user only ticks the box "car" and the search returns all users with field car not empty.
That is the first part of my requirement. Basically to transform the search into a binary search and not a search by value.

My second requirement is to make better use of the space within the userlist. So for some values I prefer displaying an image instead of the value term.
For example: When I have a select field that contains the value if a user has a pet. While the value for displaying in profile view and for registration would be "Yes I have a pet", for user list as due to the limited space it should only be a pet icon.
So I would need to show the field name and value for registration, for profile and for profile edit. But for userlist I want to display the delimiter field which would show the image. Of course in that case there would be no need to display the original field and its value.
So the problem is when I make a delimiter field with IF-statement depending on the original field and set conditional of the original field to hide on user list, then the delimiter field will not display too.
So I would need a way to be able to validate the original field despite of its state being hidden or being shown.
Last edit: 10 years 11 months ago by KatoKalin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237259 by krileon
Replied by krileon on topic CB Auto Actions

Yeah right, but there is no documentation for plugin usage as well? Unless I have overlooked it.

It's not documented, but we've several plugins utilizing it that provide good starting points/example. We've also our API documentation in the free downloads section that may help with creating your own custom plugin.

I need to transform the search by value into a binary search. For some fields for my users it is only important to know if a field contains a value and not what value it is.
For example: A user has a field for his car: A BMW (to make this exciting)
For a user performing a search in my case it is only important to know if the field "car" has a value and not what value it is. So for the search form the user only ticks the box "car" and the search returns all users with field car not empty.
That is the first part of my requirement. Basically to transform the search into a binary search and not a search by value.

The only way to do this is to completely replace the search functionality of a field (I don't recommend doing this) using a new CB plugin.

My second requirement is to make better use of the space within the userlist. So for some values I prefer displaying an image instead of the value term.
For example: When I have a select field that contains the value if a user has a pet. While the value for displaying in profile view and for registration would be "Yes I have a pet", for user list as due to the limited space it should only be a pet icon.

This is very doable with a delimiter field and an IF substitution to test the value of the field. If the value is a match then display the HTML you've supplied (could be an image tag, etc..).

Once the delimiter field is setup you move it to a tab that is in a not shown on profile position. Next you hide the tab or the field from profile edit using CB Privacy. This will allow you to use the delimiter field on your userlist without it displaying anywhere else. Note the field must still be set to display on profile, but it won't because its tab is in a hidden position.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 11 months ago - 10 years 11 months ago #237280 by KatoKalin
Replied by KatoKalin on topic CB Auto Actions

krileon wrote: This is very doable with a delimiter field and an IF substitution to test the value of the field. If the value is a match then display the HTML you've supplied (could be an image tag, etc..).

Once the delimiter field is setup you move it to a tab that is in a not shown on profile position. Next you hide the tab or the field from profile edit using CB Privacy. This will allow you to use the delimiter field on your userlist without it displaying anywhere else. Note the field must still be set to display on profile, but it won't because its tab is in a hidden position.

That is only one part of the solution. The delimiter field will show on the user list. But the original field shows up on user list as well. So when I try to hide the original field by using conditionals then the delimiter field loses the value too.
Last edit: 10 years 11 months ago by KatoKalin.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago #237322 by krileon
Replied by krileon on topic CB Auto Actions
Don't place the original field on the userlist. To have it searchable set your userlist to display every searchable field instead of only searchable fields on the userlist. With release of CB 1.10 this will be a little easier to accomplish as you'll be able to select exactly what searchable fields you want to display.


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
10 years 11 months ago - 10 years 11 months ago #237349 by KatoKalin
Replied by KatoKalin on topic CB Auto Actions
Ah I see. Removing it from the list did the trick. I never thought of that.

Can you finally give me a quick hint how to adjust the columns width of the userlist columns. I believe it is some CSS setting in the template?

Ah yes and by the way: For future releases it would be awesome to be able to adjust different display option from within a field. So I would not need a new extra field for simply showing an icon for a value. There shold be a way to set the display of the field including the name for each view seperately.
Last edit: 10 years 11 months ago by KatoKalin.

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

Moderators: beatnantkrileon
Powered by Kunena Forum