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: Pulling Specific Pictures  (Read 3935 times)

0 Members and 1 Guest are viewing this topic.

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Pulling Specific Pictures
« on: November 26, 2007, 05:33:05 pm »

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?

Code: [Select]
<?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();
?>
« Last Edit: November 26, 2007, 06:26:22 pm by GauGau »
Logged

blowfishdl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 57
Re: Pulling Specific Pictures
« Reply #1 on: November 26, 2007, 05:41:28 pm »

Nevermind.. I figured it out.. this code works fine, but needs a full page load to function properly. Thanks anyway.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.