Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] CB Auto Action ?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 3 months ago #249440 by krileon
Replied by krileon on topic CB Auto Action ?
You'd need to first create a way to test for a connection. This could be a CB Query Field that queries the _comprofiler_members database table and checks if there's a connection between the viewing user and the displayed user. You'd then use it as a substitution in your CB Auto Actions conditional, which would add jQuery or CSS to the page to hide/remove those menu items. Please note this would be cosmetic only and would not protect the destination of those menu items.


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 3 months ago #249456 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
If in the configuration of Community Builder in the "General" tab and under "Manage Email" I set "do not display email" in the menu of the user profile disappears the voice "Messages" and to me is fine, but no appears also the email field. Is there a way to view the email field in user profile and do not appear in the user menù the voice messages?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 3 months ago #249464 by krileon
Replied by krileon on topic CB Auto Action ?
No, if the email display is enabled then it also shows the menu item. I suppose you could disable it in CB > Configuration then create a delimiter field to substitute in the email field if you want raw email display, but that will probably open the user to spam. You can also hide the menu item using CSS if you intend to still allow the field to access the email form it'll be fine. The below CSS for example should hide it.

Code:
.cbMenu_UE_MENU_SENDUSEREMAIL { display: none !important; }

Hopefully in CB 2.1 or later we can have a management page for CB Menu items to make it easier to add, remove, and disable menu items.


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 2 months ago #250281 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
Hi, I need to write a value into a field if conditions exist, namely I have to write the value "1" if by a precise date have passed more than six months but less than 12 months. That is the field is equal to "1" only between 6 and 12 months by a date. I've tried using a query in CB Auto Action but I always get error. How is this possible?
Thanks.

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

10 years 2 months ago #250434 by pasquale1980
Replied by pasquale1980 on topic CB Auto Action ?
I used a DATEDIFF and I solved it, but I wanted to know how to update the field so that the days will automatically increment, that is, how the fields "Registered", "Last appearance", "Last Activity", any day I login the number of days is incremented automatically.
Thanks.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
10 years 2 months ago #250488 by krileon
Replied by krileon on topic CB Auto Action ?

pasquale1980 wrote: I used a DATEDIFF and I solved it, but I wanted to know how to update the field so that the days will automatically increment, that is, how the fields "Registered", "Last appearance", "Last Activity", any day I login the number of days is incremented automatically.
Thanks.

Edit your date field and set it to be Timeago display mode.


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