News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Force absolute URLs for thumbnails.php

Started by steveski, October 15, 2010, 12:59:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

steveski

Is there a way to force all thumbnail URLs to be absolute and not relative?  Not sure which file/template to change to do this.  (I realize it is probably a hack).

I want it to be

src="http://www.noizemag.com/photos/albums/2010_Events/MRNY_BBCM/thumb_mrny_bbcm2010_07_5949.jpg"

instead of

src = "albums/2010_Events/MRNY_BBCM/thumb_mrny_bbcm2010_07_5949.jpg"

Αndré

Open include/functions.inc.php, find
$pic_url = get_pic_url($row, 'thumb');
and replace with
$pic_url = $CONFIG['ecards_more_pic_target'].get_pic_url($row, 'thumb');

steveski

Thank you!  Worked perfectly.  This also fixes the Facebook problem of not embedding photo thumbnails when linking to a Coppermine album from Facebook.

Αndré