cpmfetch cpm_viewRandomMediaFromCategory doesn't work cpmfetch cpm_viewRandomMediaFromCategory doesn't work
 

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

cpmfetch cpm_viewRandomMediaFromCategory doesn't work

Started by gabbox097, March 10, 2015, 12:56:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gabbox097

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:
<?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:
<?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! :)

gmc

Do you have a link that shows what's wrong?
What version of cpmfetch are you using?
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money