<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Poll: Comment option requires real database?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Poll: Comment option requires real database?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Poll: Comment option requires real database?</title>
				<description><![CDATA[ I have this (test)poll on my site<br /> http://www.turkku.com/poll/karmeat.php<br /> <br /> It seems to work ok, in general. However, I also saw this demo #2 is available http://proxy2.de/poll/demo_2.php<br /> <br /> I'd love it. It would be nice cos' on my on-coming poll people would then have a chance to tell [i]why[/i] they choosed their song. Why they hate it!  :) <br /> <br /> I build another test site and copied the code. It didn't work. It stucked on line<br /> [code]require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;[/code]<br /> My AP runs in textmode. Is that the cause? Does this nice comment option require real database (MySQL)?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16946.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16946.php</link>
				<pubDate><![CDATA[Thu, 7 Jul 2005 16:39:10]]> GMT</pubDate>
				<author><![CDATA[ yesper]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Instead of copying the code on the demo page, use the file demo2.php that came with the textfile version and tweak it to fit your site.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16966.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16966.php</link>
				<pubDate><![CDATA[Fri, 8 Jul 2005 08:16:22]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Yeah. But if I could do that why should I ask stupido questions here?  <img src="https://proxy2.de/forum//images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" /><br /> <br /> The problems here is that I'm so newbie with PHP: I don't understand how it works. To me it's a rocket science and unfortunately I don't have time to learn it right now.<br /> <br /> Again, my testpoll is here<br /> <a class="snap_shots" href="http://www.turkku.com/poll/karmeat.php" target="_blank" rel="nofollow">http://www.turkku.com/poll/karmeat.php</a><br /> <br /> It's simple and so is the code:<br /> <br /> - - -<br /> &lt;?php include_once "/www/asiakkaat/turkku/public_html/poll/poll_cookie.php";<br /> ?&gt;<br /> <br /> [ usual html stuff ]<br /> <br /> &lt;?php include_once "/www/asiakkaat/turkku/public_html/poll/booth.php";<br /> echo $php_poll-&gt;poll_process(4);<br /> ?&gt;<br /> <br /> [ missing PHP code should be here? ]<br /> <br /> [ usual html stuff ]<br /> - - -<br /> <br /> That's all and it works ok — except the comments which is not shown at all. Comment popup form works all right: I can write comments and send it and even read them on the Admin Panel. But they are never shown anywhere on [i]page[/i].<br /> <br /> So it's obvious a piece of "showing code" is missing here. I've tried everything, but it don't work. I know it's so simple, just a couple of RIGHT lines of code.<br /> <br /> Please, could you amber222 or someone else help stupido newbie and copy those required line here?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16967.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16967.php</link>
				<pubDate><![CDATA[Fri, 8 Jul 2005 09:17:20]]> GMT</pubDate>
				<author><![CDATA[ yesper]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Did you even look at the demo2.php file that came with the download?  The code is in there.<br /> <br /> [code] &lt;?php<br /> /* path */<br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> require $poll_path.&quot;/include/class_pollcomment.php&quot;;<br /> <br /> $php_poll = new pollcomment&#40;&#41;;<br /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set&#40;&quot;plain&quot;&#41;;<br /> $php_poll-&gt;set_max_bar_length&#40;125&#41;;<br /> $php_poll-&gt;set_max_bar_height&#40;10&#41;;<br /> echo $php_poll-&gt;view_poll_result&#40;1&#41;;<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 /> echo $php_poll-&gt;view_poll_comments&#40;1&#41;;<br /> echo &quot;&lt;font size=1 face=Verdana&gt;&quot;.$php_poll-&gt;get_comment_pages&#40;1&#41;.&quot;&lt;/font&gt;&quot;;<br /> <br /> ?&gt;[/code]<br /> Since you aren't using a database (db), you do not refer to one.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16970.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16970.php</link>
				<pubDate><![CDATA[Fri, 8 Jul 2005 13:45:30]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ # [i]Did you even look at the demo2.php file that came with the download?[/i]<br /> <br /> About thousands times. It just didn't work... nore did the one You pasted here.<br /> <br /> These two lines (64-65 here) seems to be critical:<br /> <br /> [code]require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;[/code]<br /> <br /> They cause errors and 'comment section' disappears. Like this:<br /> <br /> "Warning: main(/include/config.inc.php): failed to open stream: No such file or directory in /www/asiakkaat/turkku/public_html/poll/karmeat.php on line 64"<br /> and<br /> "Fatal error: main(): Failed opening required '/include/config.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /www/asiakkaat/turkku/public_html/poll/karmeat.php on line 64"<br /> <br /> I REMOVED them and did another test version and<br /> http://www.turkku.com/poll/karmeat_ORIG.php<br /> <br /> and BANG. Almost. Now the 'comments' are there and also are the results, but instead the 'vote section' is missing. But does this indicate that the trouble ain't there?<br /> <br /> This is way too much much for a newbie like me. But is it the PATHS that are somehow badly wrong here?<br /> <br /> Opening line:<br /> [code]&lt;?php<br /> // Important! You have to include it before your html code<br /> include_once &quot;/www/asiakkaat/turkku/public_html/poll/poll_cookie.php&quot;;<br /> ?&gt;[/code]<br /> <br /> So all of the stuff are under<br /> [code]&quot;/www/asiakkaat/turkku/public_html/poll/[/code]<br /> <br /> I'm beginning to loose my hope... :-([/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16974.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16974.php</link>
				<pubDate><![CDATA[Fri, 8 Jul 2005 16:33:32]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ It's all pretty clear now.<br /> <br /> Sorry. I badly misunderstood the whole thing, that is, HOW those demos should be used! Two days hard work almost for nothing, but I'm older and wiser now. :-)<br /> However, poor documentation was quite frustrating. I didn't expect any red carpet, champagne or 100s of PDF pages, but 2-3 lines in Readme file would have done. :-o<br /> <br /> One last question remains: How do I set a cookie expire after 1 hour?<br /> <br /> No cookie option available in Admin Panel. Obviously some file(s) requires a bit of tweaking here. And, depending on that, should this first code line contain <br /> [code]include_once[/code]or just<br /> [code]include[/code]<br /> Thanx for your time and patience!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/16996.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/16996.php</link>
				<pubDate><![CDATA[Sat, 9 Jul 2005 11:50:19]]> GMT</pubDate>
				<author><![CDATA[ yesper]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ go to the file poll_cookie.php or whatever it's called.<br /> the default is 96 hours, it shold be within the first 10 lines of the file.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/17000.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/17000.php</link>
				<pubDate><![CDATA[Sat, 9 Jul 2005 15:18:02]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Yup. The first actual line:<br /> [code]$cookie_expire = 96; // hours[/code]<br /> That works, surely. Thanx!<br /> <br /> But could this also be set [i]under[/i] 1 hour? Like 15 min. (0.25)?<br /> <br /> It mays sound ridiculous, but it might be useful -- to me, at least.<br /> <br /> I have this poll, again<br /> http://www.turkku.com/poll/karmeat.php<br /> <br /> Visitors vote there the worst Finnish cover song ever. One voting/one song at the time, next vote after 1 hour. Ok.<br /> Some limitation is required of course, otherwise "smart" kids start to hammer their "enter" giving votes to only one song. Vote is ruined. But at the same time normal people are eager to vote their favorites so they get pissed when they have to wait a whole hour. :-(<br /> <br /> Better solutions would perhaps be this: one voting/10 songs at the ime, next voting after 30 min-1 hour. But this script is using radio buttons and I guess it would be pretty hard task to change them to [i]checkboxes[/i] -- if possible at all?<br /> <br /> That's why I'm thinking to simply change that cookie expire after 10-20 min. It would still prevent total hammering, but people would be happier and would vote more often. :-)<br /> <br /> So, could this work:<br /> [code]$cookie_expire = 0.25; // hours[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4796/17009.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4796/17009.php</link>
				<pubDate><![CDATA[Sun, 10 Jul 2005 16:19:30]]> GMT</pubDate>
				<author><![CDATA[ yesper]]></author>
			</item>
	</channel>
</rss>