Not working properly Not working properly
 

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]

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