coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: trvlnman on April 17, 2008, 04:42:04 PM

Title: Using the Subtitle option
Post by: trvlnman on April 17, 2008, 04:42:04 PM
I am utilizing the $option array with SMF and TP.  Some options work, however the subtitle option does not seem to be working.  In looking through the documentation, I found this quote when looking at the $format tags I could use.

QuoteThe list varies to a slight degree by how you are using CpmFetch. If you are just using CpmFetch as a photo gallery, all of these tags should be available to you. If you are bridged with a forum or something, some may not be.

Can you tell me if the {{pFilename}}, {{pTitle}}, and {{pOwner_name}} format tags work with a bridged SMF forum?  The {{aPos}} and {pPid}} tags work.

If so, is there anything else I need to do to have them display under the images extracted using cpmFetch?

Here is the code I am using in a TP Frontpage phpblock:

echo '<body bgcolor="#FFFFFF"><table align="center" bgcolor="#222222" bordercolor="444444" width="100%" border="0" cellspacing="1" cellpadding="0" class="maintable"><tr>
<td valign="top" style="background-image: url(http://www.sultryangel.com/coppermine/images/tile.gif);"><img src="http://www.sultryangel.com/coppermine/images/tile.gif" alt="" border="0" /></td></tr></table>';
echo '<center>';
include_once ("./coppermine/cpmfetch/cpmfetch.php");
$objCpm = new cpm("./coppermine/cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "{{pFilename}} {{pTitle}} {{pOwner_name}}", "windowtarget" => "_parent", "linktemplate" => "http://www.sultryangel.com/coppermine/displayimage.php?album=lastup&cat=0&pos={{aPos}}");
$objCpm->cpm_viewLastAddedMedia(2, 8, $options);
echo ' </center> ';
echo '<table align="center" bgcolor="#222222" bordercolor="444444" width="100%" border="0" cellspacing="1" cellpadding="0" class="maintable"><tr>
<td valign="top" style="background-image: url(http://www.sultryangel.com/coppermine/images/tile.gif);"><img src="http://www.sultryangel.com/coppermine/images/tile.gif" alt="" border="0" /></td></tr></table>';


I am using the following versions:

SMF 1.1.4
TP 0.9.8
CPG 1.4.16
cmpFetch 2.1.1

Any help would be appreciated.