<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Show number of Poll"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Show number of Poll"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Show number of Poll</title>
				<description><![CDATA[ Hi<br /> I would like to show the number of Poll on my website. How do it.?<br /> Thanks a lot.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13071.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13071.php</link>
				<pubDate><![CDATA[Fri, 14 Jan 2005 01:12:04]]> GMT</pubDate>
				<author><![CDATA[ Dooz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ can you post the code you use to show your poll on your webpage.<br /> i can't remember it off hand, then i'll be able to give the code you need.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13089.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13089.php</link>
				<pubDate><![CDATA[Fri, 14 Jan 2005 18:45:54]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Auron<br /> It's the same as demo_3.php to display all polls.<br /> [code]&lt;?php<br /> $poll_path = dirname&#40;__FILE__&#41;;<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;[/code]<br /> And in some other pages i using this one: <br /> [code]&lt;?php<br /> include_once &quot;/home/users/w/site/www/sondages/db/booth.php&quot;;<br /> echo $php_poll-&gt;poll_process&#40;&quot;newest&quot;&#41;;<br /> ?&gt;[/code]]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13090.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13090.php</link>
				<pubDate><![CDATA[Fri, 14 Jan 2005 19:07:57]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I'm not really sure...<br /> <br /> [code]echo $poll_id;[/code]<br /> <br /> You can give it a go.<br /> I was hoping there would be more there but as there isn't i can't do much, sorry.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13092.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13092.php</link>
				<pubDate><![CDATA[Fri, 14 Jan 2005 21:39:30]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Auron<br /> Thank you. But after search on the web, i found: <br /> Just put this: <br /> [code]&lt;?php <br /> $db = mysql_connect&#40;'localhost','login', 'password'&#41;;  // 1 <br /> mysql_select_db&#40;'database',$db&#41;;                    // 2 <br /> $req = mysql_query&#40;'SELECT * FROM poll_index'&#41;;          // 3 <br /> $res = mysql_num_rows&#40;$req&#41;;                               // 4 <br /> echo ''.$res.'';  // 5 <br /> mysql_close&#40;$db&#41;;  // 6 <br /> ?&gt; [/code]<br /> It was easy...no :)<br /> <br /> Another question: <br /> How to show comments under the poll same as demo_3.php ?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13108.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13108.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 18:09:42]]> GMT</pubDate>
				<author><![CDATA[ Dooz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ thats not easy, it can be done easier.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13111.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13111.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 20:02:45]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [code]function how_many_polls&#40;&#41; &#123;<br /> $this-&gt;allpolls = $this-&gt;db-&gt;fetch_array&#40;$this-&gt;db-&gt;query&#40;&quot;SELECT * FROM &quot;.$this-&gt;tbl&#91;'poll_index'&#93;&#41;&#41;;<br /> $this-&gt;total_polls = mysql_num_rows&#40;$this-&gt;allpolls&#41;;<br /> result = $this-&gt;total_polls;<br /> &#125;[/code]Slap that in your [b]includes/class_poll.php[/b] then in your web page, after you have put the includes, you can use [b]echo (how_many_polls());[/b].<br /> <br /> Not tested but should work fine.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13112.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13112.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:07:01]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Your so cooool...<br /> <br /> ^^, nice!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13113.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13113.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:14:10]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Auron"]Your so cooool...<br /> <br /> ^^, nice![/quote]<br /> Yes I know <img src="https://proxy2.de/forum//images/smilies/499fd50bc713bfcdf2ab5a23c00c2d62.gif" /> would also be nice if you answered your emails sometimes Auron. Quietus was after a mod but I couldn't contact you so wrote it myself. He wanted it to auto post the results of the last poll when he made a new one without having to manually change the poll id number in the function call. I'll email you the mod if you want to add it. I made it so you can use [b]poll_id['last'][/b].]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13114.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13114.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:17:23]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ o_0<br /> <br /> what email address did u send it to?]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13115.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13115.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:26:38]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ right now i've got the right email address in my profile.<br /> <br /> can u send me the mod, thanks, using the email address on this forum- now that its been updated.<br /> i don't even have an email from that person only one from you...]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13116.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13116.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:35:26]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Thank's Carbonize<br /> Of course it's easier.  :wink: <br /> What about my second question ?<br /> I explain: I'm using this code on a page to display all polls (same as demo3):<br /> [code]&lt;?php <br /> $poll_path = dirname&#40;__FILE__&#41;; <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;[/code]<br /> I would like to show comments when we click on "View results" same as demo2.(under the graph or in a popup).]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13117.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13117.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:48:22]]> GMT</pubDate>
				<author><![CDATA[ Dooz]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ that be something for Auron to answer. As I said I have never used the Advanced Poll I have just read the class_poll.php file.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13118.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13118.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 22:58:06]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ You could just make a popup window using JavaScript.<br /> Using a page called comments with the comments code in it, you can get the code from this site for the comments.<br /> In the templates you would add a little bit of JavaScirpt to the link.<br /> <br /> eg. &lt;a href="./jahsdjkahresults or whatever it is" alt="results" onClick="javascript:openCommentWindow;"&gt;View Resutls&lt;/a&gt;<br /> <br /> To open windows using JavaScript try www.htmlgoodies.com<br /> <br /> Comment code...<br /> <br /> [code]/* 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;; //poll id<br /> echo $php_poll-&gt;get_comment_pages&#40;1&#41;; [/code]<br /> <br /> <br /> Problem with this way is that as each poll has a different id it'll change depending on which poll' results are viewed so my idea may not work at all. Can you explain what you want to do a bit more clearly. From what i can tell you either view a poll of your choice, a random one or the newest one. So its not that easy... plus, my head is all messed up and i don't have the files on my Mac. And i prefer editing them on my Win box which is at home.<br /> <br /> Hope that helps someway,<br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13119.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13119.php</link>
				<pubDate><![CDATA[Sat, 15 Jan 2005 23:29:45]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok Auron<br /> I understand. ! I try to explain.<br /> I want to showed comments of each poll wich is random.<br /> You can use a link that open a popup or comments can be in the same popup as "send comment" or they can be viewed under the results.<br /> <br /> (sorry for my english)]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13120.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13120.php</link>
				<pubDate><![CDATA[Sun, 16 Jan 2005 02:29:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Instead of using the [b]poll_id[random][/b] feature why not simply use the code I gave above to generate a random number of between 1 and the number of polls and then use that to call both the poll results and comments? this way you will get the right comments for that poll.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/4101/13124.php</guid>
				<link>https://proxy2.de/forum/posts/preList/4101/13124.php</link>
				<pubDate><![CDATA[Sun, 16 Jan 2005 11:36:07]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
	</channel>
</rss>