coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: WebJorge on May 16, 2006, 04:48:38 PM

Title: Where is the 'Last Additions' Code?
Post by: WebJorge on May 16, 2006, 04:48:38 PM

I'm trying to locate the PHP code that makes up the Last Additions feature that's located on the index page of the Photo Gallery. The reason I need this is to, display the information on various sections of my web site.

Thanks!

~Jorge~

http://www.madnessart.com/gallery/ (http://www.madnessart.com/gallery/)
Title: Re: Where is the 'Last Additions' Code?
Post by: Tranz on May 16, 2006, 05:54:11 PM
Check out the cpm fetch board.
Title: Re: Where is the 'Last Additions' Code?
Post by: WebJorge on May 16, 2006, 06:29:53 PM
You mean the Feature requests board? Well, this is not something I want added on a future version, this is something that's already available on the current version, but I just want to know where in the PHP code is this located, so that I could use it on other parts of my site.

Title: Re: Where is the 'Last Additions' Code?
Post by: Nibbler on May 16, 2006, 06:40:35 PM
http://forum.coppermine-gallery.net/index.php?board=57.0
Title: Re: Where is the 'Last Additions' Code?
Post by: Paver on May 16, 2006, 07:23:58 PM
As you can probably tell, it's recommended that you use CPMFetch for all your Coppermine-fetching needs.

If you really want to find the "last additions" code, you should search for the meta-album name 'lastup' for the last uploaded files or 'lastalb' for the albums with the latest uploads.  The code spans many files, which is why using a pre-made mod/add-on like CPMFetch is recommended.  For example, you'll find some of the code you want in include/functions.inc.php in the get_pic_data() function, but this function is called by others and calls others to put together the block you want.