coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: Piceo2k on August 28, 2007, 09:38:13 PM

Title: As it is the error?
Post by: Piceo2k on August 28, 2007, 09:38:13 PM
I am using the 2,0 and the code is the following one:


<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array([b]imagelink => "album",[/b"imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>



Result: Parse error: syntax error, unexpected '[', expecting ')' in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 5

Title: Re: As it is the error?
Post by: Nibbler on August 28, 2007, 09:39:27 PM
Try removing the bbcode.
Title: Re: As it is the error?
Post by: Piceo2k on August 28, 2007, 10:18:28 PM
I do not understand that it is what I must clear.

Greetings,
Title: Re: As it is the error?
Post by: Nibbler on August 28, 2007, 11:43:56 PM
remove the [ b ] and [ /b ]
Title: Re: As it is the error?
Post by: Piceo2k on August 29, 2007, 12:16:27 AM

<?php
  
include ".galeria/cpmfetch/cpmfetch.php";
  include 
"./Style.css";
  
$objCpm = new cpm("./galeria/cpmfetch/cpmfetch_config.php");
  
$objCpm->cpm_viewLastUpdatedAlbumsFrom(4,4,2,array(imagelink => "album""imagestyle" => "test1"windowtarget => "_blank"));
  
$objCpm->cpm_close();
?>



Error: Warning: main(.galeria/cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.include]: Failed opening '.galeria/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 2

Warning: main() [function.main]: Unable to access ./Style.css in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main(./Style.css) [function.main]: failed to open stream: No such file or directory in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Warning: main() [function.include]: Failed opening './Style.css' for inclusion (include_path='.:/usr/local/lib/php') in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 3

Fatal error: Cannot instantiate non-existent class: cpm in /home/mischa/domains/hilarysfriends.com/public_html/prueba.php on line 4
Title: Re: As it is the error?
Post by: Piceo2k on August 29, 2007, 12:26:01 AM
I have already solved it. Thank you very much.
Title: Re: As it is the error?
Post by: Joachim Müller on September 06, 2007, 08:17:46 AM
For the benefit of others with simlar issues you should have posted what you actually did to solve your issue.