coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: forkedatfark on January 30, 2007, 07:15:19 PM

Title: How to let users delete favorites after downloaded?
Post by: forkedatfark on January 30, 2007, 07:15:19 PM
Hi,

I saw this thread about a similar topic, but it doesn't really explain where to put a line of code, and it might have changed since coppermine has changed.
http://forum.coppermine-gallery.net/index.php?topic=7687.0 (http://forum.coppermine-gallery.net/index.php?topic=7687.0)

I would like to let my users delete things from their favorites after downloading them as a zipped file.
That way, they won't be downloading pictures again that they added to favorites in a previous session.

Thanks
Title: Re: How to let users delete favorites after downloaded?
Post by: Joachim Müller on January 31, 2007, 08:11:51 AM
Favorites behaviour has changed dramatically from cpg1.3.x to cpg1.4.x: in cpg1.3.x the favorites used to be stored inside a cookie, while in cpg1.4.x it is being stored database-sided. Subsequently, the thread you refered to doesn't apply at all.
However: if a pic is stored in a user's favorites, the "add to favorites" the user used in the first place to add the file becomes a "remove from favorites" link. Subsequently, users can remove files from their favorites the same way they added them in the first place, so this method should be pretty self-explanatory.

Title: Re: How to let users delete favorites after downloaded?
Post by: forkedatfark on January 31, 2007, 11:54:15 AM
Thanks so much.
I hadn't seen that there.