Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Help at cpmfetch 1.6.4  (Read 13847 times)

0 Members and 1 Guest are viewing this topic.

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Help at cpmfetch 1.6.4
« 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #1 on: January 04, 2007, 09:57:27 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"


Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #2 on: January 06, 2007, 01:02:35 am »

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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #3 on: January 06, 2007, 02:07:47 am »

...
I hope you understand what i mean.
...

I don't. sorry
Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #4 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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #5 on: January 08, 2007, 01:34:30 am »

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.

Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #6 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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #7 on: January 08, 2007, 05:55:05 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";





Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #8 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

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #9 on: January 09, 2007, 01:33:09 am »

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?


Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #10 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.

 :( :'(
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #11 on: January 09, 2007, 04:40: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.


Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #12 on: January 09, 2007, 06:05:44 pm »

I have send you an PM.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #13 on: January 10, 2007, 12:40:37 am »

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

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

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





Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #14 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?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #15 on: January 10, 2007, 04:06:58 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

Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #16 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #17 on: January 11, 2007, 12:43:31 am »

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. 


Code: [Select]
$options = array( 'imagesize' => ' "int" ' , 'imagestyle' => ' img { border: 0; } ');
What is
Code: [Select]
' "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.








Logged
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

July3

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 94
Re: Help at cpmfetch 1.6.4
« Reply #18 on: January 15, 2007, 04:01:13 pm »

Is there nobody who can help me???
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: Help at cpmfetch 1.6.4
« Reply #19 on: January 15, 2007, 04:32:12 pm »

Is there nobody who can help me???

I posted what the problem is above.

Logged
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
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 20 queries.