forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: theflori on November 13, 2006, 04:44:12 pm

Title: Using cpgFetch Twice...
Post by: theflori on November 13, 2006, 04:44:12 pm
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:

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

Code: [Select]
<?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