SMF 1.1.8 / TinyPortal 1.0.5
Coppermine 1.4.20
CMPFetch 2.0.0
Main Site:
www.regapgreyhounds.org/index.phpCoppermine alone:
www.regapgreyhounds.org/cpgTest page:
www.regapgreyhounds.org/gallery.phpI have searched and poked around and have tried other people's code and checked the FAQs for the code there. Ideally what I need to have is an ability to show various images in articles through TinyPortal. However I'm starting simple and working on the basic test page for now before I try to argue with the SMF/TP code as well
The code from my test page, taken straight from the Stable Basic Docs and then split up to sit pretty in the HTML
<?php
// To include images from the Coppermine Gallery
include_once "./cpg/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpg/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "File name : {{pFilename}}");
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
</head>
<body>';
$objCpm->cpm_viewLastAddedMedia(1, 4, $options);
$objCpm->cpm_viewRandomMediaFrom("cat=1",1, 4, $options);
echo '
</body>
</html>';
$objCpm->cpm_close();
?>
If you look at the test page, CPMFetch is able to find the correct links to the images and display that ... so that when you click on it, it takes you to the page for the image. However, it's simply unable to display the images themselves - the <img> tags have the main URL up to /cpg and then stops before outputting the albums/etc/etc. In the source code for each of the images, there is:
CF-Error <!-- GITU: Could not find any image to display: Extension (strtolower): .jpg File://albums/userpics/10001/thumb_arrivals.JPG-->
Any help would be appreciated ... please let me know if there is anything else I can post/PM that would be useful.