jesusartik4
Bovino maduro
- Desde
- 10 Jul 2009
- Mensajes
- 103
- Tema Autor
- #1
Necesito ayuda al configurar esta galeria flash, me llamo mucho la atencion y quisiera intgrarla a una pagina que estoy haciendo, ya que manejo grandes cantidades de fotos y esta me resulta mas facil de manejar.
buen el problema esque no se como configurar los directorios para que localize las imagenes y las muestre, ya que el flash pongo en este directorio:
"principal/modulos/galeria/"
y las imagenes estan en este directorio:
principal/imagenes/galeria2005.
nose si me podrian ayudar a poder configurar la clase para que me detecte el directorio en las imagenes, pongo el codigo de la clase:
les agradeceria mucho que me ayudaran
y colaboraria con algunos script y aplicaciones que proximamente subire

bueno aqui tmb dejo el link del flash por si quieren ver el flash.
http://www.mediafire.com/?kefzmmkwhj2
buen el problema esque no se como configurar los directorios para que localize las imagenes y las muestre, ya que el flash pongo en este directorio:
"principal/modulos/galeria/"
y las imagenes estan en este directorio:
principal/imagenes/galeria2005.
nose si me podrian ayudar a poder configurar la clase para que me detecte el directorio en las imagenes, pongo el codigo de la clase:
PHP:
<?php
//
// imgStack 0.5
// This is the php-script part of imgStack. It need to be in the exact same directory as the flash part imgStack.swf
// More info: http://tint.de/imgStack-0-5
// Contact: Tilman@tint.de
//
//
// Get all the images in the folder and put the data out for imgStack.swf
$imgPath = $_GET["imgPath"];
if(substr($imgPath, 0, 1) != "/") {
// relative imgPath, add this script's parent dir
$parentPath = dirname(__FILE__);
$imgPath = $parentPath."/"."$imgPath";
} else {
$parentPath = $_SERVER['c:\\'];
$imgPath = $parentPath."/"."$imgPath";
}
$filecount = 0;
$dirFiles = array(); // Initialize temporary arrays for sorting
$handle = @opendir($imgPath) or die("fb=Directory \"$imgPath\" not found.");
filenames
while($entry = readdir($handle)) {
if(substr($entry, 0, 1) == ".") {
// system file starting with .
} else if(preg_match("/(.jpg|.gif|.png|.swf)$/i", $entry)) {
$dirFiles[] = $entry;
}
}
closedir($handle);
sort($dirFiles);
// Write out Var-Value-Pairs
for($i=0; $i<count($dirFiles); $i++) {
$file = $dirFiles[$i];
$sizeArr = getimagesize($imgPath.$file);
$width = $sizeArr[0];
$height = $sizeArr[1];
echo "&img{$i}File=$file&img{$i}W=$width&img{$i}H=$height&\n";
}
echo "&num=".count($dirFiles)."&";
echo "&fb=ok&";
?>


bueno aqui tmb dejo el link del flash por si quieren ver el flash.
http://www.mediafire.com/?kefzmmkwhj2