[Solved]: Where do I paste the cpmfetch code? [Solved]: Where do I paste the cpmfetch code?
 

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

[Solved]: Where do I paste the cpmfetch code?

Started by westlifeus, June 06, 2009, 08:34:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

westlifeus

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

Joachim Müller

You paste it into the page you want to appear it in. We can't tell you - it's up to you.

westlifeus

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

Joachim Müller

We have a strict "One question per thread" policy. Did you search the board and read the cpmFetch documentation?

westlifeus

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

westlifeus

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