forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Emilyy on July 28, 2008, 11:35:01 pm

Title: Images Not Albums.
Post by: Emilyy on July 28, 2008, 11:35:01 pm
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?
Title: Re: Images Not Albums.
Post by: fangweile on July 29, 2008, 04:31:53 am
Use

Code: [Select]
$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
Title: Re: Images Not Albums.
Post by: Emilyy on July 29, 2008, 02:56:10 pm
Use

Code: [Select]
$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
Title: Re: Images Not Albums.
Post by: fangweile on July 30, 2008, 04:02:48 am
Can you post your code here?

Your code must be similar to this
Code: [Select]

<?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(); 
?>

Title: Re: Images Not Albums.
Post by: fangweile on July 30, 2008, 04:11:21 am
Opps!  :o something wrong with the code above:

it should be

Code: [Select]
<?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.  ???
Title: Re: Images Not Albums.
Post by: Emilyy on July 30, 2008, 07:59:13 pm
Opps!  :o something wrong with the code above:

it should be

Code: [Select]
<?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:
Code: [Select]
<?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?
Title: Re: Images Not Albums.
Post by: Emilyy on July 30, 2008, 08:01:07 pm
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.
Title: Re: Images Not Albums.
Post by: fangweile on July 31, 2008, 04:31:27 am
This code works on my site

Code: [Select]
<?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?
Title: Re: Images Not Albums.
Post by: Emilyy on July 31, 2008, 04:15:05 pm
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.
Title: Re: Images Not Albums.
Post by: fangweile on August 01, 2008, 04:53:26 am
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


Title: Re: Images Not Albums.
Post by: fangweile on August 01, 2008, 05:07:40 am
Opps, :o I found out that you are using the development cpmFetch version

Code: [Select]
CpmFetch release 2.1.1
You must download the latest stable release for cpmfetch
Code: [Select]
copperminefetch-2.0.0
Quote
cpmFetch 2.0  stable version have image link in intermediate picture by default

So you don't have to use this option
Code: [Select]
$options = array('imagelink' => 'normal');
Title: Re: Images Not Albums.
Post by: Emilyy on August 01, 2008, 11:03:45 pm
It works!
Thanks!