cpmfetch of random images on search page? cpmfetch of random images on search page?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

cpmfetch of random images on search page?

Started by Team Aero-K, October 16, 2007, 04:36:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Team Aero-K

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!

Team Aero-K


Joachim Müller

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

Team Aero-K

<?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

aldog

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?

Joachim Müller

Did you read the cpmFetch docs and the sticky thread on this board? If not, do so now.