[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
foodclub.org • View topic - More CSS...how to color the source drop down items red
Page 1 of 1

More CSS...how to color the source drop down items red

PostPosted: Sun Jun 09, 2013 3:43 pm
by christiancoop
Hello all,
We have accumulated quite a long list of sources in the Source drop down. A user has asked that we color the locked sources with red so it is easier to identify and skip past.
Anyone have sample css for this?

Re: More CSS...how to color the source drop down items red

PostPosted: Sun Jun 09, 2013 6:19 pm
by szimmermann123
Or even if I could just put the word "LOCKED" in red, this would be great. At one time, we requested this of Adi, and it was too hard. If it can be done, it should just be done at the system level. I can't imagine anyone not wanting this feature.

Sally

Re: More CSS...how to color the source drop down items red

PostPosted: Sun Jun 09, 2013 7:36 pm
by support
Someone else just recently asked about this. The problem is that all browsers do not support changing colors of individual <option>'s in a <select> drop-down menu. In fact, I think Firefox is the only one that does. I know Safari and Chrome do not, I don't know about IE. But Safari and Chrome are also the browsers in most mobile devices, which means it wouldn't work in iphones, ipads, or android phones.

There are a few possible solutions to this problem:
1) a setting to hide all locked sources from normal (non-admin) users, in the select source menu
2) a setting to sort all the locked sources down to the bottom of the list, in the select source menu
3) complete redesign of the UI so users can shop from all open (unlocked) sources in a single UI without needing to use a select source dropdown to choose

The issue with 1) is that normal users wouldn't be able to see their current or archived invoices once a source locks. This could be a major issue.

Number 2) would be easy, and could be done in a few minutes. Let me know if that will suffice as a temporary solution.

Most users really like the sound of item 3), but it is also a fairly big development project. It's just waiting for me to get a month or two of free time. It also may confuse many of the existing users (at least at first) who have gotten used to shopping by source, at least just because the UI will be quite different. Instead of the source dropdown menu, they would be able to filter all products by source, so they could limit to a single source if they want to.

The admin side would remain mostly the same, since admins need to place orders and generate invoices per vendor. Only shopping would be in the new unified interface.

Re: More CSS...how to color the source drop down items red

PostPosted: Mon Jun 10, 2013 8:22 am
by ashleycampbellclan

Re: More CSS...how to color the source drop down items red

PostPosted: Mon Jun 10, 2013 5:33 pm
by szimmermann123
I second Ashley's vote for option 2!

Our group has a source coordinator coordinator, this would make her job of making sure the right sources are open and closed a breeze! It would also make it very easy for our members who are simply looking for open sources.

Sally

Re: More CSS...how to color the source drop down items red

PostPosted: Mon Jun 10, 2013 6:59 pm
by Beck
Just adding that I think that this enhancement would be quite useful too.

Re: More CSS...how to color the source drop down items red

PostPosted: Wed Jun 12, 2013 12:34 am
by support