Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
flashgallery.swf?? Or flashgallery.php??
Old 08-17-2008, 03:44 PM flashgallery.swf?? Or flashgallery.php??
Junior Talker

Posts: 2
Trades: 0
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:


Code:
  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. $path = array();
  12. if(isset($_GET['file_dir'])){
  13. $file_dir = $_GET['file_dir'];
  14. $dir=opendir($file_dir);
  15. while ($file=readdir($dir))
  16. {
  17. $ext = substr($file, strpos($file, ".")+1);
  18. if(array_search($file, $exclude_files)===false && array_search($ext, $allowed_formats)!==false){
  19. $f=$file_dir.'/'.$file;
  20. $path []=$f;
  21. }
  22. }
  23. closedir($dir);
  24. }
  25. natcasesort($path);
  26. print '<?xml version="1.0" encoding="iso-8859-1"?>';
  27. print '<pics';
  28. print '>';
  29. $directory= $_SERVER['HTTP_HOST'] .$_SERVER['PHP_SELF'];
  30. $directory=dirname($directory);
  31. foreach ($path as $val) print '<pic src="'.'http://'.$directory.'/'.$val.'" title="'.$val.'" />';;
  32. print "</pics>";
  33. ?>





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
kingdlee is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-17-2008, 05:09 PM Re: flashgallery.swf?? Or flashgallery.php??
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
http://www.flash-gallery.org/support.html - This page could be of more use to you, then this
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Reply     « Reply to flashgallery.swf?? Or flashgallery.php??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10246 seconds with 12 queries