Disallowing voting while entries are being collected
-
I am helping a client set up a photo contest and this plugin was a quick and easy way to do it. The only problem was we wanted all the photos in BEFORE we opened up the voting. But we did want folks to be able to view the other entries. The plugin didn’t have any native functionality so here’s what we did. (You will want to be comfortable mucking around in the code.)
Open the viewimg.php file and comment out the Vote form so that it doesn’t show on the rendered page. We added a line of text to let viewers know when the voting would open up.
Lines 665-666 now look like:
<div class="wp-photocontest_detailstext"> <p>Voting begins August 1 and ends August 31. Winner will be announced September 2.</p>
[Please post code snippets between backticks or use the code button.]
And to hide the voting form lines 716-826 now look like:
[Code moderated as per the Forum Rules. Please use the pastebin]
When ready to open up the voting, remove the comment code.
Hope this is helpful. It’s a great plugin.
- The topic ‘Disallowing voting while entries are being collected’ is closed to new replies.