PDA

View Full Version : Image rotator sites...



Sever
December 2nd, 2008, 01:22 AM
Anybody know of a good free one? The one I previously used now requires you to pay for it, which I'm not going to do if there's a free option. +rep for viable suggestions.

ultama121
December 2nd, 2008, 01:26 AM
I'd appreciate knowing this as well, seeing as image rotate sucks. (Plus rep to anybody who finds one)

DEElekgolo
December 2nd, 2008, 01:41 AM
This is free but you will need to wait after it installs its updates. Recently there was a bandwidth overhaul. So the mass updates will deliver.
http://imagerotate.com/

Timo
December 2nd, 2008, 01:59 AM
If you can use php sigs here (could at h2vista.net), then you can host your images anywhere and I can upload the .php file for you to link to. Only problem is finding a decent script.

StankBacon
December 2nd, 2008, 03:52 AM
<?php

if ($dir = opendir("."))
{
$list = buildimagearray($dir);
displayrandomimage($list);
}

// This function reads all the files in the current directory and adds all image files to the array $list[]
function buildimagearray($dir)
{
while (false !== ($file = readdir($dir)))
{
if (!is_dir($file) && getimagesize($file))
{
$list[] = $file;
}
}
return $list;
}

// This function selects a random image, determines the mime type, opens the file for reading,
// and then outputs the image
function displayrandomimage($list)
{
srand ((double) microtime() * 10000000);
$sig = array_rand ($list);

$size = getimagesize ($list[$sig]);
$fp = fopen($list[$sig], "rb");

if ($size && $fp)
{
header("Content-type: {$size['mime']}");
fpassthru($fp);
exit;
}
}
?>
php file i used to use, no editing of filenames needed, just pop that in a dir with a bunch of images and it randomly displays one...


call the directory something like sig.jpg and there ya go.

http://www.hivclan.net/hivshack/images/6fmmf4d1lw47y737yczd.jpg

http://www.hivclan.net/sig.jpg

InnerGoat
December 2nd, 2008, 11:40 AM
Cool image rotator, bacoon

ultama121
December 2nd, 2008, 07:29 PM
Thanks Timo, thanks Bacon. : D

Xetsuei
December 7th, 2008, 05:12 AM
Bump.

Does anyone know of a site that I can use with Bacon's setup?

StankBacon
December 7th, 2008, 08:43 AM
x10hosting is free, and you can use it there.

pretty much any free host will work..

000webhost , freeweb7 , etc.. just make sure you find one that doesn't force ads.

Jelly
December 7th, 2008, 10:57 AM
My package with x10hosting forces ads, but I have no webpages, save for a test forum.

What to do!