Adding labels for poll options

Tutorials for creation, installation and management of phpBB styles.

Moderator: Moderators

Adding labels for poll options

Postby GHS on Wed Jan 31, 2007 7:04 pm

Greetings,

This topic will explain how can you add labels for poll options (when you click on option text, the radio button will be checked).

Open the file templates/your_template/viewtopic_poll_ballot.tpl and find:

Code: Select all
value="{poll_option.POLL_OPTION_ID}"


In line, after add:

Code: Select all
id="option_{poll_option.POLL_OPTION_ID}"


Now, find:

Code: Select all
{poll_option.POLL_OPTION_CAPTION}


And replace with:

Code: Select all
<label for="option_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label>


Done. :)
Porting ExtremeDark Red to phpBB 3 :]
User avatar
GHS
Designer
Designer
 
Posts: 109
Joined: Sun Oct 01, 2006 3:21 pm
Location: Rio Grande do Sul - BR

Postby Gabriel® on Fri Feb 02, 2007 11:37 am

Whats result for this? :D
I need support about CSS... Help me?
Gabriel®
Registered User
Registered User
 
Posts: 48
Joined: Mon May 08, 2006 2:51 pm

Postby PostBot on Fri Feb 02, 2007 12:59 pm

[quote user="Gabriel®" post="87260"]Whats result for this? :D[/quote]
Easily clickable poll options if you are using modern browser (aka not IE)
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars


Return to phpBB Styles Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests

cron