View Single Post
  #5 (permalink)  
Old 04-24-2003, 10:06 PM
Mike Mike is offline
Junior Member
 
Join Date: Apr 2003
Location: Backwoods, USA
Posts: 29
Send a message via ICQ to Mike Send a message via AIM to Mike Send a message via MSN to Mike
ah i see youre having the same problem..dont ya hate those little red x's.. :x its got nothing to do with frontpage.. the block is fixed to pick up random images inside of a folder called random.. well like he said theres a folder the server automatically creates inside each folder called vti_cnf or something like that..and at random times it pics up that folder thinking its an image and hence thats when we get the red x.. im sure its a simple fix either a code or something to do in our servers..i havent figured it out either :cry: any help would be greatly appreciated.. Im using PHPNuke 6.0 Random image block. http://hsk.uzipp.com

Code:
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)];

$content .= "<table align=\"center\" border=\"1\" cellpadding=\"6\" cellspacing=\"6\" style=\"border-collapse: collapse\" bgcolor=\"#fffff0\" bordercolor=\"#111111\" width=\"138\" height=\"100\">";
$content .= "<tr><td align=\"center\"><a href=\"http://hsk.uzipp.com/optiplex.html\" target=\"_blank\"><img src=\"$image\" alt=\"Click Image\">";
$content .= "<align=\"left\"><a href=\"http://www.lvoncall.com\" title=\"Random Pic ver 2.0\" target=\"_blank\">.</a></tr></td></table>";
Reply With Quote