CBsubs to render profile private based on a plan

12 years 5 months ago #183404 by activha
Well maybe that I am tired this evening but I did not found the answer on the forums.

All our profiles are public and we hide/show tabs/fields depending on plans subscribed.

We need to set up a new plan for general public and make their profiles totally private. Is there a way to make profiles privates or hidden to all others depending on a plan subscription only ?

If yes could you give me some hints ?

Thanks in advance

Please Log in to join the conversation.

12 years 5 months ago #183417 by krileon
Do mean so non-registered users can't see their profile? Yes, but requires a combination of things. You'll first need to setup your CBSubs plan to update a read only field to either 1 or 0. 1 for private and 0 for public. Next you'll need CB Auto Actions and configure a redirect action before profile display. Your condition would check the field CBSubs updated as well as check if the user_id is equal to 0. Then configure a URL to send the user to. This would cause public users to redirect away from the profile if the profile owner has a subscription and the field is set to 1.


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.

12 years 5 months ago - 12 years 5 months ago #183446 by activha
Thanks a lot for the tip :-)

I have a configuration problem maybe. When I try the url activ-ha.com/userprofile/test.html and am not logged in the redirect does not occur.

Is this only valid when the url is called from another one ?
Attachments:

Please Log in to join the conversation.

12 years 5 months ago - 12 years 5 months ago #183490 by krileon
Your conditions are not correct, please use the below.

[cb_private] Equal To 1

There's no need for the user_id check as you set the access to only apply to non-registered users.

Conditions support substitutions, but they must be formatted as you would with any substitution. Please see tutorials within my signature for further substitution usage information.


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

Facebook Twitter LinkedIn