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: Making a link  (Read 3467 times)

0 Members and 1 Guest are viewing this topic.

eeL

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Making a link
« on: April 28, 2007, 04:46:38 pm »

This is what I have as my cpmFetch in a PHP Box:
Quote
echo "<CENTER>";
echo 'Recent Member Photos';
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,4);
$objCpm->cpm_close();
echo 'View Gallery';
echo "</center>";

I want to make 'View Gallery' a hyperlink. How can I do this, because everything I try mucks up cpmFetch. Thanks
« Last Edit: April 30, 2007, 09:57:37 am by GauGau »
Logged

eeL

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
SOLVED
« Reply #1 on: April 28, 2007, 04:53:57 pm »

Figured it out.  ;)

Quote
echo "<CENTER>";
echo 'Recent Member Photos';
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,4);
$objCpm->cpm_close();
print ("<a href=\"your link here\">View Gallery</a>");
echo "</center>";
Logged

Ken.

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: Making a link
« Reply #2 on: April 30, 2007, 10:37:42 pm »

Great job eel! ;D
I've been searching here on cpg for just that answer.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.