<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Poll:  Can't get poll to display; PHP code instead."]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Poll:  Can't get poll to display; PHP code instead."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Poll:  Can't get poll to display; PHP code instead.</title>
				<description><![CDATA[ I have installed Advanced Poll at two different domains.  One works perfectly; the other doesn't.<br /> <br /> Both were installed using the Fantastico Installer from the CPanel.<br /> <br /> When I put this code in the desired web page, it spits the CODE back, not the poll:<br /> <br /> [code]<br /> &lt;?php<br /> include_once &quot;/home/jmueller/public_html/poll/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;4&#41;;<br /> ?&gt;<br /> [/code]<br /> <br /> This occurs if I just create a blank page or if I try to make it part of a WordPress (PHP blog software) post.  I do have this code snippet at the very top, above the HTML tag in both the index.php page (the WordPress template) and on the separate page I made for the poll.<br /> <br /> [code]<br /> &lt;?php<br /> // Important! You have to include it before your html code<br /> include_once &quot;/home/jmueller/public_html/poll/poll_cookie.php&quot;;<br /> ?&gt;<br /> [/code]<br /> <br /> The ONLY way I could get the darn thing to work was to put THIS code on a SEPARATE page and just link to it, which is not what I wanted to do.<br /> <br /> [code]<br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = &quot;/home/jmueller/public_html/poll&quot;;<br /> <br /> require $poll_path.&quot;/include/config.inc.php&quot;;<br /> require $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;;<br /> require $poll_path.&quot;/include/class_poll.php&quot;;<br /> require $poll_path.&quot;/include/class_pollcomment.php&quot;;<br /> require $poll_path.&quot;/include/class_plist.php&quot;;<br /> $CLASS&#91;&quot;db&quot;&#93; = new polldb_sql;<br /> $CLASS&#91;&quot;db&quot;&#93;-&gt;connect&#40;&#41;; <br /> <br /> $php_poll = new plist&#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 /> if &#40;isset&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;&#41; &#123;<br />    echo $php_poll-&gt;poll_process&#40;$HTTP_GET_VARS&#91;'poll_id'&#93;&#41;;<br /> &#125; else &#123;<br />    echo $php_poll-&gt;poll_process&#40;&quot;random&quot;&#41;;<br /> &#125;<br /> <br /> /* poll list */<br /> $php_poll-&gt;set_template&#40;&quot;poll_list&quot;&#41;;<br /> $php_poll-&gt;set_date_format&#40;&quot;m/d/Y&quot;&#41;;<br /> echo $php_poll-&gt;view_poll_list&#40;&#41;;<br /> echo $php_poll-&gt;get_list_pages&#40;&#41;;<br /> <br /> ?&gt;<br /> [/code]<br /> <br /> This poll page on my other domain works fine.  <br /> <br /> [url=http://www.zclubofhouston.com/poll_forum.php]Z Club of Houston: working Advanced Poll survey[/url] <br /> <br /> Also, on the poll at my jonimueller.com site, why is the date and a link to the poll displayed?  Can I edit this out so it looks like the poll at the zclubofhouston.com site?  <br /> <br /> Here's the link to the page I was able to get working:<br /> [url=http://www.jonimueller.com/blog/cms_poll.php]My Lame Poll[/url] <br /> <br /> Here's the WordPress blog entry where I'd rather have it displayed INLINE rather than a LINK:<br /> <br /> [url=http://www.jonimueller.com/blog/index.php?p=1044]My entry linking to the poll[/url] <br /> <br /> Thanks for any advice.  I just don't understand why it works fine on one web site and not on the other when both websites are using the same web host, same servers, etc.<br /> [/url]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3163/8400.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3163/8400.php</link>
				<pubDate><![CDATA[Tue, 25 May 2004 00:03:36]]> GMT</pubDate>
				<author><![CDATA[ JoniMueller]]></author>
			</item>
	</channel>
</rss>