<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Poll question - need some help"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Poll question - need some help"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Poll question - need some help</title>
				<description><![CDATA[ I want to display the latest poll with the comments below it, but I can't seem to figure out how to do it.<br /> <br /> I have this:<br /> <br /> $php_poll-&gt;set_template_set("simple");<br /> if (isset($HTTP_GET_VARS['poll_id'])) {<br />    echo $php_poll-&gt;poll_process($HTTP_GET_VARS['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;poll_process("newest");<br /> 	$latestpoll = $php_poll-&gt;poll_process("newest");<br /> }<br /> <br /> That displays the latest poll. But this below:<br /> <br /> $php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(4);<br /> $php_poll-&gt;set_date_format("d/m/Y H:i");<br /> $php_poll-&gt;data_order_by("time","desc");<br /> echo $php_poll-&gt;view_poll_comments(newest);<br /> echo $php_poll-&gt;get_comment_pages(newest); <br /> <br /> Doesn't work, I have to put a number in there instead of "newest" in order to make it work.<br /> <br /> How can I get this to display the latest comments as well? Any ideas?<br /> <br /> Thanks,<br /> <br /> Mike]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/5328.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/5328.php</link>
				<pubDate><![CDATA[Wed, 2 Jul 2003 07:33:19]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ If you had to put a number in instead of 'newest' say for example your latest poll is number 21 then in your second bit of code replace the 'newest' bit with 21 and it should display the comments associated with that poll.<br /> <br /> Hope that helps!<br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/5333.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/5333.php</link>
				<pubDate><![CDATA[Wed, 2 Jul 2003 17:42:59]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hmm,<br /> <br /> Is it not possible to get the comments to display the newest poll? I don't feel like updating my page every time I add a new poll, I want it to be dynamic.<br /> <br /> Cheers,<br /> Sebastian]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6740.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6740.php</link>
				<pubDate><![CDATA[Mon, 8 Dec 2003 01:14:15]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ the word newest must be double quotes " &lt;--<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6746.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6746.php</link>
				<pubDate><![CDATA[Mon, 8 Dec 2003 19:16:43]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I did that, nothing changed <img src="https://proxy2.de/forum//images/smilies/9d71f0541cff0a302a0309c5079e8dee.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6754.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6754.php</link>
				<pubDate><![CDATA[Tue, 9 Dec 2003 08:36:48]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re: Advanced Poll question - need some help</title>
				<description><![CDATA[ Did you change this...<br /> <br /> [quote="Chandler Mike"]$php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(4);<br /> $php_poll-&gt;set_date_format("d/m/Y H:i");<br /> $php_poll-&gt;data_order_by("time","desc");<br /> echo $php_poll-&gt;view_poll_comments(newest);<br /> echo $php_poll-&gt;get_comment_pages(newest);[/quote]<br /> <br /> To this?<br /> <br /> [quote="Chandler Mike"]$php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(4);<br /> $php_poll-&gt;set_date_format("d/m/Y H:i");<br /> $php_poll-&gt;data_order_by("time","desc");<br /> echo $php_poll-&gt;view_poll_comments("newest");<br /> echo $php_poll-&gt;get_comment_pages("newest");[/quote]<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6756.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6756.php</link>
				<pubDate><![CDATA[Tue, 9 Dec 2003 16:33:30]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Yes I changed it. I posted my poll pages below as a proof, hehe ;)<br /> <br /> [code]<br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = &quot;D&#58;/web/apache/Apache2/htdocs/features/poll&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/class_mysql.php&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 /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set&#40;&quot;default&quot;&#41;;<br /> $php_poll-&gt;set_max_bar_length&#40;125&#41;;<br /> $php_poll-&gt;set_max_bar_height&#40;8&#41;;<br /> 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;<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 /> <br /> <br /> if &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; &#123;<br />    $html_form = $php_poll-&gt;comment_process&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;;<br /> &#125; else &#123;<br />    $html_form = $php_poll-&gt;comment_process&#40;&quot;newest&quot;&#41;;<br /> &#125;<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 /> if &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; &#123;<br />    echo $php_poll-&gt;view_poll_comments&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;;<br /> &#125; else &#123;<br />    echo $php_poll-&gt;view_poll_comments&#40;&quot;newest&quot;&#41;;<br /> &#125;<br /> <br /> if &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; &#123;<br />    echo $php_poll-&gt;get_comment_pages&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;;<br /> &#125; else &#123;<br />    echo $php_poll-&gt;get_comment_pages&#40;&quot;newest&quot;&#41;;<br /> &#125;<br /> <br /> echo &quot;&lt;br&gt;&lt;br&gt;&lt;div class=subtitle2&gt;Post a comment&lt;/div&gt;&quot;;<br /> <br /> /* form */<br /> echo $html_form;<br /> <br /> echo &quot;&lt;div class=subtitle2&gt;All Polls&lt;/div&gt;&lt;br&gt;&quot;;<br /> <br /> $php_poll = new plist&#40;&#41;;<br /> <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 /> <br /> ?&gt;<br /> [/code][/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6761.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6761.php</link>
				<pubDate><![CDATA[Wed, 10 Dec 2003 01:23:23]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I'd like also to view in my index page only the question<br /> of poll, so,<br /> <br /> I put like the demo example #4 <br /> this code<br /> <br /> [quote]/* path */<br /> $poll_path = "/web/htdocs/www.padan.org/home/PADAN.IT/sondagg";<br /> <br /> require $poll_path."/include/config.inc.php";<br /> require $poll_path."/include/$POLLDB[class]";<br /> require $poll_path."/include/class_poll.php";<br /> require $poll_path."/include/class_pollcomment.php";<br /> $CLASS["db"] = new polldb_sql;<br /> $CLASS["db"]-&gt;connect(); <br /> <br /> $php_poll = new pollcomment();<br /> <br /> /* question */<br /> echo $php_poll-&gt;get_poll_question(2);[/quote]<br /> <br /> <br /> but it show me only the 2nd ID<br /> if i write newest or "newest" instead of 2<br /> it doesn't work...<br /> <br /> what i have to do to show the lastest question<br /> without editing every time the code manually?!?<br /> <br /> thanx a lot]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/2089/6867.php</guid>
				<link>https://proxy2.de/forum/posts/preList/2089/6867.php</link>
				<pubDate><![CDATA[Mon, 29 Dec 2003 02:53:18]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>