Member
Member
wongm   23-04-2010, 15:29
#1

There is already the 'flag_thumb_as_new' plugin that does something similar:
http://www.zenphoto.org/2010/02/flag_thumb_as_new/

What is the best way to extend an existing plugin? I want to make it do the following:

  • sets a cookie when I visit the gallery
  • checks the last visited time
  • adds a flag against images (and the images that contain them) that are new since the last visit

The fallback for non-cookie users would be the current date threshold option.

Administrator
Administrator
acrylian   23-04-2010, 15:43
#2

Well, take that plugin and extend it to your needs is the way...;-) This filter plugin is probably a good guide for what you want.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.