<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Getting &quot;Fatal error&quot; when incorporating comments"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Getting &quot;Fatal error&quot; when incorporating comments"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Getting &amp;quot;Fatal error&amp;quot; when incorporating comments</title>
				<description><![CDATA[ Using [url=http://proxy2.de/poll/demo_4.php]demo #4[/url] as a template, I thought I figured out a way to incorporate comments into my webpage.  Unfortunately, I get an error that I can't figure out:<br /> <br /> [quote]Fatal error: Call to undefined function: set_template() in /home/tastyro/public_html/poll.php on line 13[/quote]<br /> <br /> Check it out for yourself: [url]http://www.tastyrobot.com/poll.php[/url]<br /> <br /> I've included my code below; is there something I'm missing?  Does the page calling the poll have to be in the same folder as the Advanced Poll itself, perhaps?<br /> <br /> [code]<br /> &lt;?php<br />   // Important! You have to include it before your html code<br />   include_once &quot;/home/tastyro/public_html/poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> <br /> &lt;html&gt;<br />   &lt;body&gt;<br />     &lt;?php<br />       include_once &quot;/home/tastyro/public_html/poll/booth.php&quot;;<br />       echo $php_poll-&gt;poll_process&#40;4&#41;;<br />       <br />       /* construct the form */<br />       $php_poll-&gt;set_template&#40;&quot;poll_form&quot;&#41;;<br />       $php_poll-&gt;set_form_error&#40;array&#40;<br />           &quot;name&quot; =&gt; &quot;Please enter your name.&quot;,<br />       // &quot;email&quot; =&gt; &quot;You must specify your e-mail address.&quot;,<br />           &quot;message&quot; =&gt; &quot;You must specify a message.&quot;<br />       &#41;&#41;;<br />       $html_form = $php_poll-&gt;comment_process&#40;4&#41;;<br />       <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;20&#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;4&#41;;<br />       echo $php_poll-&gt;get_comment_pages&#40;4&#41;;<br />       <br />       /* form */<br />       echo $html_form;<br />     ?&gt;<br />   &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5264/19210.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5264/19210.php</link>
				<pubDate><![CDATA[Tue, 27 Dec 2005 11:13:59]]> GMT</pubDate>
				<author><![CDATA[ shatterstar]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]&lt;?php <br />   // Important! You have to include it before your html code <br />   include_once &quot;/home/tastyro/public_html/poll/poll_cookie.php&quot;; <br /> ?&gt; <br /> <br /> &lt;html&gt; <br />   &lt;body&gt; <br />     &lt;?php <br />       include_once &quot;/home/tastyro/public_html/poll/booth.php&quot;; <br />       echo $php_poll-&gt;poll_process&#40;4&#41;; <br /> <br />       $html_form = $php_poll-&gt;comment_process&#40;4&#41;; <br />       <br />       /* construct the form */ <br />       $php_poll-&gt;set_template&#40;&quot;poll_form&quot;&#41;; <br />       $php_poll-&gt;set_form_error&#40;array&#40; <br />           &quot;name&quot; =&gt; &quot;Please enter your name.&quot;, <br />       // &quot;email&quot; =&gt; &quot;You must specify your e-mail address.&quot;, <br />           &quot;message&quot; =&gt; &quot;You must specify a message.&quot; <br />       &#41;&#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;20&#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;4&#41;; <br />       echo $php_poll-&gt;get_comment_pages&#40;4&#41;; <br />       <br />       /* form */ <br />       echo $html_form; <br />     ?&gt; <br />   &lt;/body&gt; <br /> &lt;/html&gt;[/code]<br /> <br /> Not sure it'll work but since you don't get an error on the second call to set_template(), but that could be it stopped execution when it got the error.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5264/19319.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5264/19319.php</link>
				<pubDate><![CDATA[Mon, 9 Jan 2006 20:09:55]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Wow Auron lives!!!!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5264/19320.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5264/19320.php</link>
				<pubDate><![CDATA[Mon, 9 Jan 2006 20:40:53]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Carbonize"]Wow Auron lives!!!![/quote]<br /> <br /> lol. been busy, so much work to do before Christmas, so, I just had Christmas off. ; )]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/5264/19324.php</guid>
				<link>https://proxy2.de/forum/posts/preList/5264/19324.php</link>
				<pubDate><![CDATA[Tue, 10 Jan 2006 00:17:16]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
	</channel>
</rss>