** Generate Newest Album text Links ***

erotic1

Joined: 2005-03-17
Posts: 12
Posted: Thu, 2005-03-17 22:24

I have gallery installed inside a portal type site. I would like to create a custom block for the home page of this site that will simply generate a list of text links to the 10 newest photo albums created...

Can anyone explain how I can check and display a list of the 10 newest photo albums created?

Thank you for any help you can provide!

Erotic1

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Thu, 2005-03-17 23:11

You mean like the "Latest Updates" section at http://fryfrog.com/ ? I can post the code later, but I found it here in the forums so be sure you search :)

 
erotic1

Joined: 2005-03-17
Posts: 12
Posted: Fri, 2005-03-18 01:51

Thanks for your quick response! I did find the code under "latest albums" search and tested it on my stand alone gallery which works great!

However, the hard part is i need to convert the code to work in a block for xoopsgallery...

if anyone has already done this please let me know!

Thanks!

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Fri, 2005-03-18 03:40

I dont think the code needs to be converted.

just do an IFRAME include and call to the latest albums.php file should work.

 
erotic1

Joined: 2005-03-17
Posts: 12
Posted: Fri, 2005-03-18 16:40

I tried something similar to that as soon as i got the script... I just put the code in a blank page, uploaded it to the gallery directory, and then just tried calling that page directly without loading the xoops template. It doesnt work. I think some of the variables and their locations have to be redefined or something....

 
khsjr1970

Joined: 2004-04-24
Posts: 271
Posted: Fri, 2005-03-18 21:57

then you may want to poke around Xoops, for an answer, as to how to call an include into their CMS.