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 
How to show last poll results?  XML
Forum Index » Support Forum
Author Message
Anonymous



How to show last poll results with "view_poll_result"?

This don't work:
echo $php_poll->view_poll_result("newest");

"newest" only work with: echo $php_poll->poll_process("newest");

How can I do it?
Anonymous



Please someone help me!!!
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

in the admin panel set that poll to inactive or complete or something along
those lines or set an expire time in the past and then you can call it and it
will just show the results. Have a look at the demo polls and see what
code they use to just display the results.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Anonymous



Thanks for the answer.

But the problem continues.

Because I want show the results of the LAST POLL, not a especific poll. I want show the last poll result automaticaly. Some thing like $php_poll->poll_process("newest"), but with view_poll_result.

Its there any solution????
Anonymous



Ok, I solved my self. Just editing class_poll.php in the view_poll_result function. Thanks anyway.
Anonymous



can you tell me what have you modified?? I want the same as yours, show automatically the last poll.


thanks a lot.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum