1. How can I use multiple polls on the same page?
Each poll must have an unique numerical ID, so that you can use as many polls as you want on the same page, or just one. A constraint is that you need to have the file iplist_POLLID.txt in the PHP folder, where POLLID is a number associated to that particular POLL.
Example:
If you have three polls, and their id's are 1, 2 and 3. You will need to create a text file for each: iplist_1.txt, iplist_2.txt, iplist_3.txt.
flashvars.id = "12345";
Each poll will need to have it's id code passed to it correctly in HTML as well.
2. Help! The results don't update.
First of all you need to make sure the folders xml and php have the file permissions set to 755 on the server you upload them.
Also the files content.xml and iplist_12345.txt need to have the same file permissions so they become writeable for the php script.
If this doesn't work, please try 777.
3. I need to allow multiple votes from the same computer. How do i do that?
In order to allow this, we just won't check if the IP of the voter is in the list of stored IPs.
Just comment the following line in index.html (or the html file you embedded the component):
flashvars.checkIpScriptPath = "php/checkIP.php";
*Note: This will allow voting from the same IP, but will also allow voting for the same option multiple times
XML Flash Voting Poll - tips and tricks
Introduction:
This is a fully customizable XML Flash Voting Poll, with support for unlimited questions and answers. Everything is customizable in the XML files, including the question’s height, text color, size and much more.
This XML Flash Voting Poll contains a handful of features and settings. It is easy to use the poll in your Flash projects or as an independent Flash Poll Component on your html based website.
If you want to use the poll in a Flash file, importing it is as easy as moving some actionscript files around and dragging the movieclip containing the poll in your Flash file.
Skinning is very simple as well. To edit the file you don't need any Flash experience, because all the settings are loaded from an external XML file, which you can edit with any text editor. You can change the colors of the elements, the size of the elements, the size of the poll and much more.
As an example, you can set the itemHeight from the XML file and the poll component will automatically resize depending on the number of answers.
The questions and answers are also loaded from an external XML file, so you can add unlimited answers and questions. The user can quickly change the background color of the poll, the background color of the question and of the answers.
The code is very well commented, written following the best OOP practices, and the downloaded file comes with all the assets used to create the XML Flash Voting Poll such as the fonts, the PSD source files, and the fla source file.
Features:
1. Customize the poll through the XML file.
2. Add unlimited questions and answers.
3. Customize the colors from the XML file.
4. Set the size of the questions and answers from the XML file.
5. Supports scrolling.
Folder structure:
Please navigate to the deploy folder, inside the project folder. This folder contains all the files you need to upload to your server to have the XML Flash Voting Poll work. Your server must support PHP.
poll/xml/settings.xml
XML configuration file - This is where you make all changes to the look and feel of your XML Flash Voting Poll.
poll/xml/poll.xml
Questions/Answers XML configuration file - This is where you make all changes to the poll's questions and answers.
js/swfobject.js
Deconcept SWFObject is a small JavaScript file used for embedding Adobe Flash content. The script can detect the Flash plug-in in all major web browsers (on Mac and PC) and is designed to make embedding Flash movies as easy as possible.
js/expressInstall.swf
SWFObject has full support for the Adobe Flash Player Express Install feature. Using expressinstall, your users never have to leave your site to upgrade their Flash Player.
preview.swf
This is the component swf file which is embedded in your website.
index.html
HTML document used to embed the swf file. Please check the source code to see how the variables are passed to the swf file, using any text editor such as Notepad or Textedit.
settings.xml structure:
Below you can see what each of the attributes in the XML file means:
<settings width="560"
height="420"
openVoting="true">
Here you can define the poll width, height, as well as if the voting is opened or has ended. This means you can set the poll to be active on a specified timeframe.
<background strokeColor="0xC8CACC"
fillColor="0xF3F5F5"
contentMargin="15"/>
Sets the poll background stroke color, fill color and width of the content margin.
<question backgroundHeight="50"
backgroundStrokeColor="0xffffff"
backgroundFillGradientBeginColor="0xF3A342"
backgroundFillGradientEndColor="0xEE8631"
titleColor="0xffffff"
titleFontSize="20"
votesTextColor="0x666666"
votesTextFontSize="14"
votesBackgroundFillColor="0xffffff"
votesBackgroundStrokeColor="0xEEEFEF"
votesBackgroundHeight="25"/>
Sets the the question's background height, background stroke color, background fill gradient, title color, title font size, votes text color, votes text font size, votes background color, background stroke color and votes background height.
<list distanceBetweenItems="8"
itemHeight="50"
itemStrokeColor="0xEEEFEF"
itemStrokeOverColor="0xEE8631"
itemFillColor="0xffffff"
itemTextColor="0x000000"
itemTextOverColor="0xEE8631"
itemShapeColor="0x000000"
itemShapeOverColor="0xEE8631"
itemTextFontSize="14"
itemBarHeight="8"
itemBackgroundBarColor="0xF1F2F2"
itemBarColor="0xF7941E"
itemVotesTextColor="0x666666"
itemVotesTextFontSize="14"
itemVotesBackgroundFillColor="0xF3F5F5"
itemVotesBackgroundStrokeColor="0xEEEFEF"
itemVotesBackgroundHeight="25"/>
Sets the distance between answers, the answers height, the stroke color of each item, roll over stroke color, answers fill color, answers text color, item text roll over color, answer's shape color, shape roll over color, text font size, bar height, bar background color, item's text color, item's text font size, item's background stroke color and item's background height.
<scroll backgroundWidth="16"
scrollerWidth="8"
backgroundColor="0x000000"
scrollerColor="0xffffff"/>
Sets the scroll width, background width, scroll background color and scroller's color.
<vote backgroundWidth="60"
backgroundHeight="23"
backgroundStrokeColor="0xC8CACC"
backgroundFillGradientBeginColor="0xE84B14"
backgroundFillGradientEndColor="0xF77E0B"
backgroundFillInactiveColor="0xF3F5F5"
iconColor="0xffffff"
iconInactiveColor="0xD1D3D4"
textColor="0xffffff"
textFontSize="12"
textInactiveColor="0xD1D3D4"
overTextColor="0x333333"
voteText="VOTE"/>
Sets the vote background width, vote background height, vote background stroke color, vote background gradient colors, vote background fill inactive color, icon color, icon inactive color, vote text color, vote text font size, vote text inactive color, vote text over color and the vote text.
<loader color="0xF77E0B"/>
Sets the poll loader color.
<error serverError="Sorry for inconvenience. Please try again later."
votingError="Your vote wasn't registered."
alreadyVoted="You already voted!"
votedMessage="Thank you for your vote!"
textColor="0xE84B14"
textFontSize="12"
visibilityTime="3"/>
Self-explanatory attributes. Basically you add the strings for each textfield, on particular situations.
<voting_message openVoting="Please select one option below."
closedVoting="The voting session is closed. The question was:"/>
Self-explanatory attributes. Basically you add the strings for each textfield, on particular situations.
poll.xml structure:
This xml contains the poll data. It has a node for the question:
<question>Is Flabell the best stock Flash website ?</question>
Several nodes for answers like :
<answer id="111"
votes="246">Yes.</answer>
And also two attributes answer id and votes, where it counts the total number of votes:
<answer id="112"
votes="264">Not yet, but soon will be.</answer>
Flashvars:
In the html file you can set some variables for the poll like dimensions (width and height), the path to the files if you choose to put them in another location rather than the same folder of course, and the poll data xml file.
flashvars.stageW = stageW;
flashvars.stageH = stageH;
flashvars.pathToFiles = "poll/";
flashvars.settingsPath = "xml/settings.xml";
flashvars.xmlPath = "xml/poll.xml";
Support:
If you need any help using the product, please contact us at [email protected].
MegaSofijanov
on 3/1/11
I have problem with this poll. Can you please check this link: http://www.mkcv.org.mk/deploy/
Thank you.
on 5/1/11
I took a look at your website, and everything seems to be in the right place. Have you modified the php files or the flash project?
We can't know now what exactly is happening. Please buy a support ticket and send us the files at [email protected]
Thank you for downloading our poll.
on 6/1/11
on 7/1/11
So, if you're interested, please buy a support ticket and send us your files at [email protected]
Leonn
on 20/1/11
Problem;Votes promise, however, do not count.I can vote again, we update this page.
And do not count votes.
Chmod 777 now..
Help me..
on 7/2/11
I looked at your webpage and it seems like there's a communication problem with the PHP files the component needs, in order to work. They don't give the any response.
Please check that the paths are correct:
flashvars.checkIpScriptPath = "/checkIP.php"; flashvars.voteScriptPath = "/poll/php/vote.php";They are formed using concatenation with pathToFiles flashvar we set in the JavaScript code in the index.html file. So it will be: pathToFiles+checkIpScriptPath, relative to the page you're embedding the component in.
If you can't get this to work, please buy a support ticket. We'll try to help you fix this.
thegenc
on 7/2/11
on 7/2/11
http://www.flabell.com/blog/668/embedd...
If you have trouble doing this, please buy a support ticket and send us the project and the font at [email protected] We'll embed the font for you.
WoodExa
on 8/3/11
I couldn't see any options for this in settings.xml, but I might have missed it.
on 9/3/11
We're available for custom work, if you're interested. Just send us an email at [email protected] and we'll implement this simple task or any other feature if you want to.
on 9/3/11
on 10/3/11
WoodExa
on 9/3/11
<?xml version="1.0" encoding="UTF-8"?><poll> <question>Did you bebopalua?</question> <answer id="1" votes="0" image="images/1.jpg">Yes</answer> <answer id="2" votes="0" image="images/3.jpg">I'm not sure yet</answer> <answer id="3" votes="0" image="images/2.jpg">No</answer> <question2>Do you do the boogie?</question> <answer2 id="1" votes="0" image="images/1.jpg">Yes</answer> <answer2 id="2" votes="0" image="images/3.jpg">Whoa, yeah!</answer> <answer2 id="3" votes="0" image="images/2.jpg">No</answer> <question3>Did you remember to brush your teeth?</question> <answer3 id="1" votes="0" image="images/1.jpg">Yes</answer> <answer3 id="2" votes="0" image="images/3.jpg">I dont have teeth</answer> <answer3 id="3" votes="0" image="images/2.jpg">No</answer> </poll>on 10/3/11
We're sorry, but this would be more than a quick fix to the component.
We can help you by doing some custom work, if you're interested. Just send us an email at [email protected] with some details. We'll change the component for you.
tempo
on 20/3/11
i want to use the script into a wordpress site.
i want to create one poll for every post on my site. Is it possible? can i create a lot of polls?
how can i insert a poll into a blog post?
thanks for the support
on 21/3/11
We're glad you like our poll component.
To embed the component on a wordpress blog post, you'll need to copy our code from the index.html file, like this tutorial explains:
http://www.flabell.com/blog/1829/how-t...
But you'll need to paste it in HTML mode, not the Visual mode. Also, you'll need to set the pathToFiles flashvar to blank, like this:
flashvars.pathToFiles = "";
and then make all the other paths absolute (with http:// and full path to the file), including any path you set in the XML file.
This tutorial will explain how to embed multiple polls on a single page:
http://www.flabell.com/blog/1669/how-t...
You'll just need to change the IDs for the "div" HTML elements.
If you can't get it to work, please buy a support ticket and give us a link to your website.
cybersash1983
on 8/6/11
on 9/6/11
We're not that familiar with Wix. We never used it, so can't really tell. You should be able to do it, but we don't know how.
gsencan
on 5/7/11
1 simple question:
i need to use this poll on every page
i change numeric ID`s of polls and create ip_xxx.txt for each of them also different xxx.html page for each of them.
but when i vote on 1 page i somehow also vote on all other pages.How to fix this?
on 6/7/11
We can't tell for sure what the problem is. Please buy a support ticket and share a link to your components. We'll take a look at them and try to find a solution for you.
Garrett Massey
on 28/12/11
on 3/1/12
This tutorial explains how to embed the component in a webpage:
http://www.flabell.com/blog/1829/how-t...
It also explains what paths you need to change. Hope you will get it done. If you need more help, please buy a support ticket and share a link to your component, if you have it online. We'll take a look and try find a solution faster.