<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Adv Poll subdirectory issue"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Adv Poll subdirectory issue"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Adv Poll subdirectory issue</title>
				<description><![CDATA[ Hi experts,<br /> <br /> I have Advanced poll 2.08 installed in [some_dirs]/cms/poll . I want to embed this poll in a page generated from a Content Management System (CMS). As content page of that CMS I have a page called 'Polls' which includes the code<br /> <br /> require_once "[some_dirs]/cms/poll/booth.php";<br /> echo $php_poll-&gt;poll_process(4);        // x = Poll ID<br /> <br /> When calling that page the poll is displayed as expected. But if I click on 'vote' or 'results' I'm routed to a wrong index.php page because the path is not correct: e.g. the vote button references [some_dirs]/index.php and the result-button references [some_dirs]/index.php?action=results&amp;poll_ident=4 .<br /> <br /> Both references/links miss (I think) the subdirectories cms/poll in order to find the right index.php. (There is a index.php but it belongs to the CMS so the vote button behaves like a link to the HOME page of the CMS)<br /> <br /> In the general settings tab the is a setting 'URL to poll directory' - it is set to /cms/poll/ what looks ok. But the Adv poll code doesn't seem to pick it up. I changed it, even to settings that don't make any sense at all (e.g. /cms/pool/nonsense). Advanced Poll is not 'impressed' by that - I can change it however I want, the above described behaviour stays as it is and I don't see any results nor can I vote...<br /> <br /> This is my first day with PHP in general and I'm no expert - can anybody point me into the right direction to solve this ? Advanced Poll looks quite nice and I want to use it...<br /> <br /> Many thanks<br /> <br /> Robert]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6929/23524.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6929/23524.php</link>
				<pubDate><![CDATA[Wed, 3 Oct 2007 21:36:06]]> GMT</pubDate>
				<author><![CDATA[ kledirob]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I had the same problem and solved it with the following code:<br /> <br /> [code]			&lt;?php<br /> 			$poll_path = dirname&#40;__FILE__&#41;;<br /> 			require_once &quot;&#123;&#123;your path&#125;&#125;/poll/include/config.inc.php&quot;;<br /> 			require_once &quot;&#123;&#123;your path&#125;&#125;/poll/include/$POLLDB&#91;class&#93;&quot;;<br /> 			require_once &quot;&#123;&#123;your path&#125;&#125;/poll/include/class_poll.php&quot;;<br /> 			require_once &quot;&#123;&#123;your path&#125;&#125;/poll/include/class_pollcomment.php&quot;;<br /> 			require_once &quot;&#123;&#123;your path&#125;&#125;/poll/include/class_plist.php&quot;;<br /> 			<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;proper markup&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;$_GET&#91;'poll_id'&#93;&#41;&#41; &#123;<br /> 				echo $php_poll-&gt;poll_process&#40;$_GET&#91;'poll_id'&#93;&#41;;<br /> 			&#125; else &#123;<br /> 				echo $php_poll-&gt;poll_process&#40;&quot;5&quot;&#41;;<br /> 			&#125;<br /> 			<br /> 			?&gt;<br /> [/code]<br /> <br /> I pulled this from the examples that come with advanced poll. If you look at those you can see there are different ways to pull the poll into a page - I really don't know why this is. The code provided by the admin panel never worked for me.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6929/23531.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6929/23531.php</link>
				<pubDate><![CDATA[Thu, 11 Oct 2007 15:14:04]]> GMT</pubDate>
				<author><![CDATA[ megan]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I have the same problem. CMS seems to be interfering with the poll and whenever i hit submit, it dumps me into the index of the director where the poll is. <br /> <br /> Using the above code didn't help.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6929/24657.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6929/24657.php</link>
				<pubDate><![CDATA[Fri, 24 Apr 2009 22:58:15]]> GMT</pubDate>
				<author><![CDATA[ joecomputerdude]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I just threw the thing into an &lt;Iframe&gt; and changed all the links to open in the parent window instead of the frame. <br /> <br /> That resolved my problem.  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6929/24665.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6929/24665.php</link>
				<pubDate><![CDATA[Wed, 29 Apr 2009 17:21:38]]> GMT</pubDate>
				<author><![CDATA[ joecomputerdude]]></author>
			</item>
			<item>
				<title>my solution</title>
				<description><![CDATA[ I have pretty good and simple solution <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> Just open class_poll.php, find <br /> <br /> basename($_SERVER['PHP_SELF']);<br /> <br />  and replace this to<br /> <br /> $_SERVER['REQUEST_URI'];<br /> <br /> Thats all. Enjoy!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6929/24863.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6929/24863.php</link>
				<pubDate><![CDATA[Sat, 5 Sep 2009 16:14:18]]> GMT</pubDate>
				<author><![CDATA[ macsyk]]></author>
			</item>
	</channel>
</rss>