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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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 2 Guests 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.