Specifically for this goal there are several parts which have been described below. In case you would like help creating your XML stylesheet or to show your poll layout please continue reading or contact us.
| The logo/the top of the poll | ![]() |
| The questionbar | |
| The frequencybar | |
| And ofcourse a footer to display the votes |
This site works with a template to create the graphics. This is build on XML and gets parsed by our parser. The example below is used for the GFX poll on FOK but can be addapted for any site.
<?xml version="1.0" encoding="iso-8859-1"?>
<gfxPoll TransparentColorTop="1px" TransparentColorLeft="1px">
<gfxHeader image="header.png">
<gfxText text="%gfxPoll_title%" align="left" valign="bottom" font="arial.ttf" size="13" color="#000000" top="45px" left="90px" angle="0" />
</gfxHeader>
<gfxOption image="option.png"> <gfxText text="%gfxPoll_optionText%" align="left" valign="bottom" font="arial.ttf" size="10" color="#000000" top="4px" left="130px" angle="0" />
<gfxText text="%gfxPoll_optionVotes% votes / %gfxPoll_optionProcents%%" align="right" valign="bottom" font="arial.ttf" size="10" color="#000000" top="4px" left="305px" angle="0" />
<gfxImage file="procentBar.png" align="left" valign="bottom" top="3px" left="5px" height="4px" width="%gfxPoll_optionProcents%%" />
</gfxOption>
<gfxFooter image="footer.png">
<gfxIf expression="%gfxPoll_closed%">
<gfxIfTrue>
<gfxText text="Poll closed, total %gfxPoll_totalVotes% people voted" align="center" valign="bottom" font="arial.ttf" size="10" color="#000000" top="3px" left="50%" angle="0" />
</gfxIfTrue>
<gfxIfFalse>
<gfxText text="Total %gfxPoll_totalVotes% people voted" align="center" valign="bottom" font="arial.ttf" size="10" color="#000000" top="3px" left="50%" angle="0" />
</gfxIfFalse>
</gfxIf>
</gfxFooter>
<gfxGlobal>
</gfxGlobal>
</gfxPoll>
If you have created a layout and want to submit it to the site please contact us (here). Within days we will notify you if your layout will get added.
| ||