Need custom work? Register your interest here.

Jump to content


Welcome to DevFuse Forums


Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
 
Guest Message by DevFuse

Tutorial info Visit support topic

  • Added on: Oct 29 2011 04:51 AM
  • Views: 1283
 


3.2.x Public polls by default

A small skin edit to make new polls public by default, unless the poll creator chooses to make them private.

Posted by AndyF on Oct 29 2011 04:51 AM
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...
<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>

Change to...
<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>

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

Posted Image

Powered by Tutorials 1.5.1 © 2014, by Michael McCune