First off, much thanks to vuud for writing such a slick mod. Exactly what I've been hunting around for... and a perfect fit for my site.
Just to preface my question here, I have done some searching around these boards, but haven't been able to find exactly what I'm experiencing. Haven't seen it as I've been browsing through the docs either. If I missed it somewhere, I apologize.
On to my issue...
I'm working with a Joomla/SMF/CPG setup. I have CPG bridged to SMF, and Joomla running w/ no bridge. I've done a pretty good bit of template modding, and am getting a little better at my budding career as a closet code monkey.
Anyway, here's a link to the site:
www.the-studioonline.comThe install went very smoothly, no hiccups there. I ended up just embedding the super-basic code lines in my template index.php file just to start out simple. It displays perfectly. The issue I'm running into is, when I click on one of the thumbnails generated by cpmfetch to go strait to the image in CPG, it seems to drop the "www." off of the url in the browser's address bar.
This normally wouldn't be a big deal, but if you're logged into SMF/Coppermine, dropping that "www." makes the browser think you're not logged in. If you manually add the "www." onto the url in the addy bar, it'll show you the correct "version" (for lack of a better term) of CPG.
Here's my code from the index.php in my template:
//cpmfetch code
include "../gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../gallery/cpmfetch/cpmfetch_conf6ig.php");
$objCpm->cpm_viewLastAddedMedia(1,7);
//$objCpm->cpm_close();
Also, just an FYI to any folks potentially thinking of adding this mod and linking from a Joomla page, I found it easier to just embed the code strait into your index.php file rather than creating a new module. I ended up creating a new module and a new module position in my template just for this mod, but found it so much easier to just embed the code. Also, Jooma didn't seem to like that last $ogjCpm->cpm_close(); line in there. Kept returning MySQL errors. Commenting it out solved that issue.