<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Showing Comments"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Showing Comments"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Showing Comments</title>
				<description><![CDATA[ Hi<br /> <br /> Is there any way of combining the output of the script so I can have random polls with links to other polls under them as well as comments such as in the Demo 2.<br /> <br /> The code I'm using is this:<br /> <br /> <br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = "d:/htdocs/poll";<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 /> require $poll_path."/include/class_plist.php";<br /> $CLASS["db"] = new polldb_sql;<br /> $CLASS["db"]-&gt;connect(); <br /> <br /> $php_poll = new plist();<br /> <br /> /* poll */<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 /> 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("random");<br /> }<br /> <br /> /* poll list */<br /> $php_poll-&gt;set_template("poll_list");<br /> $php_poll-&gt;set_date_format("d/m/Y");<br /> echo $php_poll-&gt;view_poll_list();<br /> echo $php_poll-&gt;get_list_pages();<br /> <br /> ?&gt;<br /> <br /> <br /> The comments from demo 2 are:<br /> <br /> <br /> * poll comments */<br /> $php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(5);<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(1);<br /> echo $php_poll-&gt;get_comment_pages(1); <br /> <br /> <br /> Anyone know a way to show the correct comments for the right poll?<br /> <br /> Thanks  <img src="https://proxy2.de/forum//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" /> <br /> <br /> Micky]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/1690/4182.php</guid>
				<link>https://proxy2.de/forum/posts/preList/1690/4182.php</link>
				<pubDate><![CDATA[Fri, 7 Mar 2003 22:12:28]]> GMT</pubDate>
				<author><![CDATA[ micky2k2]]></author>
			</item>
	</channel>
</rss>