coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: rhardy on October 15, 2007, 07:14:24 PM

Title: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: rhardy on October 15, 2007, 07:14:24 PM
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.
Title: Re: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: rhardy 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
Title: Re: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: jesskajess 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.
Title: Re: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: Joachim Müller on November 09, 2007, 08:10:23 AM
Don't hijack other's threads, but start a thread of your own!
Title: Re: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: jokas 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...
Title: Re: Use linktemplate to generate a pop-up window with the intermediate pic?
Post by: jokas 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.