Where is the 'Last Additions' Code? Where is the 'Last Additions' Code?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Where is the 'Last Additions' Code?

Started by WebJorge, May 16, 2006, 04:48:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WebJorge


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/

Tranz


WebJorge

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.



Paver

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.