Last pictures not shown Last pictures not shown
 

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

Last pictures not shown

Started by Thawane, November 05, 2008, 01:42:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Thawane

Hey! I finally got CPMFETCH to work! Or at least show. I have been looking for this forever, thank you vuud!
Anyways, I have now two problems.
1- The supposed last pictures shown aren't the last ones!! Here is my code:

<?php
  
include "./videos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./videos/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,2);
  
$objCpm->cpm_close();
?>

With this, I find myself with the 5th and 6th pictures (getting the 6th one first). I tried manipulating it so I tried this:

<?php
  
include "./videos/cpmfetch/cpmfetch.php";
  
$objCpm = new cpm("./videos/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastAddedMedia(1,6);
  
$objCpm->cpm_close();
?>

And I get in last the first actual last picture.
Please help, I have been searching on the forum for the last hour!  ;D
Here is the link to my site: http://shakira-online.fr/index2.php (last pics shown at the bottom)
and the gallery: http://shakira-online.fr/videos/
There might be something but I don't get that muche of the PHP codes lol
Sorry if these questions were already asked!

PS: I have another question concerning img style but i see i have to open a new topic, i will open it later! :)

Thanks for those who will answer ^^

Nibbler

Edit cpmfetch_dao.php and try changing


" ORDER BY p.ctime DESC LIMIT 0,$count";


to


" ORDER BY p.pid DESC LIMIT 0,$count";

Thawane