forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on November 11, 2010, 01:36:07 pm

Title: Delete all favorites for cpg1.5.x
Post by: Αndré on November 11, 2010, 01:36:07 pm
This is a port of the cpg1.4.x plugin 'Delete All Favorite' (http://forum.coppermine-gallery.net/index.php/topic,38106.0.html) by Sami. It adds a button to the 'My Favorites' page which removes all pictures/files from your favorites.

I cleaned up and optimized the code, removed unnecessary files and language strings and moved the delete button to the right (next to the table header 'Favorites').
Title: Re: Delete all favorites for cpg1.5.x
Post by: Snowcamper on November 12, 2010, 09:58:52 am
Thx!  :)
Title: Re: Delete all favorites for cpg1.5.x
Post by: peterlustig on November 30, 2010, 04:42:04 pm
Hey, this is VERY useful, thanks a LOT!
Title: Re: Delete all favorites for cpg1.5.x
Post by: pols1337 on January 25, 2012, 12:54:40 am
Hi,

You may need to warn users that, in the list of plug-ins, it needs to be ABOVE the plug-in Album addfav (album_addfav): v1.3.  Otherwise, the icon for "Album addfav" overrides the icon for "Delete all favorites."

Joel / pols1337
Title: Re: Delete all favorites for cpg1.5.x
Post by: Αndré on January 25, 2012, 09:04:32 am
Related to the other issue you reported (http://forum.coppermine-gallery.net/index.php/topic,63623.msg357732.html#msg357732). Should also be fixed with the patch suggested here (http://forum.coppermine-gallery.net/index.php/topic,63623.msg357739.html#msg357739).
Title: Re: Delete all favorites for cpg1.5.x
Post by: nickelas on January 25, 2012, 11:00:50 am
I can't get this plugin to work, no button shows up.
Tried the patch and putting the plugin first in order. Any ideas?

Thanks,
http://uppsalafoto.se/galleri/
Title: Re: Delete all favorites for cpg1.5.x
Post by: Αndré on January 25, 2012, 11:17:09 am
Probably the "send favorites to admin" button overwrites the "delete all favorites" button. Please try what happens if you (temporary) uninstall the Favorite Mailer plugin.
Title: Re: Delete all favorites for cpg1.5.x
Post by: nickelas on January 25, 2012, 11:35:03 am
Thanks,
Temporarily unistalled "send favorites to admin" and a few other plugins but no progress.
Don't know if its related but It looks like the "My Favorites" page does not completly load, it keeps waiting for something
Title: Re: Delete all favorites for cpg1.5.x
Post by: Αndré on January 25, 2012, 11:47:07 am
Please try to enable the "Allow ZIP-download of favorites" feature in the Coppermine config.

I'll release a new plugin version soon.
Title: Re: Delete all favorites for cpg1.5.x
Post by: Αndré on January 25, 2012, 12:03:41 pm
Version 1.1 attached to initial post. It should fix the issues nickelas and pols1337 reported.
Title: Re: Delete all favorites for cpg1.5.x
Post by: nickelas on January 25, 2012, 03:51:52 pm
Great,
Version 1.1 is working for me.