Using cpgFetch Twice with Joomla Using cpgFetch Twice with Joomla
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Using cpgFetch Twice with Joomla

Started by theflori, November 13, 2006, 06:13:30 PM

Previous topic - Next topic

0 Members and 2 Guests 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



Nibbler


lordiefe

Fatal error: Cannot redeclare class cpm in /home/.jeris/anc/ancsports.net/photogallery/cpmfetch/cpmfetch.php on line 1698

myuption

Can you tell me what you use as joompla module? Haven't been able to make this work. :-[

viajero

Hi Lordiefe,

you should use mod_ExtCoppermine V1.1.0 Link to mod_ExtCoppermine
you can use multiple instances of it, because it uses "include_once"

if you have any problems with it - write me an a-mail or private message

saludos
André alias viajero

myuption

Gracais viajero, unfortunately, when i download the file, any version, while opening, winzip tells me there is an error and nothing is inside, i tried to upload it, but also i got an error in joomla, it says the file is not valid.

viajero

Hi myuption,

try to redownload it, because it works on my side - I just tried it again and could sucsessfully unzipped it with 7zip and totalcommander 6.5

seems to be a problem with your winzip --> use another zip program and/or redownload it

saludos
André alias viajero

myuption

OK, you know, now i tried using firefox, now i got a valid file, the problem seems to be ie7, somehow it destroys the content inside while downloading.

I installed the mod, now i'll test it, thank you. :)

vuud

Quote from: myuption on April 25, 2007, 07:02:35 PM
OK, you know, now i tried using firefox, now i got a valid file, the problem seems to be ie7, somehow it destroys the content inside while downloading.

I installed the mod, now i'll test it, thank you. :)

IE7 is just protecting you.  In order to secure windows, IE will not longer accept anything as a download.

Its for your own good.

(kidding)
Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco