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='http://demo.chapmanit.com/picture_rss/' . $fn;
}

And then replaced this line:
$photoArray[$i]['imgsrc']=$'http://demo.chapmanit.com/picture_rss/' . $fn;

With this one:

$photoArray[$i]['imgsrc']=$thumbnail;

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

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

*Name:


*Email: (will not be shown)


*Verify Email:


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


*Comment:

Notify me of next response?

*What is ? (security question)

(*required)