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/)
Check out the cpm fetch board.
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.
http://forum.coppermine-gallery.net/index.php?board=57.0
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.