* Chylin * GuruzLord respect
2017-12-02 18:25 · (0)
* Chylin @Graham, please i need a voting poll that will be showing the percent of the vote, urgent
2017-12-05 11:00 · (0)
* Graham * Chylin there already is one in the building tool blocks (social) http://syntax.xtgem.com/manual/xtgem/default?func=xt_poll
2017-12-05 14:43 · (1)
* Chylin * Graham i have goto that place before, and i did not understand it, can you just give me d codes here
2017-12-05 21:12 · (0)
* Chylin * Chylin sir, please show up
2017-12-06 04:48 · (0)
* Graham The basic code of a poll is
<xt:poll id="Any unique value" voted_text="Thank you for voting!" question="your question" show_results="always" answer1="yes" answer2="no" answer3="maybe" />
Copy code
add as many answers as you need like
answer4=""
answer5=""
the Css classes
/* Outer container */
.xt_container { }

/* Poll form */
.xtpoll {}
/* The poll question is in a h3 tag with two classes */
.xtpoll h3 {padding:0;margin:0}
.question {}
.xt_heading {}
/* Poll answer div */
.answer {}
/* Poll answer text*/
.answer label {}
/* Poll submit button div */
.submit {}
/* Poll submit button */
.xt_button {}

/* Poll results  */
/* The poll response text is in a h3 tag with two classes */
.xt_heading {}
.voted {}
/* Each answer is in a  div  with the.result class*/
.result {}

Copy code
2017-12-06 09:00 (edited 2017-12-06 09:02 by Graham ) · (0)
* Chylin * Graham ok thanks, am i to put the the css in the page of the poll, and will it show the percent of the vote
2017-12-06 09:27 · (0)
* Graham * Chylin you can add them on the on the page or in global_stylesheet.css or any css you have linked
the output is as on my demo page further customizing would require js or xtscript
2017-12-06 10:43 · (1)
* Chylin * Graham hmmmmm am lost
2017-12-07 07:08 · (0)
* Chylin * Graham hmmmmm am lost
2017-12-07 07:08 · (0)

Online: Guests: 1