Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Last pictures not shown  (Read 4218 times)

0 Members and 1 Guest are viewing this topic.

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Last pictures not shown
« on: November 05, 2008, 01:42:13 pm »

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:
Code: [Select]
<?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:
Code: [Select]
<?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 ^^
Logged

Nibbler

  • Guest
Re: Last pictures not shown
« Reply #1 on: November 05, 2008, 05:24:52 pm »

Edit cpmfetch_dao.php and try changing

Code: [Select]
" ORDER BY p.ctime DESC LIMIT 0,$count";

to

Code: [Select]
" ORDER BY p.pid DESC LIMIT 0,$count";
Logged

Thawane

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Last pictures not shown
« Reply #2 on: November 06, 2008, 07:52:29 pm »

It works, thank you!
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.