Inline Style with Poll Feature

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/10/2009 2:22:42 PM
Gravatar
Total Posts 2253

Inline Style with Poll Feature

The results bar of the Poll feature uses an inline style to set the background-color. It would be nice if the individual elements had their own classes so they could be skinned easily.

Thanks,
Joe

11/13/2009 12:21:17 PM
Gravatar
Total Posts 18439

Re: Inline Style with Poll Feature

Hi Joe,

I did not implement the Poll feature myself, but looking at the code here is what it does.

1. It looks for a file named pollresult.gif in the skin folder (I think it expects like a 1 pixel gif of whatever color you want.)

2. If it does not find the gif file, it checks Web.config for a setting named PollResultColorIfNoImage

3. If no value is provided in the setting it uses blue

I'm thinking a better solution will be to add a color setting so the bar color can be specified using our color picker.

Best,

Joe

11/13/2009 1:28:43 PM
Gravatar
Total Posts 2253

Re: Inline Style with Poll Feature

Hi Joe,

That process seems a little non-cms to me. ;-) I like your idea about adding a color setting that will allow the user to choose a color from the picker.

Thanks,
Joe D.

11/13/2009 1:32:20 PM
Gravatar
Total Posts 18439

Re: Inline Style with Poll Feature

Christian Fredh implemented the Poll way back long before we even had a color picker available, at least he had a solution to make it skinnable, my fault for never documenting it really, but it will be easy to add this setting now and that will make it more friendly. I'll get this done soon so it will be in the next release.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.