Full path to image Full path to image
 

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

Full path to image

Started by fangweile, June 28, 2008, 05:40:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fangweile

Hello there,

I am having a problem in how to fetch images that will open the link in image location.

When I click the thumbnails, It will go directly to the full path of that image
"http://www.sitehere.com/gallery/albums/userpics/10001/photo.jpg"

I already tried this code
'imagelink' =>'fullPathToNormal'

but it seems like it doesn't work.

I also read this manual http://cpmfetch.fistfullofcode.com/docs/stable_advanced/index.html to guide me but still no luck.


Anyone have an idea.
I will really appreciate any help.


Thanks in advance.
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

fangweile

I am searching around in this forum and trying to fix my problem.

i have found out and tried to used this code.

$objCpm->getImageToUse($row['pFilepath'], $row['pFilename'] ,"");

but it rather display the image in this format

http://www.allkoreans.net/albums/userpics/10001/5~0.jpg

It supposed to be like this

http://www.allkoreans.net/gallery/albums/userpics/10001/5~0.jpg

What code should I insert to fix it?

[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

fangweile

Alright I have figure it out.
I added this code to fetch the full path of my images.

$option = array('linktemplate'=>'http://www.allkoreans.net/gallery/albums/{{pFilepath}}{{pFilename}}');

And I am very glad that it is working great. ^_^
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희