Hello, my English is very bad, but i hope you can understand my Problem and help me.
I would like to install cpmfetch to show one of the newest pictures of my gallery at the startpage from my homepage. (i would like to include the newest picture in a html page/my startsite of my Homepage)
So i have download cpmfetch 1.6.4 and upload the cpmfetch directory to my webserver (../gallery/cpmfetch) then i change the line 5 into $ChangeThisToYourPartialUrlToCPG = "../gallery";
Now, when i Test the cftest.php the last test failed (CPG Config file not found)
What's wrong?
I hope you can help an stupid, not very good speaking/writing english, Girl ;D
Quote from: July3 on January 04, 2007, 09:10:59 PM
Hello, my English is very bad, but i hope you can understand my Problem and help me.
I would like to install cpmfetch to show one of the newest pictures of my gallery at the startpage from my homepage. (i would like to include the newest picture in a html page/my startsite of my Homepage)
So i have download cpmfetch 1.6.4 and upload the cpmfetch directory to my webserver (../gallery/cpmfetch) then i change the line 5 into $ChangeThisToYourPartialUrlToCPG = "../gallery";
Now, when i Test the cftest.php the last test failed (CPG Config file not found)
What's wrong?
I hope you can help an stupid, not very good speaking/writing english, Girl ;D
If your web page is in the top of your site, you want "/gallery", not "../gallery"
It works. Thank you.
Now i have another question. At the moment i can see 9 from all pictures from my gallery, but how can I make it that only one of the newest is to see, not one from all pics. I don't know to explain it, sorry. I hope you understand what i mean.
I would show ONE (coincidental) of the newest Picture at my Startsite on my Webpage.
Quote from: July3 on January 06, 2007, 01:02:35 AM
...
I hope you understand what i mean.
...
I don't. sorry
Ok i tr< to explain it again. :D
At the moment after install the cpmfetch I can see 9 images in the cftest.php
Now i would like to show ONE Image from my Gallery on my Startsite on my Homepage. So that, when a user comes on my index.html he can see ONE of the newest Images in my Gallery. How can I do this?
Thx July
Quote from: July3 on January 07, 2007, 09:51:50 PM
Ok i tr< to explain it again. :D
At the moment after install the cpmfetch I can see 9 images in the cftest.php
Now i would like to show ONE Image from my Gallery on my Startsite on my Homepage. So that, when a user comes on my index.html he can see ONE of the newest Images in my Gallery. How can I do this?
Thx July
You just request whatever kind you want, and pass it 1 row and 1 column
http://cpmfetch.fistfullofcode.com <- see the quickstart. If you are running 1.6.x it will work for you. The documentation also has examples.
I have create a vorschau.php with the following statements
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
?>
But when i go on www.myurl.de/gallery/cpmfetch/vorschau.php it comes this errors
Warning: main() [function.main]: Unable to access ./cpmfetch/cpmfetch.php in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Warning: main(./cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Warning: main() [function.include]: Failed opening './cpmfetch/cpmfetch.php' for inclusion (include_path='.:/opt/RZphp4/includes') in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Fatal error: Cannot instantiate non-existent class: cpm in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 3
What must i do?
Quote from: July3 on January 08, 2007, 05:05:30 PM
I have create a vorschau.php with the following statements
<?php
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/gallery");
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
?>
But when i go on www.myurl.de/gallery/cpmfetch/vorschau.php it comes this errors
Warning: main() [function.main]: Unable to access ./cpmfetch/cpmfetch.php in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Warning: main(./cpmfetch/cpmfetch.php) [function.main]: failed to open stream: No such file or directory in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Warning: main() [function.include]: Failed opening './cpmfetch/cpmfetch.php' for inclusion (include_path='.:/opt/RZphp4/includes') in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 2
Fatal error: Cannot instantiate non-existent class: cpm in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/vorschau.php on line 3
What must i do?
Its exactly what the errors are telling you. Cannot open ./cpmfetch/cpmfetch.php. If your vorschau.php file is in your cpmfetch folder, and you tell it to include "./cpmfetch/cpmfetch.php"; it is going to look for a directory inside cpmfetch called cpmfetch which is not there.
Try
include "./cpmfetch.php";
Now this Error :(
ERROR: Path to Coppermine incorrect. (/home/strato/www/st/www.myurl.de/htdocs../gallery//include/config.inc.php)
Fatal error: Call to a member function on a non-object in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/cpmfetch.php on line 770
Quote from: July3 on January 08, 2007, 06:43:01 PM
Now this Error :(
ERROR: Path to Coppermine incorrect. (/home/strato/www/st/www.myurl.de/htdocs../gallery//include/config.inc.php)
Fatal error: Call to a member function on a non-object in /mnt/be2/04/984/00000010/htdocs/gallery/cpmfetch/cpmfetch.php on line 770
This is from vorschau.php ?
How did you get two dots in your path to coppermine?
Yes this is the Error when i go to www.myurl.de/gallery/cpmfetch/vorschau.php
I don't know why there are two dots in the path. I have only create the vorschau.php with the statements you can the in my posting from yesterday.
:( :'(
Quote from: July3 on January 09, 2007, 04:09:14 PM
Yes this is the Error when i go to www.myurl.de/gallery/cpmfetch/vorschau.php
I don't know why there are two dots in the path. I have only create the vorschau.php with the statements you can the in my posting from yesterday.
:( :'(
I do not know. I would upgrade to the latest development release 1.9.6. Run the install.php script. Then we can test from there. This is looking like something strange with your web server, and the 1.9.6 will help me figure out what if anything.
I have send you an PM.
Quote from: July3 on January 09, 2007, 06:05:44 PM
I have send you an PM.
Okay, it seems that the install worked and it all looks correct. I would suggest just staying with this version...
Your code would be like this now in your /gallery/cpmfetch/vorschau.php
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
?>
If you put it in the root of your web site, it would need to be like:
<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewRandomMedia(1,1);
$objCpm->cpm_close();
?>
I would not go back to 1.6.4 - this is the way to stay.
Ok, but where can i change the properies like thumbnail size, no border, and that not only showing the same picture?
Quote from: July3 on January 10, 2007, 01:18:10 PM
Ok, but where can i change the properies like thumbnail size, no border, and that not only showing the same picture?
That is all done through the option array... read the documentation that is out now - that part has not changed.
http://www.fistfullofcode.com/projects/copperminefetch/manual/index.html
I do not understand all at the documentation. I create the vorschau.php with the following statements:
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$options = array( 'imagesize' => ' "int" ' , 'imagestyle' => ' img { border: 0; } ');
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>
But the Picture is showing in Fullsize, the Border is still "1" and at a click on the Pic it is loading in the same Window.
I would like to show the Picture in the half size from the size in the Gallery (the original size), no borders and when I click on the Pic the Gallery is it open in a new Window.
Quote from: July3 on January 10, 2007, 10:24:25 PM
I do not understand all at the documentation. I create the vorschau.php with the following statements:
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$options = array( 'imagesize' => ' "int" ' , 'imagestyle' => ' img { border: 0; } ');
$objCpm->cpm_viewRandomMedia(1,1,$options);
$objCpm->cpm_close();
?>
But the Picture is showing in Fullsize, the Border is still "1" and at a click on the Pic it is loading in the same Window.
I would like to show the Picture in the half size from the size in the Gallery (the original size), no borders and when I click on the Pic the Gallery is it open in a new Window.
I assume that there is a language barrier with the documentation.
$options = array( 'imagesize' => ' "int" ' , 'imagestyle' => ' img { border: 0; } ');
What is
' "int" '
?
You have extra quotes there. it should be 'imagesize' => 'int'
That is careless - nothing to do with the documentation.
imagestyle takes a css tag name,
not actual css
I suggest finding someone that can help you with the documentation. I am sorry, but I don't have time to help you right now.
Is there nobody who can help me???
Quote from: July3 on January 15, 2007, 04:01:13 PM
Is there nobody who can help me???
I posted what the problem is above.