forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: round-planet on November 14, 2009, 10:10:53 pm

Title: Photo contest plugin
Post by: round-planet on November 14, 2009, 10:10:53 pm
WHY
I have developed for my own need a photo contest plugin, to be used on a photography forum to evaluate several photo during a fixed period, and to identify the best one.

WHAT DOES IT DO
1) adds a new option in album configuraion: is this album a contest, and saves the data in a new column of the album table (YES / NO); Adds a table to keep detail of votes along with voter id for contests.
2) non contest albums have an unmodified behavior
3) Contest albums with voting ="YES":
- data are anonymized (no display of any info, owner_name, ...)
- voting shows only vote from the currently logged person (does not show the average)
- does not allow photo owner to vote for own photo
- shows a square around each photo in the film strip for which the current user has already voted
- only own comment can be seen (max 1 per person)
- image are not displayed as part of any of the pseudo-albums categories (such as best vote / most viewed / ...)
4) Contest albums with voiting ='NO'
- results of vote are displayed, but not possible to vote
- other capabilities are reset to normal.
5) automateed install / deinstall from plugin page.

DOWLOAD
--> here <-- (http://www.round-planet.com/transfer/coppermine/ADXD_voting_1.0.zip)[edit by PYAP]Allways ZIP in attachment please[/edit]

SUPPORT
This is my first plugin; I'll be grateful to here any feedback / suggestion for improvement / bug report; however, I cannot systematically guarantee fast corrections. Thanks for your understanding.


Pascal (from round-planet.com)

[edit by PYAP]ZIP in attachment[/edit]


[Edit GauGau 2010-03-03]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/adxd_voting

It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.

Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_adxd-voting_v1.4.zip/download
[/Edit]
Title: Re: Photo contest plugin
Post by: round-planet on November 15, 2009, 11:55:14 am
New revised version 1.01 (fixing a bug when using film strip)
Title: Re: Photo contest plugin
Post by: Joachim Müller on November 15, 2009, 07:54:47 pm
Thanks for your contribution. The plugin needs some improvements, as it doesn't work out of the box. I have added some minor fixes and a German language file.
Title: Re: Photo contest plugin
Post by: round-planet on November 15, 2009, 08:23:56 pm
Thank you Joachim;
do not hesitate to give me your improvement, I will re-release the plugin. It is my very first plugin and my very first usage of Coppermine, so I'm sure I can learn a lot.

Pascal
Title: Re: Photo contest plugin
Post by: morch on November 16, 2009, 12:40:51 am
Code: [Select]
<?
// language data for ADXD_vote plugin in danish
$lang_contest=array(
   'wip' => 'Konkurrence',
   'my_vote' => 'Min stemme',   
   'my_image' => 'Mit billede',
   'result' => 'Konkurrence resultat',   
   'evaluation' => ' - Evaluering: %s / %s for %s stemmer - ',   
   'iscontest' => 'Album bruges til en konkurrence'
);
?>

Title: Re: Photo contest plugin
Post by: Joachim Müller on November 16, 2009, 10:58:47 am
do not hesitate to give me your improvement, I will re-release the plugin. It is my very first plugin and my very first usage of Coppermine, so I'm sure I can learn a lot.
It's already attached to my posting...

@morch: thanks
Title: Re: Photo contest plugin
Post by: round-planet on November 17, 2009, 09:09:55 pm
Just integrated the danish language within the plugin; attached to this post.
Title: Re: Photo contest plugin
Post by: Joachim Müller on November 18, 2009, 07:06:30 pm
Please stick to our naming conventions. Seems like you haven't based your version 1.3 on my version 1.2, which is not a bright idea, as I'm not fond to play attachment ping pong.
Title: Re: Photo contest plugin
Post by: bsvee on December 02, 2009, 04:33:23 pm
Just wanted to comment that I'm glad to see such a plug-in. I use Coppermine on my own personal photos gallery but I am using Gallery2 for an international photo club at http://www.isobap.com. View Gallery : Contest to see the dorky way in which we use the stars to cast votes I would gladly switch it over to Coppermine to have a proper voting system for this club.
Title: Re: Photo contest plugin
Post by: stormcloud on February 09, 2010, 05:43:03 am
Great idea for a plugin, it's just what i need.

I've installed it, but when clicking one of the rating options, i get a URL error... like "The requested URL /copper/{RATE2} was not found on this server."

New to coppermine, so any help, or a point in the right direction would be great.

Cheers,
Dave
Title: Re: Photo contest plugin
Post by: Mannie_ on February 09, 2010, 06:48:49 am
What happens when the contest is over, can the admin then move the images to the categories they belong to ?
Title: Re: Photo contest plugin
Post by: Joachim Müller on February 09, 2010, 07:23:08 am
Why don't you try it?
Title: Re: Photo contest plugin
Post by: Mannie_ on February 09, 2010, 10:20:56 am
I was planning to yes. But there i wanted to know that before i did, also i wanted  to know , if the contest duration is like a month, but you want people to start voting when the contest is over if that is a possiblity. It wasn't clear in the first post to me. I don't want to nag but just to make sure it does what i would expect before i install it
Title: Re: Photo contest plugin
Post by: Mannie_ on February 09, 2010, 11:32:07 am
Ok i have installed it, have set to voting, but it do show the name of the uploader, even if i am logged out. I thought when voting is yes it wouldn't show that
Title: Re: Photo contest plugin
Post by: round-planet on February 09, 2010, 12:44:42 pm
Hi
thanks for trying the plugin; did you set contest as yes?
Title: Re: Photo contest plugin
Post by: Mannie_ on February 09, 2010, 01:01:23 pm
Yes i did set it as yes, you can see here , http://www.pixelnutz.com/gallery/index.php Not safe for work the username is showing

from pixelnutz.com/gallery/
Quote
we do allow nudity

[edited by Joe Carver to add warning - Mannie_ , please remember that rule in future postings...]
Title: Re: Photo contest plugin
Post by: Mannie_ on February 09, 2010, 01:03:31 pm
I forgot to mention, since i cannot edit my own post, for every album there it now also has an extra row called evaluation
Title: Re: Photo contest plugin
Post by: round-planet on February 10, 2010, 10:09:44 pm
Hi
thanks for trying the plugin; did you set contest as yes?
can you point me on your site towards an album where contest = Yes and voting = yes?
Title: Re: Photo contest plugin
Post by: Mannie_ on February 10, 2010, 10:11:03 pm
sure, http://www.pixelnutz.com/gallery/index.php?cat=12
this album
Title: Re: Photo contest plugin
Post by: Nibbler on February 10, 2010, 10:52:50 pm
That caption is non-standard. It is probably added by the modpack.
Title: Re: Photo contest plugin
Post by: Mannie_ on February 10, 2010, 10:58:52 pm
So is there a way to make it work with the modpack ?
Title: Re: Photo contest plugin
Post by: Nibbler on February 10, 2010, 11:17:39 pm
Easiest way would be to disable display of the uploader name in config. If you need that enabled you'll need to dig into the code.
Title: Re: Photo contest plugin
Post by: Mannie_ on February 11, 2010, 08:24:42 am
easier would just be to uninstall the plugin
Title: Re: Photo contest plugin
Post by: crispywafers on April 10, 2010, 03:12:36 pm
Hi,

Thank you so much for this plug-in - it was exactly what I needed - however when a user votes on a photo - it takes them to a blank page. Shouldn't it return them to the original photo page or a "Thank you for voting" page?

http://02aede4.netsolhost.com/Sept2009Vote/index.php

Thanks for any help.
Title: Re: Photo contest plugin
Post by: Joachim Müller on April 11, 2010, 03:54:17 pm
The link you posted doesn't work - I get a 404 not found. Stop playing silly games with us...
Title: Re: Photo contest plugin
Post by: michael@ryvejen.dk on May 12, 2010, 03:59:28 pm
I installed this plugin to a completly new coppermine installation, but as soon as the plugin is uploaded (not installed), I cant acces the frontpage, the plugin page, only the config menu.

If I rename the folder in the plugin folder, I can se all af the pages again. When I try to install the plugin after renaming the file, I get "There was an error while processing a database query"

What am i doing wrong?
Title: Re: Photo contest plugin
Post by: Joachim Müller on May 12, 2010, 06:03:18 pm
Start by respecting board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616).
Title: Re: Photo contest plugin
Post by: round-planet on May 13, 2010, 12:20:35 am
Hello;
I've been created this plugin a while ago, and I don't think it would be doing what is described in your report(at least on cpg 1.4); however, I must confess that after using it for a couple months, I have come to the conclusion that I could not get to the full extent of what I needed without hacking somewhat the code; so since then I have hacked the code on my own site, and, since cpg 1.5 is coming and the voting becomes very different, I'm afraid to say I do not envision to continue maintaining this plugin.
I have looked at 1.5, but although it's a great deal better, it still does not provide everything I'd need to continue using a plugin with 0 hack. So I'm waiting for cpg 1.5 to be official, and I will again hack my way to make the contest working again.
The contest plugin + hack is in use at the address http://www.alphadxd.fr/galerie/index.php. Underwent more than a 1000 votes on the april contest without issues.
If someone is interested, I can give clues on how to make an equivalent thing work, but since it's not a pure plugin anymore, I don't believe I would be allowed to give explanations on this forum?

