Use linktemplate to generate a pop-up window with the intermediate pic? Use linktemplate to generate a pop-up window with the intermediate pic?
 

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

Use linktemplate to generate a pop-up window with the intermediate pic?

Started by rhardy, October 15, 2007, 07:14:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rhardy

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.

rhardy

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

jesskajess

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

Joachim Müller


jokas

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...
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|

jokas

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.
_____________________________________
|-->  J1.5.6 + CPG1.4.19 + Bridge  <--|