Pulling Specific Pictures Pulling Specific Pictures
 

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

Pulling Specific Pictures

Started by blowfishdl, November 26, 2007, 05:33:05 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

blowfishdl

Hello all,

Basically I've been trying to pullRandomMedia from 3 different pages named 1.php 2.php 3.php, and the idea is that the iframe of each of these pictures will show 3 different pictures. HOWEVER, for some reason they are pulling the same exact picture 90% of the time. Here is my code, same for all 3. How can I modify this so that they aren't pulling the same pictures at all?

<?php
include_once "../buzzedphoto/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../buzzedphoto/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "File name : {{pFilename}}");
$source "album=1";
$objCpm->cpm_viewRandomMediaFrom($source,22, array("windowtarget" => "_parent"));
$objCpm->cpm_close();
?>

blowfishdl

Nevermind.. I figured it out.. this code works fine, but needs a full page load to function properly. Thanks anyway.