Skip to Content Skip to Menu

moderate profil after user edit

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 5 months ago #244989 by dotcom22
moderate profil after user edit was created by dotcom22
I would like hide profil or mark profil as "awaiting approval" when users edit some specific field. I wondering if by default cb could do that. It seem only avatar can be moderated.

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #244999 by krileon
Replied by krileon on topic moderate profil after user edit
No, not yet. In CB 2.1 we'll probably have full field by field moderation, but for now only image fields can be moderated in CB 2.0 and in CB 1.x you can only moderate the avatar field specifically.

A workaround is maybe to use CB Auto Actions to redirect away from profile edit if a checkbox field is equal to 1, which you'd set with another CB Auto Actions when the user updates their profile. The redirect action would be ignored for moderators (use the all non-moderator access) so moderators can edit freely. For moderator to approve the profile they'd simply uncheck the checkbox. However, the changes will still be made on their profile when using this strategy, but you could also block profile view if you wanted.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 5 months ago #245004 by dotcom22
Replied by dotcom22 on topic moderate profil after user edit

A workaround is maybe to use CB Auto Actions to redirect away from profile edit if a checkbox field is equal to 1, which you'd set with another CB Auto Actions when the user updates their profile. The redirect action would be ignored for moderators (use the all non-moderator access) so moderators can edit freely. For moderator to approve the profile they'd simply uncheck the checkbox. However, the changes will still be made on their profile when using this strategy, but you could also block profile view if you wanted.



Yes that's what I thought to do but my goal is to block profile view only if some specific field are modified. So how to do that? A way could be to duplicate each specific field (such cb_myfield1 and cb_myfield1hidden) and their related value. Then apply conditions in Auto-Action which can compare value and fire or not the action supposed to block profile view.

sound correct ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 5 months ago #245009 by krileon
Replied by krileon on topic moderate profil after user edit
Not sure why you need to duplicate your fields. Use a single checkbox field to handle the access toggle state. The field should be on a tab accessible to moderators only. You'd then have an action for non-moderators that fires on the after profile update trigger, which would change the checkbox value to 1. You can then have a redirect action for non-moderators that acts on profile view and/or profile edit to check if the checkbox is equal to 1 and if it is then redirect away. You could also use CB Conditional instead of redirects to simply shut off profile display of the fields, etc..


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