Skip to Content Skip to Menu

🏖 Summer has arrived! Start your summer right with our summer sale! Get 25% off professional and developer memberships with code SUMMER-2025!

Get value of additional users from plan sharing options

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 143
  • Thanks: 16
  • Karma: 1
1 month 3 weeks ago #341299 by wintercorn
It now shows on the subscription page correctly. Problem was user error - I change the word users to members but didn't change the text 

However I can't seem to show this in a field which I can then use elsewhere.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49403
  • Thanks: 8457
  • Karma: 1465
1 month 3 weeks ago #341302 by krileon
Those substitutions don't work outside of a subscription. You need to use them in CBSubs Fields and store them to a user field to use them externally.


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.

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 143
  • Thanks: 16
  • Karma: 1
1 month 3 weeks ago #341329 by wintercorn
OK, I can't spend any more time on this small feature.

Thank for your assistance so far.
 

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

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 143
  • Thanks: 16
  • Karma: 1
1 month 6 days ago #341431 by wintercorn
Sorry, this has come back.

I've tried various methods (mysql fields, php code, magic) to obtain the value shown as 3 in this screenshot but nothing works. Is there a way to get this value, store in a field and display for others to view? It's going on a profile where only admins can view it.

Thanks
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49403
  • Thanks: 8457
  • Karma: 1465
1 month 6 days ago #341433 by krileon

Is there a way to get this value, store in a field and display for others to view?

Yes. Create a field in CB > Field Management to hold the value. This can just be a text field or since it's an integer a number field would also be fine. Next using CBSubs Fields integration settings within your plan configure the following.

Integrations > CB Fields
Field: YOUR_FIELD_HERE
Operator: Set
Value: [PLAN_OPTS_OPTION_ADDITIONALUSERS]
Remove value on plan deactivation: Yes
Value on plan deactivation: 0

Now when someone subscribes that field will be updated with the value of the "additionalusers" option. You can then use it anywhere throughout your site as you would with any profile field. You mentioned earlier you renamed it to "members" from "users" though so be sure the substitution is correct. Basically put the name of whatever the option is after PLAN_OPTS_OPTION_ and it'll substitute it within CBSubs.


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.
The following user(s) said Thank You: wintercorn

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

  • wintercorn
  • wintercorn
  • OFFLINE
  • Posts: 143
  • Thanks: 16
  • Karma: 1
1 month 5 days ago #341434 by wintercorn
And that works beautifully. Thanks!
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum