Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Use linktemplate to generate a pop-up window with the intermediate pic?  (Read 7103 times)

0 Members and 1 Guest are viewing this topic.

rhardy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

Hi

I think I've searched all over the board and the documentation and I can't find anyone who asked this question.  So forgive me if I missed it somewhere, but...

I'd like the pictures returned by cfmFetch to have be a link that just opens a pop-up window that is the same size as the intermediate picture and only shows the picture, nothing else.

So far, I've tried using linktemplate, but this is as far as I've gotten:

                    include_once "/...local_path_to_Coppermine.../cpmfetch/cpmfetch.php";
                    $objCpm = new cpm("/...local_path_to_Coppermine.../cpmfetch/cpmfetch_config.php");
                    $options = array('subtitle' => '{{pCaption}}', 'cellstyle' => 'cpmGalleryTD', 'linktemplate' => '/CopperMine/displayimage.php?pid={{pPid}}&fullsize=1', 'windowtarget' => '_blank');
                    $objCpm->cpm_viewRandomMediaFrom("album=2", 1, 3, $options);
                    $objCpm->cpm_close();  // Line 6

This code does work and each clicked image generates a new window, but I can't control the size of the window and it will only give me the full size picture.  I'm hoping
there's a built-in way to do this, but if not, I'm hoping someone can help me hack it.

Any help is appreciated.
Logged

rhardy

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Use linktemplate to generate a pop-up window with the intermediate pic?
« Reply #1 on: October 15, 2007, 11:23:59 pm »

A quick follow-up to my question:

Someone suggested I try to use LightBox2 (http://www.huddletogether.com/projects/lightbox2/) to accomplish my pop-up window with the intermediate image because it looks so much cooler.  I agree that would be way cooler, so I'm wondering if anyone else has successfully integrated LightBox2 with cpmFetch and if they would be willing to share their implementation.

Thanks in advance if anyone has.
Rob
Logged

jesskajess

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: Use linktemplate to generate a pop-up window with the intermediate pic?
« Reply #2 on: November 08, 2007, 06:57:42 pm »

does anyone know how to make the image open in a new window when a thumb i clicked?
thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Use linktemplate to generate a pop-up window with the intermediate pic?
« Reply #3 on: November 09, 2007, 08:10:23 am »

Don't hijack other's threads, but start a thread of your own!
Logged

jokas

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 50
Re: Use linktemplate to generate a pop-up window with the intermediate pic?
« Reply #4 on: September 11, 2008, 03:10:26 pm »

is there a solution in the meantime?

i have the same idea - i only want to show the intermediate pic, when i click on the thumbs.

i was reading around but cant find a solution.

maybe there is a CP addict, who can give a hint...
Logged
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|

jokas

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 50
Re: Use linktemplate to generate a pop-up window with the intermediate pic?
« Reply #5 on: September 14, 2008, 07:04:37 pm »

i tryed hard to find out the problem, but i have no clue where to fix.

maybe there is some one out there who can help - i will pay if you make me a offer by PM.
Logged
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 16 queries.