Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

SBSubs Expiry Month in a field

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
7 years 10 months ago #292118 by AlanJones
SBSubs Expiry Month in a field was created by AlanJones
You guys helped me get some CB Subs info into a text field with AutoActions a while ago. I have another issue I need to solve.

I need to get the CBSubs expiry month (or the whole expiry date) into a text field. Is there some whay you know to do that?

Here's the auto action I used to get the subscription value in a text field: [cbsubs:if user="#displayed" plan="16"]1520[/cbsubs:if]
Is there any way I can adapt that to get the expiration date?

Own Your Own Community!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 10 months ago #292138 by krileon
Replied by krileon on topic SBSubs Expiry Month in a field
The CBSubs content prepare usage allows you to grab a good bit of information in regards to a users subscription. Edit "cbpaidsubsbot" within Extensions > Plugins then see the full description for what all is available. For your needs specifically the below can substitute in the expiration date.

[cbsubs:subscriptions plan="PLAN_ID_HERE" output="expiry_date" /]


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.

  • AlanJones
  • AlanJones
  • OFFLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
7 years 10 months ago #292150 by AlanJones
Replied by AlanJones on topic SBSubs Expiry Month in a field
So i was able to get the date to display in the field, but it is displaying my expiration date for everyones profile. How would i change the auto action so that displays the users expiration date that is being viewed?

Own Your Own Community!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48709
  • Thanks: 8319
  • Karma: 1447
7 years 10 months ago #292176 by krileon
Replied by krileon on topic SBSubs Expiry Month in a field

So i was able to get the date to display in the field, but it is displaying my expiration date for everyones profile. How would i change the auto action so that displays the users expiration date that is being viewed?

Add the user substitution variable to it as follows. Please ensure you've latest CBSubs though as this was only recently added.

[cbsubs:subscriptions user="#displayed" plan="PLAN_ID_HERE" output="expiry_date" /]


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: AlanJones

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

Moderators: beatnantkrileon
Powered by Kunena Forum