Author |
Message |
11/01/2002 18:23:43
|
Anonymous
|
Hello,
Is it possible to have numbers in front of the poll options showing the order, let's say from 1 to 10, descending by votes.
Like this:
1. option1 15votes
2. option2 10votes
3. option3 4votes
...
I want to have the numbers in bold appear in my poll.
Thank You
btw. Very nice forum
|
|
11/01/2002 20:15:20
|
Anonymous
|
I really need this. Please help me
|
|
13/01/2002 09:56:16
|
Anonymous
|
Come on. Anyone.....
|
|
14/01/2002 12:35:42
|
Anonymous
|
possible, but only with the mysql version.
add the following lines
function view_poll_result() {
.
.
for ($i=0;$i<sizeof($this->options[$poll_id]['option_id']);$i++) {
$option_id = $this->options[$poll_id]['option_id'][$i]; /* add this */
.
and add '$option_id ' to the templates 'result_loop'
|
|
15/01/2002 19:06:05
|
Anonymous
|
Ok. I'll try it out and report.
Thanks
|
|
15/01/2002 19:37:11
|
Anonymous
|
That's not what I want. I don't want option_id in front of my options but the exact numbers, 1, 2, 3,...10. Sort of top 10 list.
Is that possible?
|
|
16/01/2002 10:27:17
|
Anonymous
|
$option_id = $i+1;
|
|
16/01/2002 21:08:40
|
Anonymous
|
Great it works. Thank you.
|
|
16/01/2002 21:48:46
|
Anonymous
|
OK, I have another question.
Is it possible to display that in a 'normal' poll? Not only the results. I've been trying something out, but it doesn't work.
Thanks
|
|
|