Advanced search  

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]

Pages: [1]   Go Down

Author Topic: cpm_showAlbumsUpdatedOverLastDays function doesn't work  (Read 3890 times)

0 Members and 1 Guest are viewing this topic.

Horizon

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
cpm_showAlbumsUpdatedOverLastDays function doesn't work
« on: January 18, 2009, 08:00:04 pm »

Hallo,

I have a problem with showing of Last updated albums on my website. I tried some codes, but is doesn't succeed. Now i'm using this one code:

Code: [Select]
<?php

$starttime 
explode(' 'microtime());
$starttime $starttime[1] + $starttime[0];

// cpmfetch
 
include "cpmfetch/cpmfetch.php";
 
$objCpm = new cpm("cpmfetch/cpmfetch_config.php");
 
$objCpm->cpm_setReturnType('html');

print 
$objCpm->cpm_viewRandomMedia(1,2, array('alttag' => '%a, %f'));
print 
$objCpm->cpm_showAlbumsUpdatedOverLastDays(10, array('alttag' => '%a %w''subtitle' => '%a, %f''imagelink' => 'album'));
$objCpm->cpm_close();

$mtime explode(' 'microtime());
$totaltime $mtime[0] + $mtime[1] - $starttime;
printf('Page loaded in %.3f seconds.'$totaltime);

?>


This one doesn't works as well - http://cantus.lt/galerija/albumai.php . Could you help me to find a solution? Maybe some sql is missed, ect ?  Please help me.
Logged

Horizon

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: cpm_showAlbumsUpdatedOverLastDays function doesn't work
« Reply #1 on: January 19, 2009, 02:39:15 pm »

I found out why it doesn't work. It's because I use only user galleries albums on my web. So about that code which provide user galleries of latest updated albums? Please help me.
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 19 queries.