×

Error

Please login first

[SOLVED] Hiding User List Drop Down Menu

11 years 6 months ago - 11 years 6 months ago #214458 by edmundcheong
[SOLVED] Hiding User List Drop Down Menu was created by edmundcheong
If you go to a user list, on the right-top corner, there is a drop down menu which contains the various list you have created.

How do you hide it? I do not want uses to have access to the other userlists. I want them to only view the searcable userlist which is clickable from the menu.

I only want to restrict them to be able to search the list ONLY and they should not be able to see the whole list.

With the pull down menu, by switching/selecting from the list, they are able to access all information of users listed on the list.

Thanks in advance.

Please Log in to join the conversation.

11 years 6 months ago #214460 by fribse2011
Replied by fribse2011 on topic Re: Hiding User List Drop Down Menu
Use CSS.

I've added this to my template.css

/* Hide list select on CB lists */
div.cbUserListChanger {visibility:hidden;}

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: edmundcheong, krileon

Please Log in to join the conversation.

11 years 6 months ago #214462 by edmundcheong
Replied by edmundcheong on topic Re: Hiding User List Drop Down Menu
Thanks mate! That was really helpful.

Please Log in to join the conversation.

11 years 6 months ago #214562 by edmundcheong
Replied by edmundcheong on topic Re: Hiding User List Drop Down Menu
By any chance do you know how to hide the number of users on the User List as well?

For example:

2 User(s):

How do you hide the number "2".

It would be great if you could show me how if I could add a condition on that such as:

show if "list id = 49" (something like that)

Please Log in to join the conversation.

11 years 6 months ago #214564 by fribse2011
Replied by fribse2011 on topic Re: Hiding User List Drop Down Menu
Using FireBug it tells me that it is:
div.cbUserListResultCount {visibility:hidden};

But that's for all lists, no idea, except code hacking on how to hide it for a specific lists.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in to join the conversation.

11 years 6 months ago #214605 by krileon
Replied by krileon on topic Re: Hiding User List Drop Down Menu
You can hide usercount with the below.
.cbUserListResultCount {
    display: none;
}

Ideally you should do template php edits to accomplish this instead of CSS as CSS still leaves the html in source, which you can accomplish with the below.

www.joomlapolis.com/forum/153-professional-member-support/170122-lists-in-separate-menus#170862

You can use CB Auto Actions to add CSS to the userlist based off the userlist id. You'd use the below trigger onBeforeDisplayUsersList and in conditions check that [var6] (this should be the listid) is Equal To 49.


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: LearnThingsAfrica

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.249 seconds

Facebook Twitter LinkedIn