MyBB Community Forums

Full Version: Poll options/results allignment
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i make a poll can i determin the allignment of the options and results? Cause always the options go in the middle and the results in the right, what if i wanted the poll options in the left and the results in the middle etc, how do i do it ?
From what I interpret from your post, you're trying to switch the option text and the result graph columns in the thread.

Go to: Admin CP --> Template Manager --> *Expand your template* --> polls_showresults_resultbit

If you're using the default MyBB templates, use the following code:
<tr>
<td class="$optionbg" align="right"><img src="$theme[imgdir]/pollbar.gif" width="$imagewidth" height="10"><br />$userlist</td>
<td class="$optionbg">$option$votestar</td>
<td class="$optionbg" width="67" align="center"><a href="polls.php?action=showresults&amp;pid=$poll[pid]#option$number">$votes</a></td>
<td class="$optionbg" width="67" align="center">$percent%</td>
</tr>

Basically I moved
$option$votestar
and
<img src="$theme[imgdir]/pollbar.gif" width="$imagewidth" height="10"><br />$userlist