Adding label's on poll options

Submitted by GHS, Feb 2007.
This simple tutorial explains how to put label's on poll options (when you click on the option text, the radio button of it will be checked), this feature only works on the most modern browsers.

Open:
Code:
  1. templates/your_template/viewtopic_poll_ballot.tpl 
Find:
Code:
  1. value="{poll_option.POLL_OPTION_ID}"  
In line, after add:
Code:
  1. id="option_{poll_option.POLL_OPTION_ID}" 
Now, find:
Code:
  1. {poll_option.POLL_OPTION_CAPTION}  
And replace with:
Code:
  1. <label for="option_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label> 

Share this tutorial

If you want to show this tutorial to someone else please use following code to link to this tutorial:
HTML Link:
Forum BBCode:
Content of this tutorial may not be published anywhere else without author's permission. Please link to this page instead.