it adds a link under the poll submit button that lets you view the current
poll results from any page without the need to vote first!
Open plugins/poll.php
Find:
- Code: Select all
$answers = explode("|", $answers_arr);
$count = sizeof($answers);
$votes = explode("|", $votes_arr);
include $cutepath.'/plugins/poll/form.tpl'; // Template of the poll form
}
After Add:
- Code: Select all
if ($act == "res") {
pollres($echo);
}
Save and close
Open plugins/poll/form.tpl
Find:
- Code: Select all
<input type="submit"........
After that line, when the submit button ends, Add:
- Code: Select all
<br>
<a href="?act=res">Show Results</a>
Save, close and upload the files
That's it! you can style it and play with it however you want!
DarkSlim
