Using the Subtitle option Using the Subtitle option
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.