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: date does not appear  (Read 4904 times)

0 Members and 1 Guest are viewing this topic.

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
date does not appear
« 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
« Last Edit: March 21, 2007, 09:03:45 am by GauGau »
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: date does not appear
« Reply #1 on: March 20, 2007, 04:24:49 pm »

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.





Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: date does not appear
« Reply #2 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: date does not appear
« Reply #3 on: March 20, 2007, 06:17:11 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




Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: date does not appear
« Reply #4 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
Logged

hozyali

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 109
  • HozyAli
    • Starcom Hosting
Re: date does not appear
« Reply #5 on: March 21, 2007, 08:03:37 am »

Hey, this {{pCtimeFormatted}} works great.

Thanks a lot for your help.

Regards
Ali
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: date does not appear
« Reply #6 on: March 21, 2007, 02:41:00 pm »

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.



Logged
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.