Mijn laatste vraag tot betrekkin tot een fotoscript.
Onder de fotos komt de naam van het bestand te staan, wanneer dit een lange naam is wordt de hele lay-out aangetast.
Hoe haal ik deze tekst weg.
http://korro.ko.ohost.de/paddy/Dir.php
Wanneer ik dit weg haal gebeurd er niets:
// Footer, dit staat onder de plaatjes.
echo "$vorige $volgende<br>";
---------------------------------------
<?
// IvoDKA photo Script
// Configuratie
$woord="index"; // naam vd php file
$path2 = "uploads"; // dir waar thumbnails in staan
$path = "uploads"; // dir waar foto's in staan
$title = "$gallery Paddy Kelly Page ". ($page + 1);
// header, dit staat boven de plaatjes.
$header = "$gallery";
// Configuratie
$clm = "5"; // Aantal kolommen
$rows = "5"; // aantal rijen
$t_w = "90";
$t_h = "90";
?>
<html>
<head><title>Foto's :: <? echo $gallery ?></title>
</head>
<body bgcolor='#DBDBDB' leftmargin='0' topmargin='0'>
<?
echo "<h1>$header</h1>";
echo "<center><b><b><h2>$title</h2></b><br>";
$min = (1+($page * 20));
$max = (($page +1) * 20);
$number = $clm * $rows;
$break = (($page * 20) + $clm);
echo "<table border=0 cellpadding=0 cellspacing=0><tr>";
$d = dir("$path2");
$count = -1;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){
ClearStatCache();
$size = GetImageSize("$path/$entry");
$size[0] = $size[0] + 20;
$size[1] = $size[1] + 25;
$file_size=fileSize("$path/$entry");
$file_size = round($file_size / 1000) . "k";
echo ("<td><a href=\"#\" onmouseover=\"window.status='Vergroten';return true;\"
onmouseout=\"window.status=''; return true\"
onclick=\"window.open('$path/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src='$path2/$entry'");
echo " border=0 alt=$count height=$t_h></a> <br>$entry<br><br> </td>\n"; // width=$t_w
}
if ($count == $break){
echo "</tr>\n<tr>\n";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "</tr></table>";
$pages = ($count / 20);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
$volgende = " | <a href=$woord.php?gallery=$gallery&page=$pageplus>Next 20 Pictures</a> |";
}
if (($page+1) > "1"){
$vorige = "| <a href=$woord.php?gallery=$gallery&page=$pagemin>Previous 20 Pictures</a> |";
}
// Footer, dit staat onder de plaatjes.
echo "$vorige $volgende<br>";
?>
--------------------
bedankt voor de medewerking
Onder de fotos komt de naam van het bestand te staan, wanneer dit een lange naam is wordt de hele lay-out aangetast.
Hoe haal ik deze tekst weg.
http://korro.ko.ohost.de/paddy/Dir.php
Wanneer ik dit weg haal gebeurd er niets:
// Footer, dit staat onder de plaatjes.
echo "$vorige $volgende<br>";
---------------------------------------
<?
// IvoDKA photo Script
// Configuratie
$woord="index"; // naam vd php file
$path2 = "uploads"; // dir waar thumbnails in staan
$path = "uploads"; // dir waar foto's in staan
$title = "$gallery Paddy Kelly Page ". ($page + 1);
// header, dit staat boven de plaatjes.
$header = "$gallery";
// Configuratie
$clm = "5"; // Aantal kolommen
$rows = "5"; // aantal rijen
$t_w = "90";
$t_h = "90";
?>
<html>
<head><title>Foto's :: <? echo $gallery ?></title>
</head>
<body bgcolor='#DBDBDB' leftmargin='0' topmargin='0'>
<?
echo "<h1>$header</h1>";
echo "<center><b><b><h2>$title</h2></b><br>";
$min = (1+($page * 20));
$max = (($page +1) * 20);
$number = $clm * $rows;
$break = (($page * 20) + $clm);
echo "<table border=0 cellpadding=0 cellspacing=0><tr>";
$d = dir("$path2");
$count = -1;
while($entry=$d->read()) {
if (($count >= $min) AND ($count <= $max)){
if(eregi(".jpg|.jpeg|.gif|.bmp|.png", $entry)){
ClearStatCache();
$size = GetImageSize("$path/$entry");
$size[0] = $size[0] + 20;
$size[1] = $size[1] + 25;
$file_size=fileSize("$path/$entry");
$file_size = round($file_size / 1000) . "k";
echo ("<td><a href=\"#\" onmouseover=\"window.status='Vergroten';return true;\"
onmouseout=\"window.status=''; return true\"
onclick=\"window.open('$path/$entry','pix$count','width=$size[0],height=$size[1],innerwidth=$size[0],innerheight=$size[1],directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,top=0,left=0,leftmargin=0,topmargin=0,marginwidth=0,marginheight=0,screenX=0,screenY=0');return false\"><img src='$path2/$entry'");
echo " border=0 alt=$count height=$t_h></a> <br>$entry<br><br> </td>\n"; // width=$t_w
}
if ($count == $break){
echo "</tr>\n<tr>\n";
$break = $count + $clm ;
}
}
$count++;
}
$d->close();
echo "</tr></table>";
$pages = ($count / 20);
$pageplus = ($page + 1);
$pagemin = ($page - 1);
if (($page + 1) < $pages){
$volgende = " | <a href=$woord.php?gallery=$gallery&page=$pageplus>Next 20 Pictures</a> |";
}
if (($page+1) > "1"){
$vorige = "| <a href=$woord.php?gallery=$gallery&page=$pagemin>Previous 20 Pictures</a> |";
}
// Footer, dit staat onder de plaatjes.
echo "$vorige $volgende<br>";
?>
--------------------
bedankt voor de medewerking