<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "How to combine Poll List &amp; Comment?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "How to combine Poll List &amp; Comment?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>How to combine Poll List &amp;amp; Comment?</title>
				<description><![CDATA[ I see that another user has asked same question, but so far there is no answer. <br /> <br /> I tried to resolve the issue tough I'm not familiar in PHP at all. I got some success but only partial. Meaning that I added the Poll List to Demo 4 Poll version (the code is below). When I load another poll from the list everything is OK  - it loads with its comments and submission form. The problem is that when I try to post a comment under that poll nothing happens. Except that the initial poll page loads.<br /> <br /> I believe many people would want to combine the list and the comments option, that is why I raise the question again. <br /> <br /> Anybody help?<br /> <br /> Here is the code:<br /> <br /> &lt;?php<br /> <br /> require_once $poll_path."pollphp/include/config.inc.php";<br /> require_once $poll_path."pollphp/include/$POLLDB[class]";<br /> require_once $poll_path."pollphp/include/class_poll.php";<br /> require_once $poll_path."pollphp/include/class_pollcomment.php";<br /> require_once $poll_path."pollphp/include/class_captchatest.php";<br /> require_once $poll_path."pollphp/include/class_plist.php";<br /> <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 /> <br /> if (isset($_GET['poll_id'])) {<br />    echo $php_poll-&gt;poll_process($_GET['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;poll_process("1");<br /> }<br /> <br /> /* poll list */<br /> $php_poll-&gt;set_template("poll_list");<br /> $php_poll-&gt;set_date_format("m/d/Y");<br /> echo $php_poll-&gt;view_poll_list();<br /> echo $php_poll-&gt;get_list_pages();<br /> <br /> $php_poll = new pollcomment();<br /> <br /> /* construct the form */<br /> $php_poll-&gt;set_template("poll_form");<br /> $php_poll-&gt;set_form_error(array("name" =&gt; "Please enter your name.",  "email" =&gt; "You must specify your e-mail address.",  "message" =&gt; "You must specify a message.",    "captcha" =&gt; "You must specify the correct key.")); <br /> <br /> if (isset($_GET['poll_id'])) {<br />    echo $php_poll-&gt;comment_process($_GET['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;comment_process("1");<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 /> <br /> if (isset($_GET['poll_id'])) {<br />    echo $php_poll-&gt;view_poll_comments($_GET['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;view_poll_comments("1");<br /> }<br /> <br /> if (isset($_GET['poll_id'])) {<br />    echo $php_poll-&gt;get_comment_pages($_GET['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;get_comment_pages("1");<br /> }<br /> <br /> /* form */<br /> echo $html_form;<br /> ?&gt;]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7137/24152.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7137/24152.php</link>
				<pubDate><![CDATA[Tue, 29 Jul 2008 19:10:12]]> GMT</pubDate>
				<author><![CDATA[ hityr5yr]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote]I believe many people would want to combine the list and the comments option, that is why I raise the question again. [/quote]<br /> <br /> 1. admin &gt; choose your poll &gt; make sure "Allow comments" is checked in the lower right of the page for that poll<br /> 2. To show all the Comments below your poll on your page after a vote has been cast, you need to do this, found in the setup instructions, referring to the instructions you see after you first install the app, not the readme.txt, although it may be there as well:<br /> <br /> [quote]Advanced Poll also support comments:<br /> <br /> For comments to work, you must have checked off the "allow comments" box when creating your poll. If you did that, then there will automatically be a link to add a comment to a poll just using the process_poll command. However, the comments will not be displayed anywhere (besides in the admin area), unless you add some more PHP code: &lt;?php<br /> include_once "/booth.php"; # don't use this again if you already have it on the page somewhere.<br /> $php_poll-&gt;set_template("poll_comment"); # required to switch to comment mode!<br /> $php_poll-&gt;set_comments_per_page(5); # maximum comments to show per page.<br /> $php_poll-&gt;set_date_format("d/m/Y H:i"); # how to display the time stamp on comments.<br /> $php_poll-&gt;data_order_by("time","desc"); # how to sort the comments. (show oldest first with ("time","asc"))<br /> echo $php_poll-&gt;view_poll_comments(ID#); # displays the comments for poll ID#.<br /> echo $php_poll-&gt;get_comment_pages(ID#); # displays "next page","last page" thing when you have lots of comments.<br /> ?&gt;[/quote]<br /> <br /> If you have modified the php scripts, I'm not sure the above will work. In that case, I would replace your modifications with the original scripts and try it.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/7137/24180.php</guid>
				<link>https://proxy2.de/forum/posts/preList/7137/24180.php</link>
				<pubDate><![CDATA[Fri, 15 Aug 2008 19:10:17]]> GMT</pubDate>
				<author><![CDATA[ Jack A]]></author>
			</item>
	</channel>
</rss>