Poll bars color

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
9/11/2008 2:28:50 AM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Poll bars color

Hi, I managed to make my own skin, to orient myself in the files, well... its not complete, but there are two places I can not find:

a) Where to change the color of the bars in a poll?

b) Where to change the Forum's styles?

Thank you for any help.

9/11/2008 5:58:12 AM
Gravatar
Total Posts 18439

Re: Poll bars color

Hi,

I just looked into how this is done, the Poll was a community contribution by Christian Fredh, so having not implemented it myself I was not sure how the bars worked.

It appears that the code first looks for an image named pollresult.jpg in your skin folder (presumably this could be a 1 pixel image of any color. It then sets a width and height to size the bar using this image.

If the file pollresult.jpg is not found in the skin folder, then it checks Web.config, you could add a setting there with the key "PollResultColorIfNoImage" and the value must be a named color from the web pallette blue, green black etc. Unfortunately it expects only named colors and isn't coded to handle hex notation.

If niether the image nor the web.config setting is found it defaults to blue.

skin folder = /Data/Sites/[SiteID]/skins/[skinname]

Hope it helps,

Joe

9/11/2008 5:28:04 PM
Gravatar
Total Posts 33
www.jaosobne.cz
Windows Server 2008 R2
Microsoft SQL Server 2008
MojoPortal 2.3.6.2

Re: Poll bars color

Very nice, I used the image, thank you. However if it could be PNG or GIF or even BMP :-) it wouldn't have 6 KB for 1x10 px.

Could you help me with the forum too?

9/12/2008 4:17:51 AM
Gravatar
Total Posts 18439

Re: Poll bars color

I will change it to .gif for the next release.

Best,

Joe

9/12/2008 4:19:44 AM
Gravatar
Total Posts 18439

Re: Poll bars color

The forum style is mostly in forummodule.css file found in your skin folder.

Hope it helps,

Joe

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