I was holding back starting a new topic for more than a year. Ever since the installation style cpmfetch I installed my ezportal block stopped displaying pictures. I have done successfully the installation and it displayed pictures soon after installation.
I have installed the cpmfetch directory within coopermine directory. ie.,
www.starf1.com/photos/cpmfetch/I have the cpmfetch code for random pictures in the ez-portal
www.starf1.com/forum/portal1.phpThe code itself is stored in
www.starf1.com/forum/templates/portal1_body.tpl but the page is displayed as
www.starf1.com/forum/portal1.phpI am using the latest cpg 1.4.19 and the latest developmental version 2.1.1 (as the stable version was also not working for me).
The code I have tried is
<?
include "../photos/cpmfetch/cpmfetch.php";
$objCpm = new cpm("../photos/cpmfetch/cpmfetch_config.php");
$options = array('subtitle' => '<b>%t</b> ', 'imagewidth' => '150' , 'imagesize' => 'int');
$objCpm->cpm_viewRandomMedia(1,1,$options);
?>
and
<?
$objCpm->cpm_viewLastAddedMedia(1,2, array( 'imagewidth' => '150' , 'imagesize' => 'int', 'subtitle' => '<b>%t</b> <br />Posted by <b>%o</b><br />%h views'));
$objCpm->cpm_close();
?>
I get no error message.
I tried the code in a seperate file and stored in a php file in the following place. It works.
www.starf1.com/forum/vaslatestpics.phpand in
www.starf1.com/forum/vas.phpBut in
www.starf1.com/forum/portal1.php, it is not working.
Can anybody help please. Thanks.