Invision Byte: 3.2.x Public polls by default - IP.Board 3.x - Tutorials - Invision Byte

Jump to content

Welcome to Invision Byte

Welcome to Invision Byte, 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. Take advantage of it immediately, Register Now or Sign In.

  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Purchase one of the products available and quickly receive support for it!
  • View and use the shoutbox to communicate
  • Get your own profile and make new friends
  • Customize your experience here
Guest Message by DevFuse

User is offline Author

Find Posts Tutorial info

  • Added on: Oct 29 2011 11:51 AM
  • Views: 2722

Collaboration


AndyF likes this Like

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...
<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
0
Powered by Tutorials 1.2.2 © 2017, by Michael McCune