http://topangelic.fuhost.net/ (http://topangelic.fuhost.net/)
The first one is fine but the second one should show thumbnails to videos not games, ive put the code into a nother page and used iframe to show them
Latest Games<?php
echo "Latest Games";
include "gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,5,"cat=3");
$objCpm->cpm_close();
?>
and Latest Videos<?php
echo "Latest Videos";
include "gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,5,"cat=5");
$objCpm->cpm_close();
?>
But there both the same...
Quote from: confuser on May 30, 2007, 05:05:28 PM
http://topangelic.fuhost.net/ (http://topangelic.fuhost.net/)
The first one is fine but the second one should show thumbnails to videos not games, ive put the code into a nother page and used iframe to show them
Latest Games<?php
echo "Latest Games";
include "gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,5,"cat=3");
$objCpm->cpm_close();
?>
and Latest Videos<?php
echo "Latest Videos";
include "gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,5,"cat=5");
$objCpm->cpm_close();
?>
But there both the same...
Well its doing exactly what you are asking it to do.
Please re-read the documentation on cpm_viewLastAddedMedia,
then read the documentation on cpm_viewLastAddedMediaFrom
Quote from: vuud on May 30, 2007, 05:26:40 PM
Well its doing exactly what you are asking it to do.
Please re-read the documentation on cpm_viewLastAddedMedia,
then read the documentation on cpm_viewLastAddedMediaFrom
No its not cos if u look had the code the first one says cat=3 and the second one says cat=5...
Quote from: confuser on May 30, 2007, 05:49:30 PM
No its not cos if u look had the code the first one says cat=3 and the second one says cat=5...
What are you talking about?
cpm_viewlastaddedmedia does not take a source parameter. You are passing it as part of the options array.
and when you switch to the correct function...
cpm_viewLastAddedMediaFrom - its then in the wrong place.
So like I said... read the docs... I wrote them for a reason.