Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] auto-action no event onBeforeDisplayUsersList

  • bruno_c
  • bruno_c
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
11 years 3 weeks ago - 11 years 2 weeks ago #235012 by bruno_c
Hi,
I try to change the classname span12 with span8 on the onBeforeDisplayUsersList using code jsinline.
to be sure to choose the good event i code only :
alert("onBeforeDisplayUsersList"); to verify this event but nothing works.
If i use the event "onBeforeUserProfileEditDisplay" in this auto-action the alert message works fine.
With the debug enable, i have the following message :
string(65) ":: Action 3 :: Access check for 0 failed: looking for 2 in -1, -2"
i join you the printscreens.


Attachments:
Last edit: 11 years 2 weeks ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 3 weeks ago #235020 by krileon
Replied by krileon on topic auto-action no event onBeforeDisplayUsersList
Your access check is going to fail, because there is no user object for the onBeforeDisplayUsersList trigger. This means it's testing your access check against a guest user instead of the logged in user. Set "User" to "User" and it'll pull the user object of the viewing user or set your "Access" to "Everybody" so it won't matter. I'm not sure why you'd want to do this though, just make your styling changes directly with CSS as it's going to be significantly better performance.


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.

  • bruno_c
  • bruno_c
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
11 years 3 weeks ago #235024 by bruno_c
Replied by bruno_c on topic auto-action no event onBeforeDisplayUsersList
Thank you Kyle for your prompt answer,
i just test your solution and it works fine.
I use the auto-action with inline js code to change the classname span12 :
- with span6 in the profile edit for adding a help list with a span6 wide
- with span8 in the user list for adding an help text with a span4 wide
I don't see how to do that with CSS.

The span12 is defined in the html template.
you can see the result on my site www.octrier.com after a user registration.
note : my site is actually on test phase.

Your support is excellent and very quick

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48471
  • Thanks: 8280
  • Karma: 1443
11 years 3 weeks ago #235089 by krileon
Replied by krileon on topic auto-action no event onBeforeDisplayUsersList

I use the auto-action with inline js code to change the classname span12 :
- with span6 in the profile edit for adding a help list with a span6 wide
- with span8 in the user list for adding an help text with a span4 wide
I don't see how to do that with CSS.

You just take the CSS of span12 and apply the CSS directly to whatever you want changed. At any rate if this solution is working for you and perform is fine you're probably ok.


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.
The following user(s) said Thank You: bruno_c

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

  • bruno_c
  • bruno_c
  • OFFLINE
  • Posts: 24
  • Thanks: 2
  • Karma: 0
11 years 2 weeks ago #235140 by bruno_c
Replied by bruno_c on topic auto-action no event onBeforeDisplayUsersList
It was the only way i found for change the wide on different pages with the CB content. It work.
Thank for your reply
Best Regards
Bruno

PS: i don't know how to mark this post as solved.
Can you do it for me.

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

Moderators: beatnantkrileon
Powered by Kunena Forum