Plugin Author
YOP
(@yourownprogrammer)
Hi jimjiber,
Edit yop_poll_model.php and replace
$template = str_ireplace( '%POLL-VIEW-RESULT-LINK%', '<a href="javascript:void(o)" class="yop_poll_result_link" id="yop_poll_result_link' . $poll_id . $unique_id . '" onClick="yop_poll_view_results(\'' . $poll_id . '\', \'' . $location . '\', \'' . $unique_id . '\')">' . $poll_options['view_results_link_label'] . '</a>', $template );
with
$template = str_ireplace( '%POLL-VIEW-RESULT-LINK%', '<p style="text-decoration:underline;cursor:pointer" class="yop_poll_result_link" id="yop_poll_result_link' . $poll_id . $unique_id . '" onClick="yop_poll_view_results(\'' . $poll_id . '\', \'' . $location . '\', \'' . $unique_id . '\')">' . $poll_options['view_results_link_label'] . '</p>', $template );
Let us know if you need more help.
Best wishes,
YOP Team
That is great – works perfectly!
Thanks ever so much.
Feel free to vote for your favourite budgie!
BTW – further to another post I read on here, it would be amazing if once you had already voted, the page would show the results by default. I am sure if this was easy to do you would have implemented it already though!
Thanks again.
^_^