Adding label's on poll options
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:
Open:
Code:
- templates/your_template/viewtopic_poll_ballot.tpl
Find:
Code:
- value="{poll_option.POLL_OPTION_ID}"
In line, after add:
Code:
- id="option_{poll_option.POLL_OPTION_ID}"
Now, find:
Code:
- {poll_option.POLL_OPTION_CAPTION}
And replace with:
Code:
- <label for="option_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label>