CB Subs no subscription text

4 years 8 months ago #313774 by Proteon
CB Subs no subscription text was created by Proteon
Hi,

I have created a menu item to show the subscriptions of the logged in user. If the user has no subscription, it doesn't display anything.

What can I do to show a text like "You don't have any current subscription" if the user doesn't have any subscription?

Screenshot attached.

Attachments:

Please Log in to join the conversation.

4 years 8 months ago #313778 by krileon
Replied by krileon on topic CB Subs no subscription text
What is your menu item linking to? If your menu item is Menu Type of Community Builder > Plugin and Plugin is set to CB Paid Subscriptions with Do set to Display Plans it should show all plans available (including those subscribed to) the same as the subscriptions tab. If Do is set to Display Subscriptions it will only show active subscriptions and doesn't have any option to output anything beyond the "Title in subscriptions tab" parameter in CBSubs > Settings > Display > Plans.


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.

4 years 8 months ago #313786 by Proteon
Replied by Proteon on topic CB Subs no subscription text
Yes, that is the correct menu item type.

So, you mean, there is no way to display a text "You are not subscribed to any plan" if the user is not subscribed to any plan? This seems to be so basic thing to have. Please confirm.

Please Log in to join the conversation.

4 years 8 months ago #313789 by krileon
Replied by krileon on topic CB Subs no subscription text
Yes, that's correct. The only way would be to modify the template files, which you can locate below.

/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/templates

Believe that view uses the below template.

/components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/templates/default/usersubscriptions/default.php


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.202 seconds

Facebook Twitter LinkedIn