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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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é