Viewing 8 replies - 16 through 23 (of 23 total)
  • The one you referred to here:

    http://wordpress.org/support/topic/plugin-photocontest-plugin-sorry-you-have-already-uploaded-one-photo?replies=16#post-1722878

    So, what I ended up doing was changing the code again as per the post. But the problem was still happening.

    So I just wanted to get the competition working – I wanted to change the number of entries allowed to many – but no function to edit this and I didn’t feel like like changing the database tables directly

    So… I ended up using an ugly hack:

    $total_nr = (int) $wpdb->get_var( $wpdb->prepare( “SELECT count(img_id) as total_nr from “.$wpdb->prefix.”photocontest WHERE wp_uid = %d and visibile=1 and contest_id = %d”, $current_user->ID, $photo_contest_id) );
    $total_nr = -9999;

    Let’s hope my competition doesn’t implode on itself 🙁

    Hey Frekel!

    Great plugin….although I am also encountering the same issue as above…it tells people they have already uploaded a pictures when its the first time they do so, from a remote location and a new computer…

    I tried modifying the code per the instructions above, with no success.

    Can you help me out please?

    Thread Starter acowboyswife

    (@acowboyswife)

    I’ll definitely start using the plugin again once it’s stable and working correctly. I see some still have the same issues but I think it has potential to be a great plugin! I don’t mess with codes and such so I’ll have to wait for it to be fixed from your end before I activate it again….

    This SHOULD be solved the the comming 1.5.5 release!
    Please test and report back!

    1.5.5 will be out soon!

    awesomeadventuresmagazine

    (@awesomeadventuresmagazine)

    I am having the same problem as many others, I edited the code to this:
    $total_nr = 0;
    if (isset($current_user->ID))
    {
    $total_nr = (int) $wpdb->get_var( $wpdb->prepare( “SELECT count(img_id) as total_nr from “.$wpdb->prefix.”photocontest WHERE wp_uid = %d and visibile=1 and contest_id = %d”, $current_user->ID, $photo_contest_id) );
    }

    but it still won’t let anyone upload a photo. I am very new to wordpress, but have been doing websites for a long time. Help?

    awesomeadventuresmagazine

    (@awesomeadventuresmagazine)

    I used the code posted by dominicscaife and it’s working now,but now users can submit more than one photo…….off to look for more fixes..

    If you want the check if the users don’t upload more than 1 photo, for now the only solution is to set the UPLOAD_ROLE in the settings page!

    This should also work for running contests!!

    Adding this comment so it will show on top (#badbadhabit 😉

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘[Plugin: PhotoContest Plugin] Sorry, You have already uploaded one photo’ is closed to new replies.