forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: gabbox097 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:
<?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(23, 1, 4);
$objCpm->cpm_close();
?>
I also found something here http://www.faroenature.net/gallery/cpmfetch/myndatest.php (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/ (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 (http://www.lovatotribe.com/galleria/index.php?cat=23).
Thank you! :)
-
Do you have a link that shows what's wrong?
What version of cpmfetch are you using?