Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Where is the 'Last Additions' Code?  (Read 2945 times)

0 Members and 1 Guest are viewing this topic.

WebJorge

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Where is the 'Last Additions' Code?
« 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/
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Where is the 'Last Additions' Code?
« Reply #1 on: May 16, 2006, 05:54:11 pm »

Check out the cpm fetch board.
Logged

WebJorge

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
Re: Where is the 'Last Additions' Code?
« Reply #2 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.

Logged

Nibbler

  • Guest
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Where is the 'Last Additions' Code?
« Reply #4 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.