I can't figure out how to make thumbs open in a new window I can't figure out how to make thumbs open in a new window
 

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

I can't figure out how to make thumbs open in a new window

Started by The_blue, August 26, 2009, 05:33:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

The_blue

My clubs web page:- http://www.theblue.plus.com/index.html

As you can see i'm useless at designing :)

I've learn't what bit i know through trying and trying again. My 1st mistake was using frontpage...


I've discovered cpmfetch and it's just what i needed :) My problem was intagrating it into the old site. I've added a frame and made a basic php page to load the tumbs on.

My problem is that when a thumb is clicked it loads the coppermine site but its wedged in the small frame :(

Can fetch be made to open a new window? I can't figure out the mannual, i just don't get php (yet) :)

Thanks in advance.

Nibbler

Post your code. You need to set a target parameter. Better yet, stop using frames.

The_blue

Quote from: Nibbler on August 26, 2009, 05:58:40 PM
Post your code. You need to set a target parameter. Better yet, stop using frames.

<body background="bluwater.jpg">

<font size="4" face="Georgia">Random pictures from the 2nd Annual? CSAC BBQ.
</font>
<?php
  include_once "./cpmfetch.php";
  $objCpm = new cpm("./cpmfetch_config.php");
   // $options = array("subtitle" => "File name : {{pFilename}}");
  $objCpm->cpm_viewRandomMediaFrom("album=35",2, 4, $options);
  $objCpm->cpm_close();

Nibbler

Set the windowtarget option, like this:


<?php
  
include_once "./cpmfetch.php";
  
$objCpm = new cpm("./cpmfetch_config.php");
   
// $options = array("subtitle" => "File name : {{pFilename}}");
  
$options = array('windowtarget' => '_parent');
  
$objCpm->cpm_viewRandomMediaFrom("album=35",24$options);
  
$objCpm->cpm_close(); 


jessalken

Hi! I'm having the same issue - sorry I'm not brilliant with code, but I thought this would do it? Please help!

<?php
  include "../gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
  $options = array('windowtarget' => '_parent');
  $objCpm->cpm_viewLastAddedMedia(2,3);
  $objCpm->cpm_close();
?>