<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Link to poll archives?"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Link to poll archives?"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Link to poll archives?</title>
				<description><![CDATA[ Anyone know how to set up links to individual past polls?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6100/22030.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6100/22030.php</link>
				<pubDate><![CDATA[Mon, 29 Jan 2007 23:47:32]]> GMT</pubDate>
				<author><![CDATA[ MikeI]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Guess not.<br /> <br /> Shame, this is very good polling script.  Too bad there is zero documentaion or support.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6100/22485.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6100/22485.php</link>
				<pubDate><![CDATA[Tue, 27 Mar 2007 17:05:46]]> GMT</pubDate>
				<author><![CDATA[ MikeI]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Auron has written some tutorials on using the Advanced Poll.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6100/22486.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6100/22486.php</link>
				<pubDate><![CDATA[Tue, 27 Mar 2007 17:47:36]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title>List all polls</title>
				<description><![CDATA[ Here's how I did it, based on the sample in [url=http://javazone.de/demo/poll/demo_3.php]Demo 3[/url]:<br /> <br /> 1.  Create a .php document to hold the code to list all the polls.  (I named this file listpolls.php).  It will list links to all polls, including expired:<br /> <br /> [code]<br /> &lt;html&gt;<br /> <br /> &lt;head&gt;<br /> &lt;meta http-equiv=&quot;Content-Type&quot;<br /> content=&quot;text/html; charset=iso-8859-1&quot;&gt;<br /> &lt;meta name=&quot;robots&quot; content=&quot;noindex,nofollow&quot;&gt;<br /> &lt;title&gt;Opinion Polls&lt;/title&gt;<br /> &lt;link rel=&quot;StyleSheet&quot; href=&quot;mystylesheet.css&quot;<br /> type=&quot;text/css&quot;&gt;<br /> &lt;/head&gt;<br /> <br /> &lt;body&gt;<br /> &lt;div align=&quot;center&quot;&gt;&lt;center&gt;<br /> <br /> &lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; width=&quot;100%&quot;&gt;<br />     &lt;tr&gt;<br />            &lt;td width=&quot;100%&quot;&gt;<br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = dirname&#40;__FILE__&#41;;<br /> <br /> require_once $poll_path.&quot;/poll/include/config.inc.php&quot;;<br /> require_once $poll_path.&quot;/poll/include/$POLLDB&#91;class&#93;&quot;;<br /> require_once $poll_path.&quot;/poll/include/class_poll.php&quot;;<br /> require_once $poll_path.&quot;/poll/include/class_pollcomment.php&quot;;<br /> require_once $poll_path.&quot;/poll/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;$_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;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 />            &lt;/td&gt;<br />     &lt;/tr&gt;<br /> &lt;/table&gt;<br /> &lt;/center&gt;&lt;/div&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> <br /> [/code]<br /> <br /> I have my listpolls.php file in the root directory and not in the polls directory, which is why I needed to add poll/ to the path. If you put listpolls.php in your poll directory, it would be:<br /> <br /> [code]require_once $poll_path.&quot;/include/config.inc.php&quot;;<br /> require_once $poll_path.&quot;/include/$POLLDB&#91;class&#93;&quot;; <br /> require_once $poll_path.&quot;/include/class_poll.php&quot;; <br /> require_once $poll_path.&quot;/include/class_pollcomment.php&quot;; <br /> require_once $poll_path.&quot;/include/class_plist.php&quot;; [/code]<br /> <br /> 2.  If you only want to link to certain polls, create a second .php document to list only the polls you want.  (I named this file opinionpolls.php). Link to each poll as follows:<br /> <br /> [code]&lt;a <br /> href=&quot;listpolls.php?poll_id=1&quot;&gt;What OS are you currently using?&lt;/a&gt;[/code]<br /> <br /> Or just include the links in any existing .php file.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/6100/22494.php</guid>
				<link>https://proxy2.de/forum/posts/preList/6100/22494.php</link>
				<pubDate><![CDATA[Thu, 29 Mar 2007 20:43:11]]> GMT</pubDate>
				<author><![CDATA[ amber222]]></author>
			</item>
	</channel>
</rss>