Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Display CBSubs fields in profile?

1 year 4 months ago #334574 by wintercorn
Display CBSubs fields in profile? was created by wintercorn
I'm developing a custom profile view and need to pull out sub start/expiry date and fee charged as custom fields.

How can I do this?

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
1 year 4 months ago #334578 by krileon
Replied by krileon on topic Display CBSubs fields in profile?
Create a Custom HTML field then enable content plugins under its parameters. Now you can use CBSubs substitutions like the following.
Code:
[cbsubs:if user="#displayed" plan="PLAN_ID" status="A"] Plan Name: [cbsubs:plans user="#displayed" plan="PLAN_ID" output="name" /] Subscription Date: [cbsubs:subscriptions user="#displayed" plan="PLAN_ID" output="signup_date" /] Expiration Date: [cbsubs:subscriptions user="#displayed" plan="PLAN_ID" output="expiry_date" /] [/cbsubs:if]

Replace PLAN_ID with the id of the plan you want to check the subscription status of. Review the cbsubsbot description in System > Plugins for further CBSubs substitution usage information. The cbsubs:if prevents it from displaying anything unless the subscription is in an active status, but you can remove that if you like.


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