cpmfetch blank cpmfetch blank
 

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

cpmfetch blank

Started by vas, December 07, 2008, 08:42:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vas

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.



vas

My Gallery  http://starf1.com/photos/index.php

My Forum Portal where the cpmfetch suppose to depict pics. http://starf1.com/forum/portal1.php

Hope somebody gimme some idea to solve the problem. Thanks.

vas

I am surprised 192 views but no reply. Hope some body will give me insight.

Mr-Cute

<?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();
?>