Using cpgFetch Twice... Using cpgFetch Twice...
 

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 cpgFetch Twice...

Started by theflori, November 13, 2006, 04:44:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

theflori

Hello! I use cpgFetch with a Joomla Module! I build two Modules, but if i activate 2 plugins i become a error, when i use 1 module there is no error!

thats the Error Message:

QuoteFatal error: Cannot redeclare class cpm in /var/www/vhosts/photo-planet.net/httpdocs/Gallery/cpmfetch/cpmfetch.php on line 33

<?php
 

defined'_VALID_MOS' ) or die( 'Restricted access' );

$gallery   = $params->get('gallery');
$cpmFetch  = $params->get('cpmFetch');


$options = array('subtitle' => '<font face="Verdana" size="1"><b>%V</b> (%v Votes)</font>','imageheight' => '60',"tablestyle" => "test","imagestyle" => "test1","cellstyle" => "test2","tablestyle" => "test3");
$source "";


include 
$cpmFetch."/cpmfetch.php";
$objCpm = new cpm($gallery); 
$objCpm->cpm_viewTopRatedMediaFrom($source,3,1$options); 
$objCpm->cpm_close();


?>


i use the same parameters on all two modules!

i hope anyone can help me