Using the Subtitle option Using the Subtitle option
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Using the Subtitle option

Started by trvlnman, April 17, 2008, 04:42:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

trvlnman

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.