flashgallery.swf?? Or flashgallery.php??

  • kingdlee
  • Born
  • Born
  • kingdlee
  • Posts: 1

Post 3+ Months Ago

Hey all, I am new to the forum, so I apologize if this post is out of place.

I downloaded code for a flash image gallery from http://www.flash-gallery.org/download.html. Everything works fine, but for some reason it will only load 20 images. I am streaming the images from flicker.I have all most 500 images in one folder on flickr.


My question is, does the problem lie in the flashgallery.swf file? If so how to I open it and edit it.

Or is it in the flashgallery.php file?


This is what the php looks like:

PHP Code: [ Select ]
<?php
$allowed_formats = array("jpg", "jpeg", "JPG", "JPEG", "png", "PNG");
$exclude_files = array(
"_derived",
"_private",
"_vti_cnf",
"_vti_pvt",
"vti_script",
"_vti_txt"
); // add any other folders or files you wish to exclude from the gallery.
 
$path = array();
 
if(isset($_GET['file_dir'])){
$file_dir = $_GET['file_dir'];
         $dir=opendir($file_dir);
            while ($file=readdir($dir))
            {
            $ext = substr($file, strpos($file, ".")+1);
           
               if(array_search($file, $exclude_files)===false && array_search($ext, $allowed_formats)!==false){
 
$f=$file_dir.'/'.$file;
 
$path []=$f;               
 
               }
            }
           
closedir($dir);
}
natcasesort($path);
 
print '<?xml version="1.0" encoding="iso-8859-1"?>';
print '<pics';
print '>';
 
$directory= $_SERVER['HTTP_HOST'] .$_SERVER['PHP_SELF'];
$directory=dirname($directory);
 
foreach ($path as $val) print '<pic src="'.'http://'.$directory.'/'.$val.'" title="'.$val.'" />';;
print "</pics>";
?>
  1. <?php
  2. $allowed_formats = array("jpg", "jpeg", "JPG", "JPEG", "png", "PNG");
  3. $exclude_files = array(
  4. "_derived",
  5. "_private",
  6. "_vti_cnf",
  7. "_vti_pvt",
  8. "vti_script",
  9. "_vti_txt"
  10. ); // add any other folders or files you wish to exclude from the gallery.
  11.  
  12. $path = array();
  13.  
  14. if(isset($_GET['file_dir'])){
  15. $file_dir = $_GET['file_dir'];
  16.          $dir=opendir($file_dir);
  17.             while ($file=readdir($dir))
  18.             {
  19.             $ext = substr($file, strpos($file, ".")+1);
  20.            
  21.                if(array_search($file, $exclude_files)===false && array_search($ext, $allowed_formats)!==false){
  22.  
  23. $f=$file_dir.'/'.$file;
  24.  
  25. $path []=$f;               
  26.  
  27.                }
  28.             }
  29.            
  30. closedir($dir);
  31. }
  32. natcasesort($path);
  33.  
  34. print '<?xml version="1.0" encoding="iso-8859-1"?>';
  35. print '<pics';
  36. print '>';
  37.  
  38. $directory= $_SERVER['HTTP_HOST'] .$_SERVER['PHP_SELF'];
  39. $directory=dirname($directory);
  40.  
  41. foreach ($path as $val) print '<pic src="'.'http://'.$directory.'/'.$val.'" title="'.$val.'" />';;
  42. print "</pics>";
  43. ?>


O here is the site by the way. http://autographfan.com/More_pages/Sports.htm Please excuse the mess of names below, I haven't finished the list yet.




Any help would be greatly appreciated!

Thanks, Devin
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • CE/ Pyrocy
  • Proficient
  • Proficient
  • User avatar
  • Posts: 374
  • Loc: Santa Barbara, CA

Post 3+ Months Ago

do you have an XML file?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

kingdlee wrote:
My question is, does the problem lie in the flashgallery.swf file? If so how to I open it and edit it.
Well you can't actually open a swf file and modify it (swf's are compiled code) You would need the source .fla and a copy of Flash to be able to edit the swf. Frequently downloadable components don't allow you to modify the source code. I assume the problem does lie in the swf, but I have a feeling you won't be able to modify it.

CE/ Pyrocy wrote:
do you have an XML file?
That php script in the post is generating an xml file based on the contents of a directory.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 9 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.