One way to do it would be to download a gallery module and use a random picture block along with it, else there are blocks that allow you to place images in a folder and they will display images from that folder, i believe you can find these in our downloads.
If I want a click ..
I mean I have pictures and when you click picture 1 you'll go to page 1
when you click pic 2 you'll be in page 2
=================
If that possible or we can have aclick to one page for all pics..
and these is the randome pic block ... If you can modify it I'll be so glad
Code:
<?php
/************************************************************************/
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/* compiled from PD sources and snippets on the web */
/* Robert J. Sori, Las Vegas Nevada robert@lvoncall.com */
/************************************************************************/
if (eregi("block-RandomPic.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
# Directory goes here relative to script
$folder = 'images/random';
# Directory should contain only images, else you can add some more filtering
$i = 0;
$in = opendir ($folder);
while ($x = readdir($in))
{ if ($x != '.' && $x != '..') # Directory should contain only images, else you can add some more filtering
{$imaged[$i++] = $x;}
}
closedir ($in);
srand((double)microtime()*1000000);
$image = $folder.'/'.$imaged[rand(0,sizeof($imaged)-1)];
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum