<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "latest poll in Advanced Poll Script..."]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "latest poll in Advanced Poll Script..."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>latest poll in Advanced Poll Script...</title>
				<description><![CDATA[ Hello !<br /> I've tried and tried but didn't succeed...<br /> <br /> In the sheme :<br /> <br /> [code]/* question */<br /> echo $php_poll-&gt;get_poll_question&#40;2&#41;;<br /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set&#40;&quot;plain&quot;&#41;;<br /> $php_poll-&gt;set_max_bar_length&#40;125&#41;;<br /> $php_poll-&gt;set_max_bar_height&#40;10&#41;;<br /> echo $php_poll-&gt;poll_process&#40;2&#41;;<br /> <br /> /* construct the form */<br /> $php_poll-&gt;set_template&#40;&quot;poll_form&quot;&#41;;<br /> $php_poll-&gt;set_form_error&#40;array&#40;<br />     &quot;name&quot; =&gt; &quot;Please enter your name.&quot;,<br /> // &quot;email&quot; =&gt; &quot;You must specify your e-mail address.&quot;,<br />     &quot;message&quot; =&gt; &quot;You must specify a message.&quot;<br /> &#41;&#41;;<br /> $html_form = $php_poll-&gt;comment_process&#40;2&#41;;<br /> <br /> /* poll comments */<br /> $php_poll-&gt;set_template&#40;&quot;poll_comment&quot;&#41;;<br /> $php_poll-&gt;set_comments_per_page&#40;5&#41;;<br /> $php_poll-&gt;set_date_format&#40;&quot;d/m/Y H&#58;i&quot;&#41;;<br /> $php_poll-&gt;data_order_by&#40;&quot;time&quot;,&quot;desc&quot;&#41;;<br /> echo $php_poll-&gt;view_poll_comments&#40;2&#41;;<br /> echo $php_poll-&gt;get_comment_pages&#40;2&#41;; <br /> <br /> /* form */<br /> echo $html_form;[/code]<br /> <br /> How to get instead of the pool numlber 2, <br /> either the latest<br /> or the poll_ID like in <br /> <br /> [code]if &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; &#123;<br />    echo $php_poll-&gt;poll_process&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;;<br /> &#125; else &#123;<br />    echo $php_poll-&gt;poll_process&#40;&quot;newest&quot;&#41;;<br /> &#125;[/code]<br /> <br /> <br /> So that I can comment every poll and then it displays below the poll...<br /> <br /> thanks for your help ! :)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14235.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14235.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 16:52:39]]> GMT</pubDate>
				<author><![CDATA[ zorglub]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ So what are you trying to do exactly?<br /> <br /> Just show the newest poll?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14239.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14239.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 19:25:05]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ in fact I just succeded doing this :<br /> <br /> [code]<br /> /* Include this before your html code */<br /> include &quot;./poll_cookie.php&quot;;<br /> <br /> /* path */<br /> $poll_path = &quot;/home/ruechami/www/zorg/poll&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> require $poll_path.&quot;/include/class_pollcomment.php&quot;;<br /> require $poll_path.&quot;/include/class_plist.php&quot;;<br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql;<br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;; <br /> <br /> $php_poll = new pollcomment&#40;&#41;;<br /> <br /> /* last poll */<br /> <br /> if &#40;!isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41;<br /> 	&#123;<br /> 		$poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;<br /> 	&#125;<br /> <br /> <br /> /* question */<br /> echo $php_poll-&gt;get_poll_question&#40;$poll_id&#41;;<br /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set&#40;&quot;plain&quot;&#41;;<br /> $php_poll-&gt;set_max_bar_length&#40;125&#41;;<br /> $php_poll-&gt;set_max_bar_height&#40;10&#41;;<br /> echo $php_poll-&gt;poll_process&#40;$poll_id&#41;;<br /> <br /> /* construct the form */<br /> $php_poll-&gt;set_template&#40;&quot;poll_form&quot;&#41;;<br /> $php_poll-&gt;set_form_error&#40;array&#40;<br />     &quot;name&quot; =&gt; &quot;Please enter your name.&quot;,<br /> // &quot;email&quot; =&gt; &quot;You must specify your e-mail address.&quot;,<br />     &quot;message&quot; =&gt; &quot;You must specify a message.&quot;<br /> &#41;&#41;;<br /> $html_form = $php_poll-&gt;comment_process&#40;$poll_id&#41;;<br /> <br /> <br /> /* poll comments */<br /> $php_poll-&gt;set_template&#40;&quot;poll_comment&quot;&#41;;<br /> $php_poll-&gt;set_comments_per_page&#40;5&#41;;<br /> $php_poll-&gt;set_date_format&#40;&quot;d/m/Y H&#58;i&quot;&#41;;<br /> $php_poll-&gt;data_order_by&#40;&quot;time&quot;,&quot;desc&quot;&#41;;<br /> echo $php_poll-&gt;view_poll_comments&#40;$poll_id&#41;;<br /> echo $php_poll-&gt;get_comment_pages&#40;$poll_id&#41;; <br /> <br /> /* form */<br /> echo $html_form;<br /> <br /> $php_poll = new plist&#40;&#41;;<br /> /* poll list */<br /> $php_poll-&gt;set_template&#40;&quot;poll_list&quot;&#41;;<br /> $php_poll-&gt;set_date_format&#40;&quot;m/d/Y&quot;&#41;;<br /> echo $php_poll-&gt;view_poll_list&#40;&#41;;<br /> echo $php_poll-&gt;get_list_pages&#40;&#41;;<br /> [/code]<br /> <br /> and in the poll form :<br /> [code]      &lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward?poll_id=$poll_id&quot;&gt;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14243.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14243.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 19:32:37]]> GMT</pubDate>
				<author><![CDATA[ zorglub]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ You could shorten a bit...<br /> <br /> [code]/* last poll, since poll_id won't be set since you always want the newest poll you can do this... */<br /> <br /> $poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;[/code]<br /> <br /> [code]&lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward?poll_id=$poll_id&quot;&gt;[/code]<br /> <br /> What does the last bit of code do exactly?<br /> <br /> Forwards back to the poll and skips the results?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14245.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14245.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 19:37:56]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ well well..<br /> <br /> [code]/* last poll, since poll_id won't be set since you always want the newest poll you can do this... */ <br /> <br /> $poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;[/code]<br /> <br /> isn't working<br /> <br /> and <br /> <br /> [code]&lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward?poll_id=$poll_id&quot;&gt;[/code]<br /> <br /> isto make so that the comment is posted to the proper poll...<br /> <br /> makbe I could have done better... But this code is too complicate for me ;)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14247.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14247.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 20:03:11]]> GMT</pubDate>
				<author><![CDATA[ zorglub]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="zorglub"]well well..<br /> <br /> [code]/* last poll, since poll_id won't be set since you always want the newest poll you can do this... */ <br /> <br /> $poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;[/code]<br /> <br /> isn't working<br /> <br /> and <br /> <br /> [code]&lt;form method=&quot;post&quot; action=&quot;$this-&gt;form_forward?poll_id=$poll_id&quot;&gt;[/code]<br /> <br /> isto make so that the comment is posted to the proper poll...<br /> <br /> makbe I could have done better... But this code is too complicate for me ;)[/quote]<br /> <br /> Okay i get the poll comment form.<br /> <br /> btw, your supposed to use that code instead of the if bit not the whole thing.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14248.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14248.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 20:04:37]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]/* last poll, since poll_id won't be set since you always want the newest poll you can do this... */ <br /> <br /> $poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;[/code]<br /> <br /> [code]if &#40;!isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; <br /> &#123; <br />    $poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;; <br /> &#125;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14249.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14249.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 20:05:45]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I forgot to say I have the archives (and therefore links to them) on the same page <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/14261.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/14261.php</link>
				<pubDate><![CDATA[Thu, 10 Feb 2005 23:04:55]]> GMT</pubDate>
				<author><![CDATA[ zorglub]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ try this:<br /> <br /> <br /> [code]<br /> <br /> if &#40;!isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41; &amp; !isset&#40;$HTTP_GET_VARS&#91;'poll_ident'&#93;&#41;&#41;<br /> &#123;$poll_id = $php_poll-&gt;get_latest_poll_id&#40;&#41;;&#125; <br /> <br /> else <br /> &#123;<br /> if &#40;!isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41;   &#123;$poll_id = $_GET&#91;poll_ident&#93;;&#125; <br /> else &#123;$poll_id = $_GET&#91;poll_id&#93;;&#125; <br /> &#125;<br /> <br /> [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4249/16222.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4249/16222.php</link>
				<pubDate><![CDATA[Mon, 23 May 2005 00:34:34]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>