New pictures in a normal website

harppa

Joined: 2006-03-14
Posts: 2
Posted: Tue, 2006-03-14 20:38

Hi!

Is it possible to include newest pictures from gallery to normal website?
I just installed my gallery and it would be nice to fix some kind of welcomepage where you could see few new pictures.
I don´t know basicly anything about php so that´s why I would be making a normal webpage.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-03-15 06:15

Sure. use the image block. I show the most recent album on my home page:

<?php
@readfile('http://ckdake.com/gallery/main.php?g2_view=imageblock:External&g2_blocks=recentAlbum&g2_show=none&g2_maxSize=110');
?>

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.

 
harppa

Joined: 2006-03-14
Posts: 2
Posted: Wed, 2006-03-15 07:21

I added that code to my index.html file (changed the address to my own offcourse) didn´t work. Then someone told me to rename the file index.php but it still didn´t work.
I noticed ...external&g2_... does that g2 have anything to do with gallery 2 ? I´m using gallery 1

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-03-15 17:36

My mistake, I was thinking this was G2 for some reason. search around for block_random.php

--
http://ckdake.com/

If you found my help useful, please consider donating to Gallery.