coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: eeL on April 28, 2007, 04:46:38 PM

Title: Making a link
Post by: eeL on April 28, 2007, 04:46:38 PM
This is what I have as my cpmFetch in a PHP Box:
Quoteecho "<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
Title: SOLVED
Post by: eeL on April 28, 2007, 04:53:57 PM
Figured it out.  ;)

Quoteecho "<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>";
Title: Re: Making a link
Post by: Ken. on April 30, 2007, 10:37:42 PM
Great job eel! ;D
I've been searching here on cpg for just that answer.