coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: hozyali on March 20, 2007, 07:20:49 AM

Title: date does not appear
Post by: hozyali on March 20, 2007, 07:20:49 AM
Hi, I am using the following code to fetch gallery images on my website homepage. www.saxophonestocollect.com

Quote<?php   
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm('./gallery/cpmfetch/cpmfetch_config.php');
$options = array(
//'subtitle' => '%t <br> %S KB' ,
"tablestyle" => "thumbnails",
"cellstyle" => "cellwidth",
"linkstyle" => "thumb_caption",
"alttag" => "%c",
"subtitle" => "<span class=thumb_caption><b>%t </b><br>%w</span>",
"imagestyle" => "image",
"imagesize" => 'thumb');
//$objCpm->cpm_viewRandomMedia (1,4);
/*$styleguide = array(
      "linkstyle" => "photoclip",
      "alttag" => "views: %h",
      "subtitle" => "%h views",
      "imagestyle" => "photoclip",
      "imagesize" => 'thumb');
      */
$objCpm->cpm_viewLastAddedMedia (2,4,$options);
$objCpm->cpm_close();
?>

but the uploaded date is not appearing below the image title, can some one please advise what's wrong?
I am also using the same code at www.bookstocollect.com with only version difference and its working fine.

Thanks for your help.

Ali
Title: Re: date does not appear
Post by: vuud on March 20, 2007, 04:24:49 PM
Quote from: hozyali on March 20, 2007, 07:20:49 AM
but the uploaded date is not appearing below the image title, can some one please advise what's wrong?
I am also using the same code at www.bookstocollect.com with only version difference and its working fine.

When you say version difference, what do you mean?

CpmFetch version?  CPG version, MySQL version?

and what are the version differences...

Oh wait, try capital %W

I think the doc's are wrong on the lowercase w.





Title: Re: date does not appear
Post by: hozyali on March 20, 2007, 06:02:23 PM
I tried capital %W, Now it shows different numbers below the images, please refer to www.saxophonestocollect.com

the version is the latest version of CPMFetch I am using.

Please advise.

Ali
Title: Re: date does not appear
Post by: vuud on March 20, 2007, 06:17:11 PM
Quote from: hozyali on March 20, 2007, 06:02:23 PM
I tried capital %W, Now it shows different numbers below the images, please refer to www.saxophonestocollect.com

the version is the latest version of CPMFetch I am using.

Please advise.

Ali


The latest version is 1.9.12 from yesterday... Is that it?

You can try {{pCtimeFormatted}} instead of the %W or %w

That is the new way of doing things...

Let me know if that works or not...  Either way something is strange




Title: Re: date does not appear
Post by: hozyali on March 21, 2007, 05:57:37 AM
the version was 1.9.9 or .10 I think. that the versino you sent me pvt message for when I had bmp files issue with it. (I hope you remember)

Regards
Ali
Title: Re: date does not appear
Post by: hozyali on March 21, 2007, 08:03:37 AM
Hey, this {{pCtimeFormatted}} works great.

Thanks a lot for your help.

Regards
Ali
Title: Re: date does not appear
Post by: vuud on March 21, 2007, 02:41:00 PM
Quote from: hozyali on March 21, 2007, 08:03:37 AM
Hey, this {{pCtimeFormatted}} works great.

Thanks a lot for your help.

Regards
Ali


Those are the future my friend.  The old %x way of doing it was becoming a problem.  I rapidly ran out of ones that made sense, and overall was starting to run out of letters.

The releasenotes have a part that lists all the fields you can use.

I must have broke the legacy parsing connection ... it only does the % processing if it needs to now.