forum.coppermine-gallery.net
Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: vas on December 07, 2008, 08:42:26 pm
-
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.php
The code itself is stored in www.starf1.com/forum/templates/portal1_body.tpl but the page is displayed as www.starf1.com/forum/portal1.php
I 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.php
and in
www.starf1.com/forum/vas.php
But in www.starf1.com/forum/portal1.php, it is not working.
Can anybody help please. Thanks.
-
My Gallery http://starf1.com/photos/index.php (http://starf1.com/photos/index.php)
My Forum Portal where the cpmfetch suppose to depict pics. http://starf1.com/forum/portal1.php (http://starf1.com/forum/portal1.php)
Hope somebody gimme some idea to solve the problem. Thanks.
-
I am surprised 192 views but no reply. Hope some body will give me insight.
-
<?php
error_reporting(E_ALL);
ini_set('display_errors',0); // 0 is off, 1 is on
include "http://www.haifafans.net/gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("http://www.haifafans.net/gallery/cpmfetch/cpmfetch_config.php");
$options = array('windowtarget' => '_blank');
$objCpm->cpm_viewLastAddedMedia(1,10, $options);
$objCpm->cpm_close();
?>