admin on oktober 17th, 2009

Yesterday I finished my first WordPress plugin: WP-PhotoContest.

This plugin permits you to create a ‘voting for photos-contest’ from the WordPress admin panel
Subscribed users can uploads photos and everyone else can vote for the uploaded photos.

See details and demo here!

 

Status and support:

Please use Wordpress forum for your support questions.

I’ve been busy with an update, but I really need my plugin to work with 2.7.1 and can’t promiss it will work in all other versions.
(I will try to support the latest version, but can promiss anything)

Also if I don’t get any help, I only can fix bugs and no extra features!

So, I can give support on some level.

I need the following:
- URL of the question in the Wordpress forum
- The url of the contest
- Your wordpress version
- Your plugin version
- FTP details
- Wordpress admin account

send this to antispam@vanderstad.nl

67 Responses to “My first WP-plugin: WP-PhotoContest”

  1. Have you thought about doing this same plug-in only for video files?

    A video contest plugin would be awesome!

  2. Humm, great idea.

    Will look into that after fixing some security issues!

  3. I have been looking for something to kick my website and I would love to see one for video too. I’m sure this is going to work in FitnessHealthPlan.com, take a quick look at it. I will start the install in the morning.

    Thanks a lot Bill and Sheila

  4. Ik wil de plugin gebruiken voor de website van onze fotoclub, ik ondervindt alleen een probleem met de layout. Mijn sidebar wordt helemaal naar beneden gegooid. Ik heb al in de CSS zitten rommelen maar krijg dit niet opgelost. Kan je me hierbij helpen ?

  5. Nog een opmerking, volgens mij werkt de captcha niet, ook op jouw website lukte me het niet.

  6. Great Plugin, love the capabilities, however there are a couple of issues here…

    Seems to be a direct conflict with a major plugin call “redirection” as well as several others…

    Generates the following error –

    Fatal error: Cannot redeclare pr() (previously declared in /home/fidocity/public_html/wp/wp-content/plugins/redirection/plugin.php:590) in /home/fidocity/public_html/wp/wp-content/plugins/wp-photocontest/lib/debug.func.php on line 48

    I had to disable the redirection plugin to get the photo contest to activate…

    Highly recommend prefacing the functions with the plugin name in some way… such as wppcpr() to greatly reduce the possibility of such problems…

    also, just did the auto update on my demo/test site and all I got was a “Fatal Error” upon activation with no other information… and it dumped all the existing data… including the template page… you can see this at http://q8hw.com/income/?page_id=15

    again not a direct problem as this was a test site anyway, just wanted ot let you know what I experienced…

    The site is using the Flexibility Theme and only has a couple of plugins as it is a test site.

    If you want to dig into either of these issues, I would be happy to give you access to the admin panel, again this is a test site, so not a problem if you are interesed.

    Regards
    Ken
    admin@pro-desk.net

  7. Hello,

    i dont post photo… because ?

    Error:
    Problems while creating the thumbnail files.
    X
    Retry your upload

    Thanks !

  8. Sorry, I’m currently testing the 1.3 version of the plugin and accidentally deleted my photo’s!

    Version 1.3 will be out in 2 days or so….

  9. Hi — This plugin idea is sure to be a hit once the kinks are worked out. I will also be very interested in a video version of it.

    I installed your plugin version 1.3.5 twice in order to play with it.

    The first install was on a site that already had other plugins running, and there was some sort of conflict. I was unable to reach any of the PhotoContest Administrative pages because the dynamically generated URLs were incorrect.

    The second time, I created a fresh installation of WordPress (no other plugins) and then activated PhotoContest. This time, the URLs generated worked fine so I was able to compare the URLs I should have been getting with what I am erroneously getting on the other site.

    Instead of the following:

    domain.com/wp-admin/admin.php?page=wp-photocontest/photocontest-settings.php

    domain.com/wp-admin/admin.php?page=wp-photocontest/photocontest-manager.php

    domain.com/wp-admin/admin.php?page=wp-photocontest/photocontest-add.php

    I get:

    domain.com/wp-admin/wp-photocontest/photocontest-manager.php?page=wp-photocontest/photocontest-settings.php

    domain.com/wp-admin/wp-photocontest/photocontest-manager.php?page=wp-photocontest/photocontest-manager.php

    domain.com/wp-admin/wp-photocontest/photocontest-manager.php?page=wp-photocontest/photocontest-add.php

    Any suggestions for why this is happening?
    I have the same permalink structure set up on both sites.

    A couple of other bug reports for you:

    1. During photo upload, if you upload a GIF, the thumbnail creation scripts throw errors. It appears the GIF still uploads but without thumbnails.

    No errors happen when a JPG is uploaded.

    2. When I turn debugging on, I get the following notices when displaying ALL uploaded images (JPGs and GIFs):

    Notice: Undefined variable: notice_string in
    /path/wp-content/plugins/wp-photocontest/viewimg.php on line 347

    and

    Notice: Undefined property: WP_Query::$is_paged in /path/wp-includes/query.php on line 421

    I hope you will continue development of this plugin!

  10. Volgens mij werkt de link op de Wordpress site hiernaartoe niet:
    http://www.vanderstad.nl/wordp.....otocontest

    Grt
    Lourens Rolograaf

  11. @WordPressZen:
    1) I’m looking (thanks for the email) into reproducing the error.
    2) The GIF upload works on all my servers. Maybe this has something to do with your php-setup. Can you give me a php_info() print?
    3) ‘Notice: Undefined variable: notice_string in’: This is fixed in the next version (1.3.5.1)
    4) ‘Notice: Undefined property: WP_Query::$is_paged ‘: This bugger keeps anoying me, but I can find a fix…. ANYONE??

    @Lourens Rolograaf:
    Fixed!! Thanks

  12. Hi Frank,

    Thank you for this great plugin, i use it on my farmvillesecretsblog.com
    Unfortunately when I try to upload photo’s I get the following message:

    Warning: imagepng() [function.imagepng]: Unable to open ‘/home/wwwfarm/public_html/wp-content/plugins/wp-photocontest/contests_holder/my_farm\_screenshots/lrg_admin_cow.png’ for writing: No such file or directory in /home/wwwfarm/public_html/wp-content/plugins/wp-photocontest/lib/thumbnail.class.php on line

    Could you please assist with this problem I have on my blog.

    Groete
    Phil

  13. Hi I installed your plugin and I have the latest version of WP and I get blank pages each time I try to add a contest. it does not work.

  14. Also the Settings page shows a blank page. There’s no admin menu are anything for Wordpress showing at all…just blank.

  15. Hi,
    I installed your plugin on our blog, did a translation to Polish and customize it a bit.
    Besides thing that are custom for our blog I found some problems and I would like to share them with you.

    Problems with stressed characters (ą,ę,ć,ś …):
    1. When you create a contest with stressed characters in it’s name than the plug-in fails to display thumbnails.
    2. When people title their photos with stressed characters than thay are not displayed it the thumbnails. Probably the font that you are using in your swf file doesn’t support stressed characters. Could you provide a Unicode font instead.

    Miscellaneous bugs:
    1. Exception thrown in IE 8 on for(var q in swfobject); My fix: if(typeof swfobject != “undefined” && swfobject != null){for(var q in swfobject)
    2. Why do you do in login.php. I use WP Security Scan and my wp version is changed to abc. Could you please remove it?

    Translation issues:
    1. There’s no way to translate: ‘Cancel Rating’, jquery.rating.js line 322
    2. msgid “The vote must be a number between 1 and 10.” This message appears even if rating is set to 1-5.
    3. You should provide a msgid msgid_plural for “%d votes”.
    4. Translation for “No %s provided”… Could you please provide a translation for the %s as well – I need to transfer “image file”, “title” etc. as well

    Additionally I customize your code – perhaps you would like to include these changes into your plugin – if so just let me know:
    1. Only registered users can vote
    2. Voting for is not displayed if you already voted. This is really annoying with your plugin – there was no way to figure out easily if you voted for a photo or not – you have to vote again just to get a message that you already voted.

    I just want to say you did a great job with your plugin! I hope I can contribute with my translation and codding.

    Salutation!

  16. Hi,

    this plugin is perfect for my needs:-), so first of all, thanx to you.

    But now, i have a little problem. Everything works fine, but in the polaroids are no thumbnails shown. Do you have an idea?

    For my Blog, i use wpmu, buddypress and buddymatic.

    Thanx, Denise

  17. Hi,
    Great plugin,

    I need only a little help.
    I’ve implemented your plugin but I noted that in a page I’ve displayed some unwantend information.
    EG : http://www.vericampeggiatori.i.....der=chrono

    you can see the in the bottom there are :
    Pages
    Archives
    Categories

    displayed …. I’m fighting to find where i can define to not display these.
    have you any help ?

    THX A LOT
    MAURIZIO

  18. Open plugin/wp-photocontest/skins/aqua/template.tpl and remove < ?php get_sidebar(); ?>
    This should remove the unwanted info!

  19. Send my a url so I can check!

    Greets,
    Frank

  20. Ahhhh Great,
    I checked everywhere but the skin !!

    THX a lot

  21. probably i found a little problem on the Voting process.

    -I go to vote a pict
    -Instead of leave the registration e-mail, I change the email with a not real e-mail
    -Every time I select the same photo my official email is presented …. in this case unsing not real emails i can vote as i want …

    Are you experiencing the same?

    I think that we can work around this problem deleting the e-mail field from the voting page.

  22. Hi ,
    Still here :-)

    could you explain how the setting VISIBLE_UPLOAD works?
    tried to change the value but i’ve always the images published …

    THX a lot
    Maurizio

  23. That is something we also found out, and will be in the next release.

  24. Please try this to debug:

    Check the table wp_photocontest_config and see if the kolom VISIBLE_UPLOAD is set to 0
    Set the VISIBLE_UPLOAD to ‘0′
    Upload a photo
    Check the table wp_photocontest and see if the kolom visibile is set to 0
    Check if the photo is visible on the frond end
    Check if the photo is visible=NO in the back end

    if everyting is ok, reply and I will try to debug futher..

  25. Check the table wp_photocontest_config and see if the kolom VISIBLE_UPLOAD is set to 0 — No =1

    Set the VISIBLE_UPLOAD to ‘0′ — Done
    Upload a photo — Done
    Check the table wp_photocontest and see if the kolom visibile is set to 0 — OK
    Check if the photo is visible on the frond end — No in the frontend
    Check if the photo is visible=NO in the back end — Visible=NO

    Seems that the value is not set to 0 via backend ….

  26. 1 cooments on this …
    could be usefull to see the description of the image in the backend for a complete managing of the images .

    Ciao

  27. I can’t wait for you to fix all the kinks and hope you are still doing it. This will be perfect on my photo contest blog!!! I’ll be watching for updates:)

  28. How do I get the comments box to show on the images pages? I am using the default Kubrick theme and your Aqua skin, and have Comments open in the settings, but the comment box isn’t showing up on the contest page OR the photos pages. Help?

    Site is :http://billykaymusic.com/news

  29. Experienced difficulties upgradign to the latest. Uninstalled previous version, deleting the tables. Installed latest version. and it appeared to be running fine but then we noticed that when we viewed the photo contest thru the admin panel we could only see the first entry, yet there are ore entries visible in the user contest page… and all the photos have been uploaded to the correct folder and the correct folder is described in the setup…also, all the photos show up as being added by the username for whatever computer you are viewing on…

    we can’t figure out how to get the email address associated with the entry since the entry isn’t viewable in the admin management view and it will be impossible to associate whcih prize goes with which photo with which upload, etc…

    any advice on how to resolve these issues?????

    Regards,
    ken
    admin@pro-desk.net

  30. it appears to not be related to the contest holder directory but rather something in the database that is correlating the pics with the contest/entry or something like that…

    Please help as soon as possible as I ahve a number of people getting mad at me…

    ken

  31. additional notes on problem…
    it appears as though when someone registers to upload a new picture, that registration is not making it into the wp registered users database… we’ve had several new pics uploaded, but no new users are showing up in wordPress users listing…

    again, this is a fresh install of the latest download… on wp 2.9.1

    Please advise at your earliest possible opportunity…

  32. HI,
    I’m not a real developer but I tried to make some changes with succes and other without.

    1- I noted a little error that I tried to fix without success :
    In viewimg, when you display the image
    the author displayed is the current user and not who is the real uploader of the image.
    Do you have any suggestion ?
    2- In the polaroid instead of the image decription … is there a way to display the author ?

    THX for your help
    maurizio

  33. Hi Frank,

    in search of something like this we stumbled across your PhotoContest-PlugIn. We try to figure out, wether we can use it for a project of one of our clients. I´ve made an installation for testing purposes on our blog-site an everything seems work fine so far. Since we have to run the Contest for german customers it would be important to have a german localization of the plugin. I tried to create the files “wp-photocontest-de_DE.mo” and “wp-photocontest-de_DE.pot” for my own, but I find it rather tricky … I´ve alredy installed Poedit, but this is just capable in editing the “.pot”, but not the “.mo”-files. I would be glad, if you could give me some advice – I would provide you in return with a proper german localization :-)
    Best regards, Herb

  34. Hoi Frank,

    Hier was ik lang naar op zoek! Ben er dus blij mee! Echter ik krijg verschillende foutmeldingen na installatie die voornamelijk met schrijfrechten te maken hebben. Na wat attributen gewijzigd te hebben, lukt het om een wedstrijd aan te maken. Maar dan kom ik op de pagina page=wp-photocontest/photocontest-manager.php terecht met de volgende melding: Je hebt geen toegangsrechten voor deze pagina. Deze melding blijft als ik hem op 777 zet.

    Bij het openen van de pagina (Want er is er blijkbaar wel een aangemaakt)) zie ik dit bovenaan de pagina staan:

    Warning: error_log(/home/vaneis/domains/vaneis.nl/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.log) [function.error-log]: failed to open stream: Permission denied in /home/vaneis/domains/vaneis.nl/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 983

    Warning: error_log(/home/vaneis/domains/vaneis.nl/public_html/wp-content/plugins/all-in-one-seo-pack/all_in_one_seo_pack.log) [function.error-log]: failed to open stream: Permission denied in /home/vaneis/domains/vaneis.nl/public_html/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 983

    Deze melding is er alleen als jouw plug in geactiveerd is, dus wat het er mee te maken heeft?

    De plugin gooit ook de lay out door elkaar door het te breed is, kan je dat ergens aanpassen? Ik heb hem hier (verborgen) staan: http://www.vaneis.nl/?page_id=787

    Bedankt voor je reactie!

    Wop

  35. hi. everytime i try to view the contest i just created, i get a message that says…You do not have sufficient permissions to access this page.

    can you please tell me what i’m doing wrong?

  36. This is fixed in the current version (1.4.3, uploaded on 8 march 2010)

  37. This is fixed in the 1.4.3 version (uploaded on 8 march 2010)

  38. I’m not familiar with WP mu…. so can’t help you with it right now…. will look into it!

  39. Hi,

    Deze plugin is EXACT wat ik nodig heb.
    Maar…zodra ik de plugin upload en activeer gaat het mis.
    Andere plugins gaan “over de kook”.
    Ik maak gebruik van oa de volgende plugins.
    - New Tag Cloud
    - runPHP
    - WP-PostRatings
    - WP-Print
    - Contact Form 7
    - Lightbox 2
    - wp_list_categories

    Heb jij enig idee waarom wp-photocontest een probleem heeft met een of meerdere van de andere plugins?

  40. Hi,

    Ik ondervind problemen met de plugin op mijn website.
    Door een aantal andere plugins wordt de photocontest plugin niet “geaccepteerd”.

    1. Komt dit probleem bekend voor?
    2. Hoe doe ik er wat aan zonder dat ik alle andere plugins hoef weg te gooien…

    Ik gebruik:
    -All in One SEO Pack
    -Broken Link Checker
    -Contact Form 7
    -Google XML Sitemaps
    -Lightbox 2
    -New Tag Cloud
    -runPHP
    -TinyMCE Advanced
    -WP-PostRatings
    -WP-Print

    Eerst hikt de site over WP-Postratings.
    Echter, als ik die activeer dan hikt de site over een andere plugin.

    Ajuto, Help, Hilfe!

    Gr Letty

  41. Hi Frank,

    Though I’m Dutch, I’ll write in English so your other visitors can follow the discussion too.

    Really like your plugin; I’m looking for something like this to use in a design contest. Only thing is that we’d need some kind of e-mail validation or double opt-in voting to prevent numerous votes from the same person.

    Is this something you are working on already? I’d love to work with your plugin since it looks awesome.

    Hope to hear from you soon,
    Richard

  42. Hi,

    I have the same problem as Debora. How do I get the comments box to show on the images pages? I have Comments open in the settings, but the comment box isn’t showing up on the contest page OR the photos pages. Does anybody knows why ?
    Thank you in advance !

  43. Hi: great plugin. Congrats.

    I have a couple of questions. When submiting a vote, i get error with captcha. I enter the right captcha code, but it says error and show a different code.

    Then in the settings, i disable captcha, still loading the same error even without captcha.

    Finally, should I assume when a photo is not uploaded, then it means it is too big? if so, where in your code can i increase the size of the photo?

    Best
    arezki

  44. Beste Familie van der Stad,

    Is het mogelijk om de Nederlandse versie van deze fantastische plugin te krijgen.

    Hopende op een spoedig berichtje,

    W. Hensen

    info@sticky-media.nl

  45. Hello! Thank you for this great plugin. I think I have checked everything but still can’t see any thumbnails in polaroids. Any idea?

    http://www.photometria.gr/wp-c.....der=chrono

    Thank you

  46. Thank you very much for your help! Thumbnails are on. This is a great script! One last question please. When I first enter the script (http://photometria.gr/wp-conte.....ost_id=118) I cannot click on any photo. When I enter Recently added menu (http://www.photometria.gr/wp-c.....der=chrono) photos become clickable and everything is OK. Can I do something for the first link to be able to see the photo details? Thank you once more time for your help.

  47. I guess this is my last question... :-P I need to translate some of the script's texts. Is there any way I can do that? Do you want any Greek translation for free to provide with the script? Thank you once more for this great script and your help.

    Open wordpress/wp-content/plugins/wp-photocontest/localizations/wp-photocontest.pot and put the translated strings into the msgstr-field (like msgstr “[translated string here]“)
    After that, send me the new .pot file with your country code (so for dutch: wp-photocontest-nl_NL.pot)
    I will create a .mo file which you need to upload to the localizations directory. Change the define (’WPLANG’, ”); value in wp-config.php (so for dutch: (’WPLANG’, ‘nl_NL’);)

    Thanks all ;)

    Greets,
    Frank

    Don’t forget to change the header of the pot-file!

  48. . pot file ready, please let me know where to send it or upload it. Thanks

  49. Hi Frank,

    Does this Plugin support 2.9.2?

  50. Hi everybody

    I’m french and I’m not very good in english. Sorry for the mistakes in my sentences…

    I need you. I have installed WP-photocontest It’s allright !

    But I would like using the WP’s search engine for searching information as photo’s title in the WP-photocontest…

    How can I do ?

    We are the april 29th… and ideally, I need the solution for yesterday !!!

    Thank you for you answers

    Gaël

  51. Try to look for the answer to your question in google.com
    This message, is matchless)))
    It is remarkable, it is the amusing answer
    I consider, that you commit an error. I suggest it to discuss. Write to me in PM, we will talk.
    It is reserve, neither it is more, nor it is less

  52. Great app, is there a Video version out???

  53. Can you add admin settings, I will pay. Contact me ASAP

  54. Where I can find skins for this plugin? I am not a developer and do not know the first thing about creating one. Thanks

  55. Hey there,

    I’m having trouble with the plugin. For some reason it doesn’t save the vote in the database?? I have no clue why, I tried to check but can’t find anything. I’m using wordpress 3.0 ( http://knaek.ikhebeenbril.nl/w.....der=chrono‘ ). I’m really stuck here and this plugin is the only thing that comes close to what i want. Could you please take a small look at it?

    Groetjes,
    Ad

  56. Hi,

    quando creo un concorso e specifico il numero di foto massime inseribili da un utente, corrisponde anche al numero totale di foto che è possibile inserire in TUTTO il concorso.

    Perchè?

    Grazie.

    Igor

  57. Hi,

    when I create a new competition and specifies the maximum amount of photos submitted by a user, that amount is also corresponds to the total number of photos you can include in all competitions.

    Why?

    Thank you.

    Igor

  58. any word on an update for WP 3.x?

    we currently use the plugin on my Wife’s site as well as recommending it to clients and we have had to stop recommending it due to these compatibility issues with WP3.0 upgrades…

    Please advise at your earliest opportunity…

    If you have issues with a test/development site for this work, just let me know. My partner and I own and/or manage over 600 domains on several dedicated servers and I would be happy to set up a base wp3.x install with the photo contest for you to develop the update with…

    Best Regards,
    Ken

  59. This plugin is exactly what I’ve been looking for for a couple years now. Thank you so much for creating such an amazing plugin.

    However, it does not work with Wordpress 3.0.1. The main viewimg.php page’s layout and css get screwed up somehow. The voting stops working, captcha doesn’t show up, etc. There are a quite a few bugs.
    Are you planning on updating the plugin anytime soon? If you are, awesome! I’m sure I’m not alone when I say I’m really looking forward to that. If you’re not going to update, can you let us know? That way we at least know what we’re working with.

    If you want some suggestions on features to add, let us know that as well. I’ve got quite a few things I would like to see happen such as click-able link on “poster” name (being able to see all the photos and contests that poster has posted or participated in), voting score in the details of the photo on the viewimg.php page, top rated poster, etc.

    We really enjoy the work you’ve done here. We just would like to see it updated soon.

    Thank you!
    Dan

  60. I love this plugin.

    I’m recently having some trouble. I am not able to vote for photos…It says at the bottom of the page “Error:
    You have provided an invalid emailadress.”

    Not sure what I’ve done wrong. I deleted a contest and started a new one…no difference.

    Can you help? Should I try reinstalling the plug-in?

    Destin

  61. Hi!

    I think this plugin don’t works on Wordpress v 3.0.1.

    I love this plugin but I can use it.

  62. Can someone please Help me?? I can’t get mine working to save my life.. I have installed it and been messing with it for the longest. I got someone the things to work but I can’t get the rating gage to work and it think I just messed it up all together.. Please help!

  63. Very Nice Plugin, thank you!
    Where can i translate: “Post photos” – “Recently added” – “Most views” and so on…
    How you call the right Editor Name!
    Thanks so mutch!

    Jan

  64. Is there any german language file for me! Because i dont understand how i can chance the msgstr file….. Sorry! and thank you

  65. Hi Jan,

    There isn’t a german translation yet.

    Please open wp-content/plugins/wp-photocontest/localizations/wp-photocontest.pot

    Enter the german translation of msgid in msgstr, save the file and send me the file!
    After that I will create a german file!!

    Greets,
    Frank

  66. Hello all,

    Please use http://wordpress.org/tags/wp-p.....orum_id=10 for your support questions.

    I’ve been busy with an update, but I really need my plugin to work with 2.7.1 and can’t promiss it will work in all other versions.
    (I will try to support the latest version, but can promiss anything)

    Also if I don’t get any help, I only can fix bugs and no extra features!

    Greets,
    Frank

  67. NOTE:

    I can give support on some level.

    I need the following:
    - URL of the question in the Wordpress forum
    - The url of the contest
    - Your wordpress version
    - Your plugin version
    - FTP details
    - Wordpress admin account

    send this to antispam@vanderstad.nl

Leave a Reply