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
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.
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
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
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
Hey, this {{pCtimeFormatted}} works great.
Thanks a lot for your help.
Regards
Ali
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.