Skip to Content Skip to Menu

[SOLVED| CB AutoAction: Hide Profile search for non-registered users

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 8 months ago - 9 years 8 months ago #259369 by startup
Hello!

I'm Using CB 2.0.6 and CB Auto Action 6.1.1 and wanne hide the Search within a CB Userlist. Therefor I setup an CB Auto Action with trigger "Before userlist display" from type code with

.cbUserListHead {
display: none !important;
}

Access for "All non-registered users" and "Public". Also tried to set just one of them.
As expected the Search option gets hided for non registered users which is great but it is also hided for registered users which is bad.

Any tipps are more than welcome

Thank you so much
Frnak
Last edit: 9 years 8 months ago by startup. Reason: problem solved

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 8 months ago #259374 by nant

startup wrote: Hello!

I'm Using CB 2.0.6 and CB Auto Action 6.1.1 and wanne hide the Search within a CB Userlist. Therefor I setup an CB Auto Action with trigger "Before userlist display" from type code with

.cbUserListHead {
display: none !important;
}

Access for "All non-registered users" and "Public". Also tried to set just one of them.
As expected the Search option gets hided for non registered users which is great but it is also hided for registered users which is bad.

Any tipps are more than welcome

Thank you so much
Frnak


I would just create 2 different user lists and mark one to be shown to Public viewers (with searching turned off) and the other viewable to Registered users (with search on).

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 8 months ago #259554 by startup
Hi!

This would be a solution but from handling point of view not so nice because you have to align modules then to each of the two menus.

I really like to know why my CB Auto Action is not working as expected. Would be great if Krilon coul have a look at.

Cheers
Frank

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 8 months ago - 9 years 8 months ago #259610 by krileon

This would be a solution but from handling point of view not so nice because you have to align modules then to each of the two menus.

You should be able to link to the general userlist page without a list id and it'll pick the first userlist that's accessible. Just ensure neither are marked default. Ensure the Registered userlist is ordered before the public one as well.

I really like to know why my CB Auto Action is not working as expected. Would be great if Krilon coul have a look at.

It's not working because you selected Public. Everyone has the Public usergroup. Access is absolute. If they have the usergroup they get access. The only case you'd want to select Public is maybe if you've a Guest usergroup. For your usage select only "All Non-Registered Users".


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 8 months ago by krileon.

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

  • startup
  • startup
  • OFFLINE
  • Posts: 113
  • Thanks: 7
  • Karma: 1
  • Add-ons
9 years 8 months ago #259650 by startup
Hi Krileon,

also just taking "All Non-Registered Users" the search gets hided also for registered/logged in users!

Any ideas?

Thanks
Frank

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 8 months ago #259687 by krileon
Ensure "User" is set to "User" so the user object it's testing against is the viewing user. If set to Automatic there's no telling what user object (if any at all) it's using as that trigger doesn't really provide one.


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