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

0 Members and 1 Guest are viewing this topic.

gabbox097

  • 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]
<?php 
$source 
"cat=23"
$sources "cat=23";
$catid"23"
$rows "1"
$columns "40"
include 
"./galleria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./galleria/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMediaFrom ($source$rows$columns$catid); 
$objCpm->cpm_close(); 
?>

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

I also found something here http://www.faroenature.net/gallery/cpmfetch/myndatest.php 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 http://www.lovatotribe.com/galleria/ and this is the link of the category I'd like to show http://www.lovatotribe.com/galleria/index.php?cat=23.

Thank you! :)
Logged

gmc

  • 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?
Logged
Thanks!
Greg
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.022 seconds with 19 queries.