Sorry for all the questions. :P
But i wanted to know when you click on the image it brings me to the whole album
i was wondering how do you make it bring you to the image and not the whole album?
Use
$options = array('imagelink' => 'normal');
Are you using cpmFetch development version?
Read the cpmfetch manual for more options that you may use.
http://cpmfetch.fistfullofcode.com/docs/stable_advanced/index.html
Quote from: fangweile on July 29, 2008, 04:31:53 AM
Use
$options = array('imagelink' => 'normal');
Are you using cpmFetch development version?
Read the cpmfetch manual for more options that you may use.
http://cpmfetch.fistfullofcode.com/docs/stable_advanced/index.html
It doesn't work? I'm using the version 2.0
Can you post your code here?
Your code must be similar to this
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array(
'windowtarget' => '_blank',
'imagelink' => 'normal');
);
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
$objCpm->cpm_close();
?>
Opps! :o something wrong with the code above:
it should be
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array(
'windowtarget' => '_blank',
'imagelink' => 'normal');
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
$objCpm->cpm_close();
?>
cpmFetch 2.0 have image link in intermediate picture by default not in albums. The development version have it instead. ???
Quote from: fangweile on July 30, 2008, 04:11:21 AM
Opps! :o something wrong with the code above:
it should be
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array(
'windowtarget' => '_blank',
'imagelink' => 'normal');
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
$objCpm->cpm_close();
?>
cpmFetch 2.0 have image link in intermediate picture by default not in albums. The development version have it instead. ???
here is the code i am using:
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array('windowtarget' => '_blank');
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
$options = array('imagelink' => 'normal');
$objCpm->cpm_close();
?>
And should i get the development version?
Oh also i tried the code and it works.
But the image just comes up?
I want it to be like for example when you click on it liek teh whole page comes up like this:
http://www.demidlovato.com/gallery/displayimage.php?album=47&pos=2
and the images would show up there.
This code works on my site
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$options = array(
'windowtarget' => '_blank',
'imagelink' => 'normal');
$objCpm->cpm_viewLastAddedMedia(1,2, $options);
$objCpm->cpm_close();
?>
It landed me to this page /gallery/displayimage.php?pos=-1369
Must be the same way for you too.
Can you link the page where you used the cpmfetch code?
yeah.
i'm putting the code on this page:
http://demidlovato.com/sidebar.php
I don't want the just the image to come up. like i want everything, the whole page like the albums. but like the image shows up.
like http://nickjonline.com
when you click on the image the whole page comes up.
That's confusing ???
If you used the code i've given then it should work. The code is just right.
Have you modified any cpmfetch files lately?. Try to reupload a clean copy of cpmFetch
And will see if same thing will happen.
http://cpmfetch.fistfullofcode.com/downloads/copperminefetch-2.0.0.zip
Opps, :o I found out that you are using the development cpmFetch version
CpmFetch release 2.1.1
You must download the latest stable release for cpmfetch
copperminefetch-2.0.0
QuotecpmFetch 2.0 stable version have image link in intermediate picture by default
So you don't have to use this option
$options = array('imagelink' => 'normal');
It works!
Thanks!