Not working properly Not working properly
 

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

Not working properly

Started by confuser, May 30, 2007, 05:05:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

confuser

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

vuud

Quote from: confuser on May 30, 2007, 05:05:28 PM
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



Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

confuser

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

vuud

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.


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco