Force absolute URLs for thumbnails.php Force absolute URLs for thumbnails.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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é