php code for gallery 2.0

felipelpr

Joined: 2005-04-01
Posts: 1
Posted: Fri, 2005-04-01 00:23

i need help to create php code to show last 4 albums added... anyone have ideas? :o

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-04-01 00:31

Moved to G2 Customization

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2005-04-01 09:12

You can get the most recent album added for free by using the Site Admin -> Random/Popular block. Read the instructions there.

Getting 4 is a little harder.. if you really need that you'll have to mess with the G2 API and write some of your own custom SQL. Either that, or tinker with the imageblock module. Are you prepared to do that (before I write a lot of instructions)?