coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: westlifeus on June 06, 2009, 08:34:38 PM

Title: [Solved]: Where do I paste the cpmfetch code?
Post by: westlifeus on June 06, 2009, 08:34:38 PM
Hey everybody!

I know this post must be somewhere else here, but I cannot found it! Sorry  :-[

My simple question is: Where do I paste the cpmfetch code? I mean, I wanna paste in my index, but I've heard that it could be inside of a DIV or an Iframe, but in an Iframe it couldn't be because when u click an image it show it inside of that Iframe. It there any way to make it show in a new window?

thanks

Mary Smith
Title: Re: Where do I paste the cpmfetch code?
Post by: Joachim Müller on June 07, 2009, 10:05:43 AM
You paste it into the page you want to appear it in. We can't tell you - it's up to you.
Title: Re: Where do I paste the cpmfetch code?
Post by: westlifeus on June 07, 2009, 10:25:44 PM
Thanks for reply Joachim!

Well I did it! I did it in a DIV, it works amazing, as I wanted, but how can I make it to watch the images in a new window??? 'cause when I click on any of those latest pics, it shows 'em in the same window.

Thanks a lot!

Mary Smith
Title: Re: Where do I paste the cpmfetch code?
Post by: Joachim Müller on June 07, 2009, 11:57:17 PM
We have a strict "One question per thread" policy. Did you search the board and read the cpmFetch documentation?
Title: Re: Where do I paste the cpmfetch code?
Post by: westlifeus on June 08, 2009, 03:26:24 AM
Hey!

Yes, I searched for this thread and I cannot found it! even I read the documentation and I didn't found nothing about it, that's why I ask here! :(

I hope somebody can help me!

Mary Smith
Title: Re: Where do I paste the cpmfetch code?
Post by: westlifeus on June 08, 2009, 03:36:46 AM
Sorry to post again! but I finally found it!!!!! yuhuuuuuu!

This is my code, and I have to add the codes in blod below:

<?php
  include "./gallery/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
  $options = array('windowtarget' => '_blank','imagewidth' => '50',"imageheight"=>"75");
  $objCpm->cpm_viewLastAddedMedia(1,10, $options);
  $objCpm->cpm_close();
?>

Yuhu at least! thanks!

Mary Smith