tvspec Posted August 24, 2005 Posted August 24, 2005 I will be doing picture polls (voting on favorite pics) and a few other things - where the poll can be implemented directly onto an XHTML/CSS page. Does anyone have any recommendations of a free script I can use - and perhaps a demo I can view? Thanks!! Quote
TCH-Rob Posted August 24, 2005 Posted August 24, 2005 Can't think of anything off the top of my head. You might want to head over to hotscripts.com and see if anything there fits your needs. Quote
tvspec Posted August 24, 2005 Author Posted August 24, 2005 Yeah - I've been surfing through those. A lof of them don't have demo's though and I don't want to install the entire thing 'hoping' it's what I want. I was hoping someone had some suggestions or had used some themselves. Quote
carbonize Posted August 28, 2005 Posted August 28, 2005 You could try Advanced Poll from http://proxy2.de but I've never used it myself. I was hoping there might of been some on http://opensourcecms.com/ for you to try but unfortunately not. Still it's a good site to know for forums etc. Quote
rnmcd Posted July 7, 2006 Posted July 7, 2006 You could try Advanced Poll from http://proxy2.de but I've never used it myself. I was hoping there might of been some on http://opensourcecms.com/ for you to try but unfortunately not. Still it's a good site to know for forums etc. Fantastico has the Advanced Poll but I can't get it to work to save my life. Anyone else tried this or found an easy-to-install poll? thanks. Quote
TCH-Bruce Posted July 7, 2006 Posted July 7, 2006 I've used Advanced Poll that carbonize linked too with success. Update: I just installed Advanced Poll and created a sample poll on a test site using Fantastico and it works. What kind of problems are you having? Quote
rnmcd Posted July 8, 2006 Posted July 8, 2006 I've used Advanced Poll that carbonize linked too with success. Update: I just installed Advanced Poll and created a sample poll on a test site using Fantastico and it works. What kind of problems are you having? My first mistake was that I named my poll with an .html extension instead of the proper .php extension. At this time I'm not sure what code needs to be in the .php poll file. Is it all of the code that is Template area of the Advanced Poll 2.03 admin page? Quote
Samrc Posted July 9, 2006 Posted July 9, 2006 Fantastico has the Advanced Poll but I can't get it to work to save my life. Anyone else tried this or found an easy-to-install poll? Once you have installed the script, you need to go to your admin panel. Have you done that? Lets say you installed the script in a subdirectory called polls, you would find your admin panel like this: http://yourtchdomain.com/polls/admin You will need the username/password combo that you assigned during the installation process to get in. Once inside, you will have several options for your templates, creating a poll, settings, etc. - Create a poll. - Go to the Templates section and look at the PREVIEW. You can adjust the code that is offered but before doing so, I recommend you make a copy of the original. - Go to the General Settings to adjust the size of the question/result table, the title of the poll, etc. and if necessary go back into the Templates area again to preview your adjustments, etc. (this step will take you the longest) - Go to the POLL LIST - To the right of the poll you just created is a white notebook icon that says HELP on rollover. Click that icon to get the code you place into any webpage to have the poll show on it. Your web page can have lots of extensions, including a regular htm or html extension and does not need to be a php page! But you MUST put part of the code at the VERY BEGINNING of the web page, even before your <html> or head section: <?php // Important! You have to include it before your html code include_once "/home/use_your_code_NOT_this_sample/public_html/polls/poll_cookie.php"; ?> Then put the other part ANYWHERE in the page body where you want your poll to appear: <?php include_once "/home/use_your_code_NOT_this_sample/public_html/polls/booth.php"; echo $php_poll->poll_process(4); ?> I made a simple poll, used the technique I mention above, placing my poll code onto a blank page. Then I pull that blank page into my home page via an IFRAME. This allows the visitor to submit an entry and see a result in the same spot. No refreshing of the whole page!!! You can see it on my little personal site samisite.com Quote
rnmcd Posted July 9, 2006 Posted July 9, 2006 Thanks Samantha. I checked out your poll and I think I am starting to understand how to get mine working. By the way, which file(s) have to be edited to remove the version number from the poll? Quote
Samrc Posted July 9, 2006 Posted July 9, 2006 I edited two areas. - Go to the Templates section. I modified the default template. Click the words POLL VIEW to see the code that will automatically be used by your poll. I only changed the display footer on this template. Instead of the line with the software version, I put this line in: <center><font face="$pollvars[font_face]" size="1">Thank you for voting!</font></center> Changes you make in here can be seen by clicking Preview. Click the words POLL RESULTS to see the code that will automatically be used by your poll after someone votes. I changed the result loop and the display footer on this template. I had space to go long but not wide so I wanted the % bar to show below the text instead of beside the text. Changes you make in here can be seen by clicking Preview. Just to be sure you understand....you will NOT be pasting any of the code you see in the Template area into your webpages. This code is used by the script. You will only be pasting the code mentioned in the earlier post. Quote
rnmcd Posted July 9, 2006 Posted July 9, 2006 I edited two areas. - Go to the Templates section. I modified the default template. Click the words POLL VIEW to see the code that will automatically be used by your poll. I only changed the display footer on this template. Instead of the line with the software version, I put this line in: <center><font face="$pollvars[font_face]" size="1">Thank you for voting!</font></center> Changes you make in here can be seen by clicking Preview. Click the words POLL RESULTS to see the code that will automatically be used by your poll after someone votes. I changed the result loop and the display footer on this template. I had space to go long but not wide so I wanted the % bar to show below the text instead of beside the text. Changes you make in here can be seen by clicking Preview. Just to be sure you understand....you will NOT be pasting any of the code you see in the Template area into your webpages. This code is used by the script. You will only be pasting the code mentioned in the earlier post. Where do I click on the words POLL VIEW? Quote
Samrc Posted July 9, 2006 Posted July 9, 2006 - Go to the Templates section. I modified the default template. Click the words POLL VIEW to see the code that will automatically be used by your poll. Sometimes you just need to look on the page. Go to the TEMPLATES section. Once there, look for: default: > Poll View > Poll Result > Comment Click Poll View to make it active, then codes will be for the poll table itself. Click Poll Result to make it active, then codes will be for the result table. Quote
rnmcd Posted July 9, 2006 Posted July 9, 2006 What a goof I am! I was trying to modify the actual display_foot.html file in the Templates>Default folder. I'll try again. Quote
Samrc Posted July 10, 2006 Posted July 10, 2006 The Advanced Poll script has an ADMIN panel so you don't have to go to those docs. Settings and adjustments are done through the Admin panel, making it faster and EASIER to handle. From my earlier post: Once you have installed the script, you need to go to your admin panel. Have you done that? Lets say you installed the script in a subdirectory called polls, you would find your admin panel like this: http://yourtchdomain.com/polls/admin You will need the username/password combo that you assigned during the installation process to get in. Once inside, you will have several options for your templates, creating a poll, settings, etc. Now that you understand that you do not edit the template docs, but edit in the ADMIN panel, you should be able to get things to work the way you want. Just go back and follow the instructions posted earlier and you'll be fine! Let us know your progress! Quote
rnmcd Posted July 10, 2006 Posted July 10, 2006 The Advanced Poll script has an ADMIN panel so you don't have to go to those docs. Settings and adjustments are done through the Admin panel, making it faster and EASIER to handle. From my earlier post: Now that you understand that you do not edit the template docs, but edit in the ADMIN panel, you should be able to get things to work the way you want. Just go back and follow the instructions posted earlier and you'll be fine! Let us know your progress! Thank you! I have been able to get it to work with your assitance. Would you know what code would have to be changed to allow me to re-vote? I was testing things out on the 'live' poll and since it only lets me vote once I can't check to see how it looks with some recent changes I've made. I'm also trying to get it to work on a password protected page (see my post: http://www.totalchoicehosting.com/forums/i...c=28682&hl= ) but for some reason when I embed the poll code in the password file it creates some type of 'loop' where it keeps asking for the password after I vote.... Thanks again. Quote
Samrc Posted July 10, 2006 Posted July 10, 2006 No code change needed for this one. Your website put a COOKIE on your computer. Remove it and you can vote again. (You can clear all cookies or manually just prune out your own website's cookie from your computer, your choice). You can reset/clear stats if needed in the ADMIN area of the script. Haven't ever tried it behind password protection. Maybe someone else has. Quote
rnmcd Posted July 10, 2006 Posted July 10, 2006 No code change needed for this one. Your website put a COOKIE on your computer. Remove it and you can vote again. (You can clear all cookies or manually just prune out your own website's cookie from your computer, your choice). You can reset/clear stats if needed in the ADMIN area of the script. I had already cleared all cookies and that didn't work. I think I had something about it not allowing re-voting by IP as well as cookies. Quote
TCH-Bruce Posted July 10, 2006 Posted July 10, 2006 When you create the poll set it to not log IP numbers. You can also reset the poll through the admin panel. Quote
rnmcd Posted July 10, 2006 Posted July 10, 2006 (edited) When you create the poll set it to not log IP numbers. You can also reset the poll through the admin panel. I've reset the poll from the Admin panel several times as well as "Reset log statistic" in the Stats page of the Admn panel. It didn't allow me to vote again. Did it work for you? Am I missing a step? After a poll is created can you set it to stop logging IP numbers? EDIT: I see that IP Logging can be shut off on the "General Settings" portion of the Admin Panel Edited July 10, 2006 by rnmcd Quote
TheMovieman Posted August 4, 2006 Posted August 4, 2006 After reading this thread, I decided to install this poll as well, but I must've done something wrong as when I went to go to the admin page, all I get is a white page... I believe I uploaded all the files so I don't know what happened. Quote
TCH-Bruce Posted August 4, 2006 Posted August 4, 2006 What do you mean you uploaded all the files? It is a one-click install from the Fantastico library. I would remove it and start over. Quote
xenangel Posted August 11, 2006 Posted August 11, 2006 I'm using the Advanced Poll, but also having problems with the cookies. I don't care if people vote several times. But, when I leave the include out, then my poll does not work (press the Vote button and no action). I think there is a problem with the code. Does the code below seem correct? I think the if statement is backwards. In that, it should say if (headers_sent()) and not negative. Here's the poll_cookie.php code. <?php /** * ---------------------------------------------- * this code is optional * Important! You have to include it * before your html code * ---------------------------------------------- */ if (!headers_sent()) { $cookie_expire = 96; // hours $action = (isset($HTTP_GET_VARS['action'])) ? $HTTP_GET_VARS['action'] : ''; $action = (isset($HTTP_POST_VARS['action'])) ? $HTTP_POST_VARS['action'] : $action; $poll_ident = (isset($HTTP_GET_VARS['poll_ident'])) ? $HTTP_GET_VARS['poll_ident'] : ''; $poll_ident = (isset($HTTP_POST_VARS['poll_ident'])) ? $HTTP_POST_VARS['poll_ident'] : $poll_ident; if ($action=="vote" && (isset($HTTP_POST_VARS['option_id']) || isset($HTTP_GET_VARS['option_id']))) { $cookie_name = "AdvancedPoll".$poll_ident; if (!isset($HTTP_COOKIE_VARS[$cookie_name])) { $endtime = time()+3600*$cookie_expire; setcookie($cookie_name, "1", $endtime); } } } ?> Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.