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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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é