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 
Messages posted by: mercadoalex
Forum Index » Profile for mercadoalex » Messages posted by mercadoalex
Author Message
I found that this guy posted a pretty similar question.
This is the thread
one poll to the next poll without showing results?
http://proxy2.de/forum/viewtopic.php?t=5193

but stilll unanswered...
Code:
if ($action=="results" && $poll_id==$poll_ident) {
return $this->view_poll_result($poll_id,0);
} elseif (!$is_active) {
return $this->view_poll_result($poll_id,0);
} elseif ($is_active && $voted) {
return $this->view_poll_result($poll_id,1);
} elseif (!$voted && isset($option_id) && $action=="vote" && $poll_id==$poll_ident) {
$this->update_poll($poll_id,$option_id);
return $this->view_poll_result($poll_id,0);
} else {
return $this->display_poll($poll_id);
}

thats the part of the code in class_poll.php that tells it what to do once you have voted. Well part of it does. The line that tells it to show the results after posting is
Code:
return $this->view_poll_result($poll_id,1);

So instead of view the poll results, I want to display another poll,
return $this->display_poll($poll_id);
where $poll_id must indicate the following poll, so I tried this
return $this->display_poll($poll_id + 1);
but It doesn´t work correctly
Be sure that no HTML is before your php code
not even a blank line
I want to display several polls one after the other, how can I achieve it?

I have about 15 polls and I want the user to answer one by one,
showing the results at the end of the whole process I mean until the
user has completed the 15 polls.

Is that possible?
Any help will be great?
regards, Alex
 
Forum Index » Profile for mercadoalex » Messages posted by mercadoalex
Go to:   
Based on the open source JForum