<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to display several polls, one after the other ?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "How to display several polls, one after the other ?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to display several polls, one after the other ?</title>
				<description><![CDATA[ I want to display several polls one after the other, how can I achieve it? <br /> <br /> I have about 15 polls and I want the user to answer one by one, <br /> showing the results at the end of the whole process I mean until the <br /> user has completed the 15 polls.<br /> <br /> Is that possible? <br /> Any help will be great?<br /> regards, Alex]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6401/22559.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6401/22559.php</link>
				<pubDate><![CDATA[Sat, 14 Apr 2007 00:09:43]]> GMT</pubDate>
				<author><![CDATA[ mercadoalex]]></author>
			</item>
			<item>
				<title>this is where show the results is indicated -- replace</title>
				<description><![CDATA[ Code: <br />             if ($action=="results" &amp;&amp; $poll_id==$poll_ident) { <br />                 return $this-&gt;view_poll_result($poll_id,0); <br />             } elseif (!$is_active) { <br />                 return $this-&gt;view_poll_result($poll_id,0); <br />             } elseif ($is_active &amp;&amp; $voted) { <br />                 return $this-&gt;view_poll_result($poll_id,1); <br />             } elseif (!$voted &amp;&amp; isset($option_id) &amp;&amp; $action=="vote" &amp;&amp; $poll_id==$poll_ident) { <br />                 $this-&gt;update_poll($poll_id,$option_id); <br />                 return $this-&gt;view_poll_result($poll_id,0); <br />             } else { <br />                 return $this-&gt;display_poll($poll_id); <br />             } <br /> <br /> 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 <br /> Code: <br /> return $this-&gt;view_poll_result($poll_id,1); <br /> <br /> So instead of view the poll results, I want to display another poll, <br /> return $this-&gt;display_poll($poll_id); <br /> where $poll_id must indicate the following poll, so I tried this<br /> return $this-&gt;display_poll($poll_id + 1); <br /> but It doesn´t work correctly]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6401/22569.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6401/22569.php</link>
				<pubDate><![CDATA[Sun, 15 Apr 2007 19:17:57]]> GMT</pubDate>
				<author><![CDATA[ mercadoalex]]></author>
			</item>
			<item>
				<title>same</title>
				<description><![CDATA[ I found that this guy posted a pretty similar question.<br /> This is the thread<br /> one poll to the next poll without showing results?<br /> <a class="snap_shots" href="http://proxy2.de/forum/viewtopic.php?t=5193" target="_blank" rel="nofollow">http://proxy2.de/forum/viewtopic.php?t=5193</a><br /> <br /> but stilll unanswered...]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6401/22571.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6401/22571.php</link>
				<pubDate><![CDATA[Sun, 15 Apr 2007 20:07:26]]> GMT</pubDate>
				<author><![CDATA[ mercadoalex]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I did experience the same problem.<br /> <br /> So I did write some code to create a survey of several polls and in the end display the results.<br /> Save this as a file (for example [color="darkblue"]survey.php[/color]) in the root path of the poll scripts.<br /> Change the paths in the file for the include_once to your own paths.<br /> <br /> [quote]<br /> [color="darkblue"]&lt;?php<br /> // Important! You have to include it before your html code<br /> include_once "/poll/poll_cookie.php";<br /> ?&gt;<br /> <br /> &lt;html&gt;<br /> &lt;body&gt;<br /> &lt;?php<br /> include_once "/poll/booth.php";<br /> <br /> // Determine the poll ID's to use in this survey<br /> $poll_start_id=4;        //The first poll ID to start<br /> $poll_end_id=9;         //The last poll ID to include<br /> <br /> <br /> // Set Variables for the poll class<br /> $php_poll-&gt;set_template_set("plain");<br /> $php_poll-&gt;set_max_bar_length(125);<br /> $php_poll-&gt;set_max_bar_height(10);<br /> <br /> <br /> // Determine if the form is allready posted and determine the poll ID<br /> if (!isset($_POST['poll_ident'])) {<br />       // Not posted yet so start with the first ID<br />       $poll=$poll_start_id;<br />       }<br />       else {<br />       // Posted, so process the poll and add 1 to the poll ID<br />       $php_poll-&gt;poll_process($_POST['poll_ident']);<br />       $poll=$_POST['poll_ident']+1;<br /> }<br /> <br /> // Determine if a new poll has to be shown<br /> if ($poll&lt;=$poll_end_id) {<br />       // While the last ID is not reached yet show the next poll<br />       echo "Variabele: ".$_POST['poll_ident'];<br />       echo $php_poll-&gt;poll_process($poll);<br />       }<br />       elseif ($poll==$poll_comment_id) {<br />       <br />       }<br />       else {<br />       // If the last poll is reached then show the results<br />             for ( $counter = $poll_start_id; $counter &lt;= $poll_end_id; $counter += 1) {<br />                   echo $php_poll-&gt;view_poll_result($counter);<br />       }<br /> }<br /> <br /> <br /> <br /> ?&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;[/color][/quote]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6401/23189.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6401/23189.php</link>
				<pubDate><![CDATA[Sun, 17 Jun 2007 14:52:55]]> GMT</pubDate>
				<author><![CDATA[ maurice]]></author>
			</item>
	</channel>
</rss>