Imbedding a random image from gallery on an HTML page

ym1973

Joined: 2007-01-18
Posts: 1
Posted: Thu, 2007-01-18 23:41

I've read a lot of the forums to get me up and going and I've manage to tweak my gallery to how I want it. (Thanks all!) I want to do one last thing and get a random image from one of my albums on my front page (it is in html) of my website that changes every time someone visits it. Is this possible?

Thanks in advance and thanks to all the help I've gotten thus far by just reading the forums.

-Y

 
seaus

Joined: 2007-02-15
Posts: 24
Posted: Thu, 2007-03-01 06:13

I would love to know how to do that as well. I want a random image to be displayed in the intro page of my web site

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2007-03-03 12:54

I have a flash minislideshow that may be what you are looking for.
get it on my site :)
-s
FlashYourWeb and Your Gallery

 
matosale
matosale's picture

Joined: 2006-11-05
Posts: 15
Posted: Wed, 2007-10-17 08:27

Hi! I've tried this without any luck :(
If I go to http://cholito.org/galeria/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=none I can see the random image. But using this code doesn't work.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title>TEST</title>
	</head>
	<body><?php @readfile('http://cholito.org/galeria/main.php?g2_view=imageblock.External&g2_blocks=randomImage'); ?></body>
</html>

Also, the content of my .htaccess is this:

AddType application/x-httpd-php .html .htm
AddHandler application/x-httpd-php .html .htm
removeHandler server-parsed htm html xhtml shtml

See it for yourself: http://cholito.org/test/

BTW if I use the file as index.html it shows a 404 page, if I use index.php it shows the file

Any advice will be appreciated!

 
matosale
matosale's picture

Joined: 2006-11-05
Posts: 15
Posted: Wed, 2007-10-17 09:34

Well, yeah, the server has the 1.3.37 version. I just asked if they are going to upgrade soon ;)

Thank for your help thou :)