<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Poll-comments in the popup window"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Poll-comments in the popup window"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Poll-comments in the popup window</title>
				<description><![CDATA[ Hi,<br /> <br /> At first: thank you for this script, it is wonderfull!<br /> <br /> The poll works fine, but I have a problem and can not find the solution in the allready posted topics in this forum.<br /> <br /> The poll is on the first page of my site where I have no room for the comments. So I use the popup-poll, which results are shown in a new window. But how do I get the comments in that window?<br /> <br /> In the demo I found how to show the comments, but then they appear on my first page and not in the popup window with the results! How do I get them there?<br /> <br /> Additional question for the next release of your script: why aren't the comments automatically shown when you enable comments in the poll-editor? The mailform does! I see in the forum that a lot of people are confused about the comments, because they are not shown when you use the standard php-code to include the poll.<br /> <br /> Thanks for your time, I hope you can help me out.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3651/10618.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3651/10618.php</link>
				<pubDate><![CDATA[Sat, 25 Sep 2004 22:09:33]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Solution found!</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/3651/10640.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3651/10640.php</link>
				<pubDate><![CDATA[Sun, 26 Sep 2004 12:58:12]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>