Skip to Content Skip to Menu

[SOLVED] Problem with auto-action and css code

  • devodave
  • devodave
  • OFFLINE
  • Posts: 68
  • Thanks: 5
  • Karma: 0
9 years 11 months ago - 9 years 11 months ago #253632 by devodave
Hello,

I am using a custom template to show my userlist in a specific way.
This theme is applied to all groups which is normal.

My concern is that I do not want for some fields to appear for certain ACL.
I thought with auto action and css code, that would do the trick but obviously not.

I have used the following on loginauthentication:
.cbPosRight .cbColumn12 {display: none;} - see attached extract with firebug

Do you have any clue, please?
Attachments:
Last edit: 9 years 11 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8285
  • Karma: 1444
9 years 11 months ago - 9 years 11 months ago #253656 by krileon
Replied by krileon on topic Problem with auto-action and css code

My concern is that I do not want for some fields to appear for certain ACL.

Use CB Privacy or CB Conditional for that. Using CSS only does nothing to protect those fields visibility. It just hides it. Anyone that press F12 to view the dom could easily data mine those fields no problem.

Both CB Privacy and CB Conditional CB 2.0 upgrades have been released (CB Conditional upgrade released today). CB Privacy can do a forced privacy control of a specific view access level or CB Conditional can do a custom conditional for view access levels. CB Conditional can also do a custom conditional view usergroups.

I have used the following on loginauthentication:
.cbPosRight .cbColumn12 {display: none;} - see attached extract with firebug

Do you have any clue, please?

However, to clarify your issue. Your selector is not strong enough to override the existing display styling. Add !important to it or increase your selector weight by adding more classes.


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.
Last edit: 9 years 11 months ago by krileon.
The following user(s) said Thank You: devodave

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

  • devodave
  • devodave
  • OFFLINE
  • Posts: 68
  • Thanks: 5
  • Karma: 0
9 years 11 months ago #253737 by devodave
Replied by devodave on topic Problem with auto-action and css code
Thank you,

yes, I am using the CB conditional to hide the content.
I am still having the same issue even though increasing the selector's weight:
I can't be more specific than that:

onLoginAuthentication
access: everybody
no condition
css inline: .t3-wrapper.row.cbProfile.cb_template_publictheme.cbPosRight.cbColumn6{
display: none !important;}

What's wrong?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48502
  • Thanks: 8285
  • Karma: 1444
9 years 11 months ago #253789 by krileon
Replied by krileon on topic Problem with auto-action and css code
You have no spaces between your selector. You're trying to target an element that literally has every single one of those classes, which I doubt exists.

Finds the element with all the following classes:
.one.two.three.four

Finds the first element, then the next in the result, then the next in the next result:
.one .two .three

Please see the below for some CSS tutorials.

developer.mozilla.org/en-US/docs/Web/CSS/Tutorials
www.w3schools.com/css/default.asp


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.

  • devodave
  • devodave
  • OFFLINE
  • Posts: 68
  • Thanks: 5
  • Karma: 0
9 years 11 months ago #253938 by devodave
Replied by devodave on topic Problem with auto-action and css code
Hi there,

actually I ran several test before posting, and none of them worked...
I have never been able to remove/hide a block with auto action.

However as I'm using a T3 framework, I decided to use the custom.css to work on the public profiles, while the CB theme works on a slightly different template, then being able to hide the block.

You can close this thread, then.

Tx,

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

Moderators: beatnantkrileon
Powered by Kunena Forum