<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Advanced Poll: slightly advanced challenge! help!"]]></title>
		<link>https://proxy2.de/forum/posts/list/3.php</link>
		<description><![CDATA[Latest messages posted in the topic "Advanced Poll: slightly advanced challenge! help!"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Advanced Poll: slightly advanced challenge! help!</title>
				<description><![CDATA[ Hi,<br /> <br /> First of all thnx for making this script free to use.<br /> I have installed the advanced poll succesfully.<br /> <br /> Now i'm trying to get the poll to display the way i want it to.<br /> I want to setup a page where:<br /> <br /> 1. people can vote<br /> 2. people can comment on the topic which they voted for<br /> 3. the form which people can use to comment with is on the same page as the poll<br /> 4. there is a list of old polls.<br /> <br /> Here is my problem/challenge:<br /> When someone clicks on a link to an old poll, they get to see that old poll.........but with comments that do not belong to that poll. Obviously i want every old poll to display together with the comments that belong to that poll.<br /> <br /> My english is not good, so i hope you understand what i'm trying to explain. <br /> <br /> Let's see if someone is able to help me......thnx in advance for your time.<br /> Greets,<br /> busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11526.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11526.php</link>
				<pubDate><![CDATA[Mon, 8 Nov 2004 05:54:04]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title>bump</title>
				<description><![CDATA[ Hi,<br /> <br /> No one any idea how this can be done?<br /> Any attempt would be appreciated.<br /> <br /> Thnx]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11564.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11564.php</link>
				<pubDate><![CDATA[Tue, 9 Nov 2004 16:32:12]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Learn patience. i'm sure Auron or someone who is familiar with the poll script will help you as soon as they read the post.]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11567.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11567.php</link>
				<pubDate><![CDATA[Tue, 9 Nov 2004 17:15:32]]> GMT</pubDate>
				<author><![CDATA[ Carbonize]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Its matter of having the right code on you page.<br /> <br /> Most of it is on the demo poll pages on this site. When I get a chance i'll<br /> look at them and pick out the bits of code you'll need.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11571.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11571.php</link>
				<pubDate><![CDATA[Tue, 9 Nov 2004 17:59:45]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ ok thank you, didn't want to be impatient. I appreciate all who tries to help out. <br /> <br /> regards,<br /> Busa   :o]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11573.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11573.php</link>
				<pubDate><![CDATA[Tue, 9 Nov 2004 18:09:52]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Lets see now...<br /> <br /> 1. people can vote <br /> 2. people can comment on the topic which they voted for <br /> 3. the form which people can use to comment with is on the same page as the poll <br /> 4. there is a list of old poll<br /> <br /> 1. in the admin area at the top of the page, click on the last image and it'll give you the file include bit and the code. The code should look something like this...<br /> <br /> echo $php_poll-&gt;poll_process(1);<br /> <br /> put 1, 2, or 3 or whatever for the poll id or put newest for the newest created poll or random which does guess what!? ^^<br /> <br /> 2/3. lets go!<br /> <br /> this constructs the comment form...<br /> comment bits out that you don't want. for example currently the email field is commented out so they don't have to fill that in.<br /> <br /> $php_poll-&gt;set_template("poll_form");<br /> $php_poll-&gt;set_form_error(array(<br />     "name" =&gt; "Please enter your name.",<br /> // "email" =&gt; "You must specify your e-mail address.",<br />     "message" =&gt; "You must specify a message."<br /> ));<br /> $html_form = $php_poll-&gt;comment_process(2); --- poll id, newest or random<br /> <br /> echo $html_form;<br /> <br /> not sure about this one, may need to inlcude an extra file. But let me know if it works or not.<br /> <br /> 2/3. (again) to view the comments...<br /> <br /> $php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(5); --- no of comments per page<br /> $php_poll-&gt;set_date_format("d/m/Y H:i");<br /> $php_poll-&gt;data_order_by("time","desc");<br /> echo $php_poll-&gt;view_poll_comments(2); --- poll id, newest or random<br /> echo $php_poll-&gt;get_comment_pages(2); --- poll id, newest or random<br /> <br /> 4. here's the code...<br /> <br /> $php_poll-&gt;set_template("poll_list");<br /> $php_poll-&gt;set_date_format("m/d/Y");<br /> echo $php_poll-&gt;view_poll_list();<br /> echo $php_poll-&gt;get_list_pages();<br /> <br /> not sure about the last two, you may be able to put stuff in the brackets. I'll need to check the functions they call first so i wouldn't try unless you want to experiment and let me know for future reference.<br /> <br /> NOTE!<br /> I haven't used the poll much over the last year or so, so, some of the code i quoted may not be right or may need extra files to be included. Its really trial and error.<br /> <br /> Most of the stuff here i just copied and pasted from the demo polls. I must admit though it is quite easy to get some of the code yourself. But, i thought i'd do it this time for you and for others having the same problem/s.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11603.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11603.php</link>
				<pubDate><![CDATA[Tue, 9 Nov 2004 23:31:08]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Auron thank you for you reply.<br /> <br /> If i follow the steps you provided in your post, i end up with a page that is similar to the page i have allready constructed. <br /> <br /> [b]This is the problem i am facing:[/b]<br /> <br /> When someone clicks on a link in the list of polls........they get to see that poll. They also see comments underneath that poll........but the comments displayed are not the comments that belong to that poll. And i obviously want to display a poll together with comments that belong to that poll.<br /> <br /> For example: <br /> The page is now setup to display poll ID 2. When you click on a link to an old post, let's assume that that poll has ID 4, the page displays poll ID 4. But then you see poll ID 4 together with comments that do not belong to poll ID 4.<br /> <br /> I hope this makes sense. <br /> <br /> On a side note:<br /> When you hover over a link to an old poll in the poll-list, you see that that link will call a certain poll ID. I was thinking, if you can assign every commentlist a corresponding ID number, you can call a poll ID [b]and[/b] a comments ID together. In this example this would result in something like this: .........../praatmee.php?poll_id=2ANDcomment_id=2<br /> Hope you understand.<br /> <br /> I have no php knowledge so, again, i will be extremely thankfull if you would try and help me.<br /> <br /> Thnx,<br /> Busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11613.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11613.php</link>
				<pubDate><![CDATA[Wed, 10 Nov 2004 06:20:28]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title>bump</title>
				<description><![CDATA[ Hi all,<br /> <br /> Is there anyone that has an idea how this can be done? I'm hoping that it's not very difficult to do, but my php knowledge is very poor. Maybe someone with better understanding of php can pick this up.<br /> <br /> Thank you,<br /> Busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11812.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11812.php</link>
				<pubDate><![CDATA[Tue, 16 Nov 2004 13:07:41]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ I wouldn't want to mess with links incase i screwed them up.<br /> Meanwhile why odn't you create a separate page for each poll with its<br /> own comments below and and have each page link to the next one and<br /> forget the adv. poll list code. Much easier and safer.<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11816.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11816.php</link>
				<pubDate><![CDATA[Tue, 16 Nov 2004 18:37:31]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ What you mention is an option indeed. I have dropped the poll designing part for this website for now. Later when I begin working on the poll again i think i'll make a few changes.<br /> <br /> Thank you for taking time out to help.....that's great!<br /> And thanks again for a fine [b]free[/b] script!<br /> <br /> Regards,<br /> Busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11824.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11824.php</link>
				<pubDate><![CDATA[Tue, 16 Nov 2004 22:48:56]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ No problem ^^ I might have a go at the poll again myself.<br /> Btw, for future reference I didn't write it in case it crossed you mind ; )<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11825.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11825.php</link>
				<pubDate><![CDATA[Tue, 16 Nov 2004 23:45:52]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Ok, 'thank you' goes out to Chi Kien Uong (I guess) for the free script.<br /> See ya!<br /> <br /> Busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11847.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11847.php</link>
				<pubDate><![CDATA[Wed, 17 Nov 2004 17:36:53]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hayabusa...<br /> <br /> I totally understand what you're looking to do. I had the same dilema... wanted the comments to be displayed together from newest being on top right?<br /> <br /> <br /> [quote]<br /> $php_poll-&gt;set_template("poll_comment"); <br /> $php_poll-&gt;set_comments_per_page(5); --- no of comments per page <br /> $php_poll-&gt;set_date_format("d/m/Y H:i"); <br /> $php_poll-&gt;data_order_by("time","desc"); <br /> echo $php_poll-&gt;view_poll_comments(2); --- poll id, newest or random <br /> echo $php_poll-&gt;get_comment_pages(2); --- poll id, newest or random <br /> [/quote]<br /> <br />  Since the comment codes are calling the poll ID.. I figured to drop it and include a guestbook below the polls. Please respond if you're still looking to do this. I'll show you what I got <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11977.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11977.php</link>
				<pubDate><![CDATA[Mon, 22 Nov 2004 01:18:49]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ isn't that a quote from my post above?...]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11979.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11979.php</link>
				<pubDate><![CDATA[Mon, 22 Nov 2004 02:43:28]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Auron"]isn't that a quote from my post above?...[/quote]<br /> <br /> yes it is <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /><br /> <br /> i was trying to show how the #'s represent the poll ID.. am i correct? this is great but i wanted it so that the comments are dispayed together. so far what i have is this:<br /> <br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = "/home/xxxxx/public_html/polls";<br /> <br /> require $poll_path."/include/config.inc.php";<br /> require $poll_path."/include/$POLLDB[class]";<br /> require $poll_path."/include/class_poll.php";<br /> require $poll_path."/include/class_pollcomment.php";<br /> require $poll_path."/include/class_plist.php";<br /> $CLASS["db"] = new polldb_sql;<br /> $CLASS["db"]-&gt;connect(); <br /> <br /> $php_poll = new plist();<br /> $php_poll = new pollcomment();<br /> <br /> <br /> /* poll */<br /> $php_poll-&gt;set_template_set("plain");<br /> $php_poll-&gt;set_max_bar_length(125);<br /> $php_poll-&gt;set_max_bar_height(10);<br /> if (isset($HTTP_GET_VARS['poll_id'])) {<br />    echo $php_poll-&gt;poll_process($HTTP_GET_VARS['poll_id']);<br /> } else {<br />    echo $php_poll-&gt;poll_process("random");<br /> }<br /> <br /> /* poll list */<br /> $php_poll-&gt;set_template("poll_list");<br /> $php_poll-&gt;set_date_format("m/d/Y");<br /> echo $php_poll-&gt;view_poll_list();<br /> echo $php_poll-&gt;get_list_pages();<br /> <br /> /* poll comments */<br /> $php_poll-&gt;set_template("poll_comment");<br /> $php_poll-&gt;set_comments_per_page(5);<br /> $php_poll-&gt;set_date_format("d/m/Y H:i");<br /> $php_poll-&gt;data_order_by("time","desc");<br /> [b]echo $php_poll-&gt;view_poll_comments(1);<br /> echo $php_poll-&gt;view_poll_comments(2);<br /> echo $php_poll-&gt;view_poll_comments(3);<br /> echo $php_poll-&gt;get_comment_pages(3);[/b]<br /> <br /> ?&gt;<br /> <br /> say if there was already a comment from poll #1, and if someone were to post from poll #2, the new post will be somewhere below comment post #1... grrr... hard to explain but i do hope you understand.<br /> <br /> what i did was drop the poll comments and included the advanced guestbook instead... and it works great!!!]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/11982.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/11982.php</link>
				<pubDate><![CDATA[Mon, 22 Nov 2004 05:38:00]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ To help with repeating the poll id bit here's some php code to replace it...<br /> <br /> [code]echo $php_poll-&gt;view_poll_comments&#40;1&#41;; <br /> echo $php_poll-&gt;view_poll_comments&#40;2&#41;; <br /> echo $php_poll-&gt;view_poll_comments&#40;3&#41;[/code]<br /> <br /> [code]for &#40;$i = 1; $i =&lt; n; $i++&#41; --- i is the starting poll, n is the number of polls you want to display<br /> &#123;<br /> echo $php_poll-&gt;view_poll_comments&#40;$i&#41;;<br /> &#125;[/code]<br /> <br /> note - my PHP is a little rusty ^^;<br /> <br /> Auron]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/12005.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/12005.php</link>
				<pubDate><![CDATA[Mon, 22 Nov 2004 19:29:22]]> GMT</pubDate>
				<author><![CDATA[ Auron]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi Guest,<br /> <br /> Sorry for my late reaction. Thanks for your idea.<br /> I'm interested in seeing what you came up with. If I could use the guestbook to handle comments on the same page as the poll, it would be great. Could you please post about how you did it?<br /> <br /> Nice to see you understand what im tring to do.<br /> Thanks in advance for your time.<br /> <br /> Greetings.<br /> Busa   <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/12147.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/12147.php</link>
				<pubDate><![CDATA[Mon, 29 Nov 2004 11:31:23]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ [quote="Hayabusa"]Hi Guest,<br /> <br /> Sorry for my late reaction. Thanks for your idea.<br /> I'm interested in seeing what you came up with. If I could use the guestbook to handle comments on the same page as the poll, it would be great. Could you please post about how you did it?<br /> <br /> Nice to see you understand what im tring to do.<br /> Thanks in advance for your time.<br /> <br /> Greetings.<br /> Busa   :)[/quote]<br /> <br /> Hey Busa... no problem... if you have the time and patience, this is another alternative. It took me about 3-5 days to get this the way I want it. Alot of trial and error... and sleepless nights :P In order to do this, be sure to install the Advance Guestbook script as well. This is how I did it:<br /> <br /> [code]<br /> &lt;?php<br /> <br /> /* path */<br /> $poll_path = &quot;/home/xxxxx/public_html/polls&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 /> <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 /> then include the guestbook where you want it to show up:<br /> <br /> [code]<br /> &lt;?php include&#40;'../guestbook/index.php'&#41;; ?&gt;<br /> [/code]<br /> <br /> I do hope it helped you in anyway.. I'll be visiting frequently.. I look forward to your response. ttyl]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/12167.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/12167.php</link>
				<pubDate><![CDATA[Tue, 30 Nov 2004 04:46:04]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ haha.. i just signed up <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" /> call me nychick instead of guest from now on <img src="https://proxy2.de/forum//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/12168.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/12168.php</link>
				<pubDate><![CDATA[Tue, 30 Nov 2004 04:51:06]]> GMT</pubDate>
				<author><![CDATA[ nychick]]></author>
			</item>
			<item>
				<title></title>
				<description><![CDATA[ Hi nychick,<br /> <br /> Sorry that it is taking so long for me to try your method and report back here. I have alot of other things that i'm busy with at the moment (schoolstuff). I hope i will be able to have a go at it sometime soon.<br /> <br /> Thanks again for your help!<br /> Oh and.....happy Holidays to you and everyone else!!<br /> <br /> Greetings,<br /> Busa  <img src="https://proxy2.de/forum//images/smilies/3b63d1616c5dfcf29f8a7a031aaa7cad.gif" />]]></description>
				<guid isPermaLink="true">https://proxy2.de/forum/posts/preList/3823/12579.php</guid>
				<link>https://proxy2.de/forum/posts/preList/3823/12579.php</link>
				<pubDate><![CDATA[Tue, 21 Dec 2004 17:29:31]]> GMT</pubDate>
				<author><![CDATA[ Hayabusa]]></author>
			</item>
	</channel>
</rss>