forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: fangweile on June 28, 2008, 05:40:37 am

Title: Full path to image
Post by: fangweile on June 28, 2008, 05:40:37 am
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
Code: [Select]
'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.
Title: Re: Full path to image
Post by: fangweile on June 28, 2008, 12:37:12 pm
I am searching around in this forum and trying to fix my problem.

i have found out and tried to used this code.

Code: [Select]
$objCpm->getImageToUse($row['pFilepath'], $row['pFilename'] ,"");
but it rather display the image in this format

Code: [Select]
http://www.allkoreans.net/albums/userpics/10001/5~0.jpg
It supposed to be like this

Code: [Select]
http://www.allkoreans.net/gallery/albums/userpics/10001/5~0.jpg
What code should I insert to fix it?

Title: Re: Full path to image
Post by: fangweile on June 29, 2008, 05:37:14 am
Alright I have figure it out.
I added this code to fetch the full path of my images.

Code: [Select]
$option = array('linktemplate'=>'http://www.allkoreans.net/gallery/albums/{{pFilepath}}{{pFilename}}');
And I am very glad that it is working great. ^_^