Thanks for your interest.

Pascal.
Title: Re: Photo contest plugin
Post by: Phill Luckhurst on May 13, 2010, 10:28:01 am
If you start a thread in the 1.5 section of the board regarding your plugin and what you need we can probably add plugin hooks or point you towards existing ones.
Title: Re: Photo contest plugin
Post by: round-planet on May 13, 2010, 10:32:31 am
Thanks for the proposal; I'll do this when I switch to 1.5... jsut waiting for an official release...

... and sure, I know I have to refrain myself from asking if anyone has an idea of when that might be.....
Title: Re: Photo contest plugin
Post by: ddepauli on June 23, 2010, 09:44:58 am
Added italian translation  :)
Title: Re: Photo contest plugin
Post by: mauichaz on August 06, 2010, 07:46:55 pm
In regard to v1.5.6, what is the status of this plug-in? I'm very interested in using it.
Tks-Charlie
Title: Start and Stop time
Post by: aquanetnik on February 16, 2011, 09:13:51 pm
Great plugin. Works fine.

Is there a way to start/stop the contests on exact day/time or we have to do it manually?
Title: Re: Photo contest plugin
Post by: round-planet on February 19, 2011, 01:59:00 pm
Has to be manually, I'm afraid!
Title: Re: Photo contest plugin
Post by: aquanetnik on February 24, 2011, 09:28:32 am
Thank you anyway  :)