<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Comments &amp; Results"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Comments &amp; Results"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Comments &amp;amp; Results</title>
				<description><![CDATA[ Hi<br /> <br /> I am running the Advance Poll script on my computer before I upload it to a website.  I am using random polls with a pop up window for the results but I also want the comments for that particular poll to be displayed with them.  I am at a loss can anyone help as I cannot figure out how this can be done.<br /> <br /> Cheers!!<br /> Will]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3276/8765.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3276/8765.php</link>
				<pubDate><![CDATA[Thu, 24 Jun 2004 04:02:20]]> GMT</pubDate>
				<author><![CDATA[ WillBoss]]></author>
			</item>
			<item>
				<title>comments displayed with them ...</title>
				<description><![CDATA[ I use this code for Advance Poll script,<br /> <br /> I tried many combinations to get this right for my page latout,<br /> <br /> however, the limiting line was always:<br /> <br /> $CLASS["db"]-&gt;connect(); <br /> ***   $php_poll = new pollcomment(); ***<br /> <br /> &lt;?php<br /> $poll_path = "/home/web/poll/db";<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 /> $php_poll = new pollcomment();<br /> /* question */<br /> echo $php_poll-&gt;get_poll_question(1);<br /> /* poll */<br /> $php_poll-&gt;set_template_set("plain");<br /> $php_poll-&gt;set_max_bar_length(45);<br /> $php_poll-&gt;set_max_bar_height(3);<br /> echo $php_poll-&gt;poll_process(1);<br /> /* poll comments */<br /> $php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(2);<br /> $php_poll-&gt;set_date_format("d/m/Y");<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 /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3276/8880.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3276/8880.php</link>
				<pubDate><![CDATA[Tue, 29 Jun 2004 04:36:10]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>This is no solution</title>
				<description><![CDATA[ Rayzun, I tried your code but this is not the solution. There is not even a pop-up window! The question is: how to get the commands in the popup-window with the results of the poll.<br /> <br /> I have posted a new topic on september 26th with this question.<br /> <br /> Or, Will Boss, did you allready work it out? Please let me know then.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3276/10636.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3276/10636.php</link>
				<pubDate><![CDATA[Sun, 26 Sep 2004 12:03:36]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>I found it!!!</title>
				<description><![CDATA[ Hi, I found the solution myself! I am new to php but tried things out and it works!<br /> <br /> Before you trie the solution I found, make a copy of the original popup.php, just in case that my solution does not work out for you.<br /> <br /> And: your poll_path in the first line of the code can be different from mine! Perhaps you need the poll_path from the original popup.php file.<br /> <br /> Open the file popup.php, and replace the php-code between the &lt;body&gt;tags with this one:<br /> <br /> -----------------------------------<br /> <br /> &lt;?php<br /> $poll_path = "/home/virtual/site24/fst/var/www/html/poll";<br /> require $poll_path."/include/class_pollcomment.php";<br /> $php_poll = new pollcomment();<br /> <br /> $php_poll-&gt;set_template_set("popup");<br /> if (isset($poll_ident) &amp;&amp; isset($action)) {<br />     $php_poll-&gt;set_max_bar_length(110);<br />     echo $php_poll-&gt;poll_process($poll_ident);<br /> 	<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 /> 	<br /> 	echo $php_poll-&gt;view_poll_comments($poll_ident);<br /> 	echo $php_poll-&gt;get_comment_pages($poll_ident); <br /> }<br /> ?&gt;<br /> <br /> -----------------------------------<br /> <br /> In the file where you want to show your poll you embed your poll with this code (replace the "4" in the last lines with the ID-number of your poll):<br /> <br /> &lt;?php <br /> /* Include this before your html code */<br /> include "./poll_cookie.php"; <br /> ?&gt;<br /> <br /> &lt;?php<br /> /* Include this in the body of the html code where you want to show the poll*/<br /> $poll_path = "/home/virtual/site24/fst/var/www/html/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 /> <br /> $CLASS["db"] = new polldb_sql;<br /> $CLASS["db"]-&gt;connect(); <br /> <br /> $php_poll = new poll();<br /> <br /> $php_poll-&gt;set_template_set("popup");<br /> if ($php_poll-&gt;is_valid_poll_id(4)) {<br />     echo $php_poll-&gt;display_poll(4);<br /> } <br /> <br /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3276/10639.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3276/10639.php</link>
				<pubDate><![CDATA[Sun, 26 Sep 2004 12:56:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>