Photo RSS Feed Display | Add a Comment

Add a Comment

-Responding to-
Sommer C. (2010-11-24 11:04:02 pm)
It works with YouTube, too. ;)

The one problem I found with the Advanced PHP is that if you're storing your thumbnails locally, the script doesn't account for that because the path for $photoArray[$i]['imgsrc'] is hard-coded. I made a few tweaks to check the value of $localthumbs and then create the path accordingly.

I added this after line 197:

// Added by Sommer C. 11-24-2010 to create URL based on thumbnail location (remote or local)
if ($localthumbs==TRUE) {
$thumbnail='http://' . $_SERVER['SERVER_NAME'] . '/' . $fn;
} else {
$thumbnail='' . $fn;

And then replaced this line:
$photoArray[$i]['imgsrc']=$'' . $fn;

With this one:


And it seems to work without issue now.
-End comment-

Add your comment here. Only a and img tags allowed.


*Email: (will not be shown)

*Verify Email:

Website: (optional -- 'Name' will link to this)


Notify me of next response?

*What is ? (security question)