Page 1 of 5

[2.0.11] Colour on poll results

Posted: Sun Sep 05, 2004 5:25 pm
by Extensions Robot
MOD Name: Colour on poll results
Author: Manipe
MOD Description: Instead of the standard results images on the poll results, this hack shows colour on the results of a poll. Different colours are given to each range of percentages. Also it gives a certain colour to the option that you voted for (Default= Purple)


MOD Version: 1.1.1 (Updated 12/16/04)

Download File: colour_on_poll_results_1.1.1.zip
mods overview page: View
File Size: 3626 Bytes

Security Score: 0

Posted: Sun Sep 05, 2004 11:20 pm
by wGEric
MOD Validated/Released

Notes:
This MOD removes the poll images and replaces them with colors. The color of the line depends on what percent of the votes the option has.

Posted: Mon Sep 06, 2004 6:18 am
by onigumo
Anyone's implemented this and can provide a screenshot? This modification sounds great, but I want to see it before implementing it, if I can.

Posted: Mon Sep 06, 2004 7:19 am
by beggers
Very nice! For anyone else reading this, if you're using a dark color for the message background instead of the default, you might want to change the bar colors. There are three color definitions that look like this:

$vote_color = 'green';

You can change the color to any hex value like this:

$vote_color = '#F807BC';

Just change all three to whatever looks best for your board. I know this is obvious to most people, but it might will help some of the newer users.

Again, nice job on this mod.

Posted: Mon Sep 06, 2004 2:06 pm
by Shof515
anyone got a demo or screenshot?

Posted: Mon Sep 06, 2004 6:52 pm
by stickerboy
Shof515 wrote: anyone got a demo or screenshot?

think there might be a few screenshots in the beta forum. if they're still there, they'll show you.
And if this is the right mod i'm thinking of, it looks pretty cool.
kind of vBB like ;)

Posted: Mon Sep 06, 2004 7:08 pm
by Manipe
Click here

Look.

As said before the colors can be changed as well as the percentages.

Posted: Mon Sep 06, 2004 7:11 pm
by Manipe
And thanks for the praise!!

:D :D :D

Posted: Mon Sep 06, 2004 7:47 pm
by Manipe
Also if you want me to change it so that there are different colored images so that there is a 3d style to it, just ask.

Posted: Thu Sep 09, 2004 7:43 am
by beggers
This example shows the different color bars:

http://www.wwe-club.com/phpBB2/viewtopic.php?t=25663

I've modified the code to change color every 10%.

Posted: Sat Sep 25, 2004 4:54 pm
by Manipe
Would anyone be interested in having different coloured pictures rather than plain colour?

Posted: Sun Oct 03, 2004 12:10 am
by DuckieN
stupid question but.... someone installed this mod for me but neglected to tell me how to even find the mod. I would like to modify the colours but don't even know the file name.. what is the path I would use to find the code to change the colours

Posted: Sun Oct 03, 2004 4:31 am
by beggers
DuckieN wrote: stupid question but.... someone installed this mod for me but neglected to tell me how to even find the mod. I would like to modify the colours but don't even know the file name.. what is the path I would use to find the code to change the colours


There is a link to the original mod is in the first post of this topic. Download it and you'll see the code for the colors.

Posted: Sun Oct 03, 2004 10:27 am
by Manipe
Well there are only two files that are modified.

viewtopic.php
templates/subSilver/viewtopic_poll_result.tpl

Posted: Sun Oct 03, 2004 11:54 am
by kazper
I would definitely be interested in different pictures to make the 3d effect.