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: [Solved]: Where do I paste the cpmfetch code?  (Read 5768 times)

0 Members and 1 Guest are viewing this topic.

westlifeus

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[Solved]: Where do I paste the cpmfetch code?
« 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
« Last Edit: June 08, 2009, 10:49:38 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Where do I paste the cpmfetch code?
« Reply #1 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.
Logged

westlifeus

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Where do I paste the cpmfetch code?
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Where do I paste the cpmfetch code?
« Reply #3 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?
Logged

westlifeus

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Where do I paste the cpmfetch code?
« Reply #4 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
Logged

westlifeus

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Where do I paste the cpmfetch code?
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.