Images Not Albums. Images Not Albums.
 

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

Images Not Albums.

Started by Emilyy, July 28, 2008, 11:35:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Emilyy

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?

fangweile

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
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

Emilyy

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

fangweile

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

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

fangweile

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.  ???
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

Emilyy

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?

Emilyy

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.

fangweile

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?
[My Coppermine Galleries]
All Koreans, Lim Eun-kyeong's IFC
Saranghae 김태희

Emilyy

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.

fangweile

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


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

fangweile

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');

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

Emilyy