working but random thumbs show from gallerys and albums not specified working but random thumbs show from gallerys and albums not specified
 

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

working but random thumbs show from gallerys and albums not specified

Started by subwater, September 19, 2007, 02:52:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

subwater

I'm using cpg 1412 and fetch 2.0.0.. the php code I'm using to display random thumbnail images on a web page is:

<?php
  include_once "./cpg1412/cpmfetch/cpmfetch.php";
  $objCpm = new cpm("./cpg1412/cpmfetch/cpmfetch_config.php");
  $objCpm->cpm_viewRandomMediaFrom("cat=partners:album=tours",1, 5, $options);
  $objCpm->cpm_close();
?>

but random thumbnails also show from a gallery called "awards" with album named "2006awards".

Can anyone help me please?  I've spent a ton of time uploading and retrying (and a ton of time reading support).


subwater

name the category/albums using a numeral instead of using a regular name?  Or where or how is the category/album numbered and how do I access these numbers?  I did try using numbers by going by the order of gallerys/albums list.. 1st named category =1, 2nd category=2, but it is still not working.
I thought that might be the issue but I read everywhere and didn't see a reference to that other than in the example scripts and thought the numbers where just "for example".

Nibbler

Navigate to the albums and categories in your gallery and look at the address bar. You should see cat=x or album=x

subwater

geez, I should have asked a long time ago.. mark this problem solved! ;D  I looked everywhere... except the address bar!
Thanks for your time and help Nibbler.