If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Question about Advanced Poll 2.0  XML
Forum Index » Support Forum
Author Message
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
Anonymous



I really need this. Please help me
Anonymous



Come on. Anyone.....
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'
Anonymous



Ok. I'll try it out and report.

Thanks
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?
Anonymous



$option_id = $i+1;
Anonymous



Great it works. Thank you.
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
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum