I have spent the last couple of days reading through the documentation and searching through a lot of posts on this board. I have not been able to find the answers that I'm looking for.
I am working with a forum running SMF with TinyPortal. I have Coppermine installed and am looking to use cmpFetch to put the last added images into a center block.
Here is the software that I'm using:
SMF 1.1.4
TP 0.9.8
CPG 1.4.16
cmpFetch 2.1.1 Development version
Here is the code that I have defining the block:
echo "<center>";
include_once ("./coppermine/cpmfetch/cpmfetch.php");
$objCpm = new cpm("./coppermine/cpmfetch/cpmfetch_config.php");
$options = array( "windowtarget" => "_parent", "subtitle" => "<center>{{pTitle}}{{pOwner}}</center>", "linktemplate" => "http://www.sultryangel.com/coppermine/displayimage.php?album=lastup&cat=0&pos={{aPos}}");
$objCpm->cpm_viewLastAddedMedia(2, 8, $options);
echo "</center>";
Here is what I am trying to do:
Display the last 16 images stored in Coppermine - Done
Display 2 rows of 8 images each - Done
Have the rows centered - Done
Display the Image Title centered under the image - Not Working
Display the Image Owner centered under the image - Not Working
When clicking on the thumb, navigate to that image inside the gallery - Partially Working
When transferring, keep within the Center Panel of existing forum, not just the gallery - Not Working
In this forum, one of the button options (like Home, Forum, Search, Profile, etc) is to go to the Coppermine Gallery (CPG). This button opens an Iframe that renders the gallery in the center block. Is this what I should be looking to duplicate?
The default link when you go to select one of the thumbnails is
http://www.sultryangel.com/coppermine/thumbnail.php&albumn(albumn#). The override I put in points to the correct album, but it goes to the last image. Is there a way to pass the position from the table created in the center block to get the correct image? For example, in the block created, the 1st image would be position 0, and the last one would be position 15. That is what I am trying to do using the {{aPos}} parameter. The override link is what is used when going into the CPG and mousing over the Last Additions on the home page of the gallery.
Any help or tips would be appreciated, I have been stumbling through this and I need some different eyes on it. Maybe some fresh insight would help.
Just so you know, there is some adult content on this site, I can create a Userid / PW for you if necessary.