forum.coppermine-gallery.net
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
-
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
-
Try removing the bbcode.
-
I do not understand that it is what I must clear.
Greetings,
-
remove the [ b ] and [ /b ]
-
<?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
-
I have already solved it. Thank you very much.
-
For the benefit of others with simlar issues you should have posted what you actually did to solve your issue.