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: using cpmfetch to output results as hyperlink  (Read 2351 times)

0 Members and 1 Guest are viewing this topic.

johnner

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
using cpmfetch to output results as hyperlink
« on: January 05, 2006, 03:20:59 am »

I have a page outside of Coppermine that says how many images have been uploaded in the past x number of days.  The code works fine, but I want the entire output to be a hyperlink.  I know this is picky, but it bothers me that it isn't a full URL..  The code is as follows:

Code: [Select]
<?php 

include "./cpmfetch.php";

$objCpm = new cpm('/gallery');

$objCpm->cpm_getMediaCountAddedInLast(7);

print 
" ";

print (
"<a href=\"http://www.johnner.com/gallery/thumbnails.php?album=lastup&cat=0\">new images</a>");

print 
" in the last 7 days";

$objCpm->cpm_close(); 

?>

Basically, I want the number of uploaded files to be part of the hyperlink that would be include the entire 5 new images in the last 7 days.  How do I include the output of the cpm_getMediaCountAddedInLast(7) function to be part of the hyperlink.
« Last Edit: January 05, 2006, 04:43:33 am by GauGau »
Logged

ecto

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 144
    • My very incomplete gallery
Re: using cpmfetch to output results as hyperlink
« Reply #1 on: January 05, 2006, 03:59:17 am »

Please post on the proper board.

CPMFetch: http://forum.coppermine-gallery.net/index.php?board=57.0
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 20 queries.