Advanced search  


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.

Pages: [1]   Go Down

Author Topic: cpmfetch installed... html code needed  (Read 2960 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 4
cpmfetch installed... html code needed
« on: September 11, 2016, 09:05:52 am »

I've successfully installed cpmfetch onto my gallery but now I want to add a latest photos section onto a tumblr blog (that doesn't support .php)

I tried using this code:
<iframe width="310" height="290" frameborder="no" scrolling="no" src="" title=""></iframe>

but it still doesn't work.

is there something that I'm doing wrong?


  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: cpmfetch installed... html code needed
« Reply #1 on: September 12, 2016, 01:59:15 am »

I assume you are using CPG 1.5... You opened this thread in the 1.4 forum.

The easiest way to use cpmfetch on an html page is to call cfimageget.php from an IMG tag:
Code: [Select]
<img src="yourcpgpath/cpmfetch/cfimageget.phpYou can add to the img tag qualifiers for category or album.
If you put more than one on a page - add some unique parm to the tag so that your browser sees them as different tags, and will actually call cpmfetch each time. (in example below - variable 'i' is not used by cpmfetch - but makes the tag appear unique to your browser.

Code: [Select]
<img src="yourcpgpath/cpmfetch/cfimageget.php?category=2&i=1
<img src="yourcpgpath/cpmfetch/cfimageget.php?category=2&i=2
<img src="yourcpgpath/cpmfetch/cfimageget.php?category=2&i=3

You can also call cfig_random.php from an IMG tag - customize it to your preferences.
(It uses/extends cfimageget)

Under CPG1.5.x, you must be using cpmfetch 2.1.1...
Available in the main cpmfetch thread:,65412.msg324838.html#msg324838
cfimageget/cfig_random do not work with CPG 1.5 at V2.0.0 level.

More examples are in the source for cfimageget and cfig_random.php... Have a look and ask if you need more info.
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money
Pages: [1]   Go Up

Page created in 0.021 seconds with 20 queries.