View Full Version : Almost works as advertised?
kirxklox
February 15th, 2006, 05:36
Check this out and see if you can see any differences between the pages. Refresh a couple times for the full effects on the link to ch67.
http://nawcc-ch67.com/
Compare it to
http://nawcc-ch159.com/
The rainbow is not suppose to go completely across the page.
kirxklox
February 15th, 2006, 05:54
There you go. All fixed.
I do like my toys. They keep me amused for HOURS.
Who says you have to have the same old web design on a page?
the_pm
February 15th, 2006, 13:39
I'm glad you're enjoying your random rotation Sam :)
kirxklox
February 17th, 2006, 05:26
Does anyone know how to get this Rotator to work on a Sub-Domain. I got everything to work, but the Sub-Domain link itself.
http://whmb.webhorology.com/
kirxklox
February 17th, 2006, 05:44
Here is a link to the basic coding;
http://www.iwdn.net/showthread.php?t=3665
I was able to get everything to work to
http://webhorology.com/whmb/
but not to
http://whmb.webhorology.com/
Anoop
February 20th, 2006, 03:09
<?
{
$files = glob($_SERVER['DOCUMENT_ROOT'].'/sponsors/*');
include $files[array_rand($files)];
}
?>
For a subdomain, http://whmb.webhorology.com/ the document root is something like /home/username/public_html/whmb. So you should not require to append the subdomain directory(ie whmb) to the document root.
So something like the following should work for you.
<?
{
$doc_root = $_SERVER['DOCUMENT_ROOT'];
$list_dir = (ereg("whmb",$doc_root)) ? $doc_root : $doc_root."/whmb/";
$files = glob($list_dir);
include $files[array_rand($files)];
}
?>
Let me know if it helps :D
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.