Jump to content
DevFuse Forums
Sign in to follow this  

3.2.x Public polls by default


Description

A small skin edit to make new polls public by default, unless the poll creator chooses to make them private.
Here is a quick, simple tutorial on how to have "Make votes public?" checked by default. This may eliminate the problem of members who do wish to have a public poll but are unable to change it after submitting it.

A small skin edit is required.

ACP > Look / Feel > Skin Manager > (choose skin) > Manage Templates / CSS > Post Screen > Poll Box >

Find...
[code]<span class='ipsType_small' id='check_public_poll' data-tooltip="{$this->lang->words['poll_public_warning']}">
<input type='checkbox' class='input_check' name='poll_view_voters' id='poll_view_voters' value='1' <if test="viewPollVoters:|:$data['poll_view_voters']">checked='checked'</if> />
<label for='poll_view_voters'>{$this->lang->words['poll_fs_public']}</label>
</span>[/code]

Change to...
[code]<span class='ipsType_small' id='check_public_poll' data-tooltip="{$this->lang->words['poll_public_warning']}">
<input type='checkbox' checked ='checked' class='input_check' name='poll_view_voters' id='poll_view_voters' value='1' <if test="viewPollVoters:|:$data['poll_view_voters']">checked='checked'</if> />
<label for='poll_view_voters'>{$this->lang->words['poll_fs_public']}</label>
</span>[/code]

Save the change. Repeat for other skins if required. Quick pic:

[IMG]http://img.photobucket.com/albums/v294/yellow_spider/ipb_tutorials/default_public_poll.png[/IMG]


Recommended Comments

There are no comments to display.

×