Skip to Content Skip to Menu

Plan ID shortcode

  • wintercorn
  • wintercorn
  • ONLINE
  • Posts: 131
  • Thanks: 14
  • Karma: 1
1 day 20 hours ago #341244 by wintercorn
Plan ID shortcode was created by wintercorn
I'm trying to create a menu link directly to the sharing button on the subscriptions page. It's dynamically generated so adds the current users sub id to the end as follows where 1 is the first ever member:

domain.com/profile/pluginclass/cbpaidsubscriptions?do=sharedsubscription&subscription=1

As this link only appears as a button on the subscription page it's not ideal for easy access. See screenshot.

I'd like to be able to create a menu link as follows but this doesn't seem available.

domain.com/profile/pluginclass/cbpaidsubscriptions?do=sharedsubscription&subscription= [sub_id]

Any suggestions?

Thanks
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49231
  • Thanks: 8415
  • Karma: 1462
1 day 15 hours ago #341247 by krileon
Replied by krileon on topic Plan ID shortcode
Joomla menu items aren't dynamic and that URL requires the subscription id. So you won't be able to do that. Will take a look and see if we can add support for linking to that page by plan id and would just grab their subscription id from last subscription to that plan id. Then you'd be able to just link using the below.

index.php?option=com_comprofiler&view=pluginclass&plugin=cbpaidsubscriptions&do=sharedsubscription&plan=PLAN_ID_HERE


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
  • ONLINE
  • Posts: 131
  • Thanks: 14
  • Karma: 1
1 day 15 hours ago #341248 by wintercorn
Replied by wintercorn on topic Plan ID shortcode
I've sort of hacked around it but it's not elegant. If you come up with a solution I'll use that.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49231
  • Thanks: 8415
  • Karma: 1462
1 day 15 hours ago #341249 by krileon
Replied by krileon on topic Plan ID shortcode
Have implemented the above. Once reviewed and merged you'll be able to use the above URL and just link by plan id instead of subscription id. I've also added more "Do" options for linking to integration pages when creating a Community Builder > Plugin menu item to CB Paid Subscriptions.


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
  • ONLINE
  • Posts: 131
  • Thanks: 14
  • Karma: 1
1 day 15 hours ago #341250 by wintercorn
Replied by wintercorn on topic Plan ID shortcode
Great! I'll check it out and see what I can do.

Thanks for the quick response.

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

Moderators: beatnantkrileon
Powered by Kunena Forum