Skip to Content Skip to Menu

🏖 Summer has arrived! Start your summer right with our summer sale! Get 25% off professional and developer memberships with code SUMMER-2025!

[SOLVED] CB Auto Action ?

11 years 4 hours ago #247193 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
Hi, I would like to expose a my necessity and to understand if can do it with Community Builder and some of its components, I thought CB Auto Action. I have two types of users (eg student and professor). These, after the login on the site, through a list have the chance to see all registered users and their profiles (that is, students can see only the profile of professors and vice versa, but they can not see their own profiles (that is the student does not see the profiles of the other students, the same the professor). Newly registered users can view their profiles, but it contain only limited information (for example, the matter of the teacher and school). Would that, after the student has contacted the professor, for example with the exchange of a message (eg Uddeim) they can see their profiles in the full version (with more information, such as the school, matter, teacher's name, phone, e-mail, etc.). I thought to create two profiles (one with little information and one complete) and two groups for the same type of user, and manage them with access levels, meaning: if the contact between the parties has not happened, always displays the profile 1 (with limited information), if the contact has occurred, displays the profile 2 (full information).
But at login in the list should be displayed for all users, both, contact and non contact and of course the users not contacted can not see the complete profiles.
Thanks for any suggestions and help.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49372
  • Thanks: 8453
  • Karma: 1465
11 years 3 hours ago #247208 by krileon
Replied by krileon on topic CB Auto Action ?
You could use CB Privacy then set your tabs/fields to be moderator privacy controlled for Connections only. Then for the student to see the teachers profile the teacher would need to accept a connection request from the student as the various tabs and fields are only accessible to connections. To prevent students from seeing other students you could use a CB Auto Actions redirect action on the profile display trigger to try and send them away if the user is a student usergroup and the viewing user isn't the displayed profiles owner.


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.

10 years 11 months ago #247597 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
Is it possible with CB Auto Action during the registration process check if a textbox contains a word contained in a text area? Example: if the text field contains "Rome" and the textarea field contains "City of Rome", a warning message appears.
Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49372
  • Thanks: 8453
  • Karma: 1465
10 years 11 months ago #247626 by krileon
Replied by krileon on topic CB Auto Action ?
Warning message to appear where? Like dynamically as they type? Yes, that's doable if my assumption is correct. You'd need to use the before registration form trigger in a Code action with Method set to jQuery then write some jQuery to do what you're wanting.


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.

10 years 11 months ago #247668 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
During the registration in the textbox city I enter "Rome", after in the description field that is a text area, insert "Rome is the capital of Italy", now I would like to receive an alert Example: "In the description it is not possible to insert the name of the city"(it's good also using onBeforeRegisterForm), because Rome has been included in the description. I also found this post:
www.joomlapolis.com/forum/153-professional-member-support/191087-verify-email-with-cb-auto-action-on-registration?start=6
here check that the contents of the two fields is the same e-mail, is it possible adapt it using "Does Contain" instead of "Not Equal To"?
Thank you.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49372
  • Thanks: 8453
  • Karma: 1465
10 years 11 months ago #247777 by krileon
Replied by krileon on topic CB Auto Action ?
No, that's a jQuery Validate rule. It has no support for "Does Contain". You'll need to write custom jQuery for what you're wanting then append it to the registration page using CB Auto Actions.


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