CBSubs Substitutions inside Profile Custom HTML Field

1 month 2 weeks ago #326150 by marriage_minded_man
CBSubs Substitutions inside Profile Custom HTML Field was created by marriage_minded_man
I'm trying to display a bunch of data on a user's profile, that would include CBSubs expiry data. So I am creating a Custom HTML Field on a Profile tab and formatting it the way I need it.

I can't figure out how to display signup_date and expiry_date for CBSubs plans.

I've looked here:
www.joomlapolis.com/news/18550-cbsubs-gpl-4-1-with-timed-content-taxes-inclusive-price-display-and-plan-substitutions-usable-anywhere

and here: www.joomlapolis.com/forum/255-developer-members-support/242915-how-to-use-substitutions-for-cb-subs-fields-in-joomla-article

Where this is mentioned:

Start Date: [cbsubs:subscriptions plan="PLAN_ID" output="signup_date" /]
Expiration Date: [cbsubs:subscriptions plan="PLAN_ID" output="expiry_date" /]

That seems to work on articles, but not inside a CB Profile Custom HTML field. What's the equivalent code for displaying on a profile (either inside a Custom HTML Field or as a standalone field if I need to create one)?

Thanks.

Please Log in to join the conversation.

1 month 2 weeks ago #326151 by lousyfool
Have you set "Prepare content using CMS Content plugins" to yes in the "Parameters" tab of the Custom HTML field?
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

1 month 2 weeks ago #326158 by krileon
CBSubs substitutions are Joomla content plugin substitutions. So for them to work in wherever you choose to use them that location needs to support Joomla content plugins.

In the case of Custom HTML fields above you need to enable "Prepare content using CMS Content plugins" under the "Parameters" tab of the field as said above.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.195 seconds

Facebook Twitter LinkedIn