Need help on user profile & CBSubs

13 years 1 week ago #163229 by dododo
Replied by dododo on topic Re: Need help on user profile & CBSubs

dododo wrote: I've created 3 plans using CBSubs according to 3 types of user: Student, Teacher & Principal.

The issues are:

- I want a specific usertype NOT to have a public profile. When a user registers as that usertype, he/she can view/edit his/her profile infos, but I dont want anyone to view it.
I mean this setting should be automatically when user registers as a specific usertype, NOT that user edits his/her profile to be hidden later. How could I do it using CB & CBSubs?

- the CBSubs does help me show/hide some fields according to each plan when user performs registering. But when a user registered, all fields are shown in their profile, user can edit them as well. How could I disable/hide fields that dont belong to a specific usertype?

Thanks.


in case I need to make CB codes modification, plz advise me where to look at. Thanks.

Please Log in to join the conversation.

13 years 1 week ago #163336 by krileon
Replied by krileon on topic Re: Need help on user profile & CBSubs

- I want a specific usertype NOT to have a public profile. When a user registers as that usertype, he/she can view/edit his/her profile infos, but I dont want anyone to view it.
I mean this setting should be automatically when user registers as a specific usertype, NOT that user edits his/her profile to be hidden later. How could I do it using CB & CBSubs?

You can not protect any entire profile dynamically, but you can protect all the tabs/fields on that profile using CBSubs Fields/Tabs Protection integration. Alternatively you could create a field called "cb_nopofile" and this field be a Checkbox field, ensure it is read only!, now using incubator project CB Redirect and the trigger before profile display set a conditional to check if cb_norpfile is equal to 1. If it is then redirect to index.php (your home page). You'd set this fields value based off user subscription using CBSubs Fields.

- the CBSubs does help me show/hide some fields according to each plan when user performs registering. But when a user registered, all fields are shown in their profile, user can edit them as well. How could I disable/hide fields that dont belong to a specific usertype?

To hide fields on profile you must use CBSubs Fields/Tabs Protection. The workflows tab of a plan only hides those fields for registration.


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

Facebook Twitter LinkedIn