Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Blog + CB Subs Plan

11 years 6 months ago - 11 years 6 months ago #225735 by deltafidesign
CB Blog + CB Subs Plan was created by deltafidesign
4 different subscriptions plans: A, B, C, D.

I use CB Blog plugin so A, B, D can create articles. A, B, C, D don't see the CB Blog tab (not visible on profile 1). Also CB Blog tab is assigned to plans A, B and D (subplan of C).
I have created 3 different user menu link that point to "new Blog" link button in the CB Blog Tab. This way, even if they don't see the CB Blog Tab (I don't want for other reasons), they can go directly to the editor form to create the articles.

Now, A and B are always allowed to create blogs meanwhile C need to subscribe to subplan D to create Blogs.

How can I set plan D to let users create blog clicking on that user menu link only if they are subscribed to plan D?

I dont' want to create a new access level and assign to Plan D and to that menu link.

Is there any other solution?
Last edit: 11 years 6 months ago by deltafidesign.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225763 by krileon
Replied by krileon on topic CB Blog + CB Subs Plan
Use CBSubs Content and its By URL Part protection to protect the new blog URL. This can be done from CBSubs > Plans > PLAN > Integrations > Extensions > By URL Part. The URL you'd need to protect is as follows.

option=com_comprofiler&task=pluginclass&plugin=cbblogs&action=blogs&func=new

Note you'll need to protect the URL with all plans that should have access to it otherwise only Plan D will be able to access it.


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

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

11 years 6 months ago - 11 years 6 months ago #225775 by deltafidesign
Replied by deltafidesign on topic CB Blog + CB Subs Plan
I cannot let it work 'cause my SEF menu link is like that:

www.mysite.com/component/comprofiler/pluginclass?plugin=cbblogs&action=blogs&func=new&Itemid=1100

And this way it doesn't protect this link.

It corectly protects this link, if I put directly in the browser:

www.mysite.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cbblogs&action=blogs&func=new

or this one (that is the corret link with menu item ID)

www.mysite.com/index.php?option=com_comprofiler&task=pluginclass&plugin=cbblogs&action=blogs&func=new&Itemid=1100

But if I use the menu link, this is SEFed, and I can access to the blog form editor anyway.

Any other solution?
Last edit: 11 years 6 months ago by deltafidesign.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225801 by krileon
Replied by krileon on topic CB Blog + CB Subs Plan
SEF shouldn't matter, the protection acts directly on the GET variables. At any rate try protecting the below and see if it'll work.

plugin=cbblogs&action=blogs&func=new

If it's a Joomla menu item then you should be able to protect the menu item too under the Content tab on the Integrations tab of your plan.


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.

11 years 6 months ago #225809 by deltafidesign
Replied by deltafidesign on topic CB Blog + CB Subs Plan
It work fine this way:

plugin=cbblogs&action=blogs&func=new&Itemid=1100

also adding Item ID I don't need to specify that rule in Plans A and B. They still work 'cause they have another Item ID.

Anyway that means that if user with Plan C could know the direct link with item id for plans A and B he could use the blog feature even if not subscribed to plan D... but that's a remote possibility.

Last, I already tryed yesterday protect the menu item in the content integration tab, but no way, didn't work.

Thanks

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225823 by krileon
Replied by krileon on topic CB Blog + CB Subs Plan
You don't need to append Itemid. It can do partial matching. So the below should work perfectly fine.

plugin=cbblogs&action=blogs&func=new


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