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 cpm_viewRandomMediaFromCategory doesn't work  (Read 2837 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 7
cpmfetch cpm_viewRandomMediaFromCategory doesn't work
« on: March 10, 2015, 12:56:20 pm »

Hi everyone!
I'm building a page dedicated to a specific argument in my wordpress and I'd like to show the related images that I posted into my gallery.

The problem is: I tried EVERYTHING but I can't fix it. I also read something in the forum but it didn't help me at all :(

The code I have right now is this:
Code: [Select]
$sources "cat=23";
$rows "1"
$columns "40"
$objCpm = new cpm("./galleria/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMediaFrom ($source$rows$columns$catid); 

But I also had a simple one that showed me the random images from all the gallery instead of just a category:
Code: [Select]
include "./galleria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galleria/cpmfetch/cpmfetch_config.php");

I also found something here but it doesn't work either. I don't know what else to do. Could somebody help me?

PS: this is the link to my gallery and this is the link of the category I'd like to show

Thank you! :)


  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: cpmfetch cpm_viewRandomMediaFromCategory doesn't work
« Reply #1 on: March 23, 2015, 03:10:20 am »

Do you have a link that shows what's wrong?
What version of cpmfetch are you using?
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.014 seconds with 19 queries.