Advanced search  

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

Pages: [1]   Go Down

Author Topic: cpmfetch of random images on search page?  (Read 5401 times)

0 Members and 1 Guest are viewing this topic.

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
cpmfetch of random images on search page?
« on: October 16, 2007, 04:36:14 am »

just learning php.

got the BASIC fetch tool to work on a few pages, calling latest images, and random images form catid. but how do i call random images acording to a keyword or from a specific search page? I've honestly looked over all the docs and found nothing, or maybe i missed it? please help!
« Last Edit: October 16, 2007, 08:15:02 am by GauGau »
Logged

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: cpmfetch of random images on search page?
« Reply #1 on: October 16, 2007, 06:01:44 am »

problem solved  ;D
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpmfetch of random images on search page?
« Reply #2 on: October 16, 2007, 08:14:48 am »

You might want to resolve your thread by explaining what you actually did for the benefit of others with similar questions.
Logged

Team Aero-K

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: cpmfetch of random images on search page?
« Reply #3 on: October 16, 2007, 04:35:55 pm »

Code: [Select]
<?php
  
include "./cpg1413/cpmfetch/cpmfetch.php";
  
$options = array( 'windowtarget' => '_blank' );
  
$objCpm = new cpm("./cpg1413/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewRandomMediaFrom("keyword=Tim",1,4,$options);
  
$objCpm->cpm_close();
?>

       

code i used to call upon random images with keyword. now will edit to not display movies
Logged

aldog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: cpmfetch of random images on search page?
« Reply #4 on: November 08, 2007, 08:38:28 pm »

Can I ask where exactly you put this script? and also, does it only pull up images from your predefined keyword? Is it meant to help with the search function? or just make the search page look different?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: cpmfetch of random images on search page?
« Reply #5 on: November 09, 2007, 08:11:25 am »

Did you read the cpmFetch docs and the sticky thread on this board? If not, do so now.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.