CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 8 CpmFetch 1.4 On... Displaying data and images from CPG on your website - Page 8
 

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

CpmFetch 1.4 On... Displaying data and images from CPG on your website

Started by vuud, July 08, 2005, 06:43:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nanno

I'm trying to get cpmfetch working but don't seem to get to view the thumbnails when trying cftest
...........
Tests:
5   You set your partial URL to /coppermine   PASS
10   No dots in partial url   PASS
15   coppermine.php found   PASS
20   coppermine_dao.php has been removed   PASS
25   cpmfetch.php found   PASS
30   cpmfetch_dao.php found   PASS
35   Server OS = Linux mali.sslcatacombnetworking.com 2.4.21-15.0.3.EL #1 Tue Jun 29 18:17:52 EDT 2004 i686   INFO
40   WebServer = Apache   INFO
45   PHP Version = 4.3.10   INFO
55   DOCUMENT_ROOT: /home/knobben/public_html   INFO
60   C_DOCUMENT_ROOT: Not found   INFO
65   doc_root: Not found (IIS Servers only)   INFO
70   SCRIPT_FILENAME: /home/knobben/public_html/cpmfetch/cftest.php   INFO
75   DOCUMENT_ROOT is a good match   PASS
80   Found CPG config file   PASS

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery
Error in getImageTouse: Extension (strtolower): .jpg File:/home/knobben/public_html/coppermine//albums/miami2003/thumb_117-1783_STG.JPG
Error in getImageTouse: Extension (strtolower): .jpg File:/home/knobben/public_html/coppermine//albums/miami2003/thumb_120-2031_IMG.JPG
..........

My pictures are in another directory and
the path should be something like File:/home/knobben/public_html/fotoalbums/miami2003/thumb_120-2031_IMG.JPG

where can I find (and change) these settings?

greetings, Nanno

laetitia2382

I have just discovered Coppermine Fetch. I read that it could display random photo and latest photo but can it display all the photo of an album?

I am doing a website for an association. In this website, all members of the association will havehis own page. And, in this page, I will describe first the member and after I want to add his album on the page. The album will be created first in the coppermine gallery.
So can comfetch do this?

Joachim Müller


laetitia2382

It's a little bit complicated because I am using Mambo. I need first to integrate coppermine with mambo and after i need to use a module to integrate the php code. That's why I need to know that cpmfetch do exactly what I want. But if you tell me that I can integrate an album in a page with cpmfetch, I will try. ;)

vuud

Quote from: nanno on August 08, 2005, 09:51:46 PM
I'm trying to get cpmfetch working but don't seem to get to view the thumbnails when trying cftest
...........
Tests:
5   You set your partial URL to /coppermine   PASS

My pictures are in another directory and
the path should be something like File:/home/knobben/public_html/fotoalbums/miami2003/thumb_120-2031_IMG.JPG

Edit the top of the cpmtest file and look for the line that says to change it to your directory.
Change it to /fotoalbums

The instructions are also online at: http://www.fistfullofcode.com/projects/copperminefetch/manual/ch04s02.html

If you are interested in that sort of thing

;)
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

vuud

Quote from: laetitia2382 on August 08, 2005, 11:51:27 PM
It's a little bit complicated because I am using Mambo. I need first to integrate coppermine with mambo and after i need to use a module to integrate the php code. That's why I need to know that cpmfetch do exactly what I want. But if you tell me that I can integrate an album in a page with cpmfetch, I will try. ;)

Well, you can ask for photos from an album and specify a certain amount.  If you ask for too much it will only give you what is there.

Examples of what it can do are on the web site... see examples under

http://www.fistfullofcode.com/projects/copperminefetch/docs.php
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

nanno

Quote from: vuud on August 09, 2005, 01:46:35 AM
Quote from: nanno on August 08, 2005, 09:51:46 PM
I'm trying to get cpmfetch working but don't seem to get to view the thumbnails when trying cftest
...........
Tests:
5   You set your partial URL to /coppermine   PASS

My pictures are in another directory and
the path should be something like File:/home/knobben/public_html/fotoalbums/miami2003/thumb_120-2031_IMG.JPG

Edit the top of the cpmtest file and look for the line that says to change it to your directory.
Change it to /fotoalbums

The instructions are also online at: http://www.fistfullofcode.com/projects/copperminefetch/manual/ch04s02.html

If you are interested in that sort of thing

;)


when i change the cftest file that way and then after running it 
(http://www.knobben.net/cpmfetch/cftest.php)
i see

----

80 CPG Config file not found: /home/knobben/public_html/fotoalbums/include/config.inc.php FAIL

----

my cpg installation is in /home/knobben/public_html/coppermine
and my pictures are stored in /home/knobben/public_html/fotoalbums

do I need to move the pictures to /home/knobben/public_html/coppermine/fotoalbums to get cpmfetch working?
or do i have other options?


vuud

Quote from: nanno on August 09, 2005, 09:06:15 AM
Quote from: vuud on August 09, 2005, 01:46:35 AM
Quote from: nanno on August 08, 2005, 09:51:46 PM
I'm trying to get cpmfetch working but don't seem to get to view the thumbnails when trying cftest
...........
Tests:
5   You set your partial URL to /coppermine   PASS

My pictures are in another directory and
the path should be something like File:/home/knobben/public_html/fotoalbums/miami2003/thumb_120-2031_IMG.JPG

Edit the top of the cpmtest file and look for the line that says to change it to your directory.
Change it to /fotoalbums

The instructions are also online at: http://www.fistfullofcode.com/projects/copperminefetch/manual/ch04s02.html

If you are interested in that sort of thing

;)


when i change the cftest file that way and then after running it
(http://www.knobben.net/cpmfetch/cftest.php)
i see

----

80 CPG Config file not found: /home/knobben/public_html/fotoalbums/include/config.inc.php FAIL

----

my cpg installation is in /home/knobben/public_html/coppermine
and my pictures are stored in /home/knobben/public_html/fotoalbums

do I need to move the pictures to /home/knobben/public_html/coppermine/fotoalbums to get cpmfetch working?
or do i have other options?



Ohhhhhhh, my bad.  I did not know you could put photos outside of the cpg folder.  Dang.  Just waking up here, check back later... I will figure something out.

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

tgelston

Nice work on the Fetch scripts



Two questions-



How can I select a precise image from an album. I have an album of 180 pics from my latest trip - I have a 5 page journal that I want to pull in 5-10 photos on each page that correspond to the journal info. I could do this manually but I would rather use yoru script.



How can I disable the tables.   I would like just the image and link to be returned.



Thanks,

Tobias

vuud

Quote from: tgelston on August 09, 2005, 10:00:41 PM
Nice work on the Fetch scripts

Thanks


Quote from: tgelston on August 09, 2005, 10:00:41 PM
How can I select a precise image from an album. I have an album of 180 pics from my latest trip - I have a 5 page journal that I want to pull in 5-10 photos on each page that correspond to the journal info. I could do this manually but I would rather use yoru script.

There is a function you can call that will allow you to call a photo by PID (Photo ID Number)  See the docs here:

cpm_viewMediaByPid at

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch07s03.html


Quote from: tgelston on August 09, 2005, 10:00:41 PM
How can I disable the tables.   I would like just the image and link to be returned.

You would have to code a bit of php on your end, but you can use cpmfetch to get the filename and the link and put it together.

Here are some examples of extending it...

http://cpmfetch.fistfullofcode.com/php-lib/showexternal.php?url=http://www.fistfullofcode.com/projects/copperminefetch/tests/index.php

Let me know if you find an easy way to get the PID for an image :)

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

tgelston

AH!


Quotecpm_viewMediaByPid at

I had tried that earlier today and it didn't seem to work.  User error I guess because it just worked fine! Thanks!


Quote
You would have to code a bit of php on your end, but you can use cpmfetch to get the filename and the link and put it together.

Here are some examples of extending it...

http://cpmfetch.fistfullofcode.com/php-lib/showexternal.php?url=http://www.fistfullofcode.com/projects/copperminefetch/tests/index.php

Hmm - Don't know enough PHP to do this.  I checked out the link but did not see anything directly applicable to my question. 

I appreciate your help.

Thanks,
Tobias

vuud

Quote from: tgelston on August 09, 2005, 10:39:52 PM
AH!


Quotecpm_viewMediaByPid at

I had tried that earlier today and it didn't seem to work.  User error I guess because it just worked fine! Thanks!


Quote
You would have to code a bit of php on your end, but you can use cpmfetch to get the filename and the link and put it together.

Here are some examples of extending it...

http://cpmfetch.fistfullofcode.com/php-lib/showexternal.php?url=http://www.fistfullofcode.com/projects/copperminefetch/tests/index.php

Hmm - Don't know enough PHP to do this.  I checked out the link but did not see anything directly applicable to my question. 

I appreciate your help.

Thanks,
Tobias


Alright... what do you want to do?  Just make that one image that you get by PID show up without using a table?



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

tgelston

QuoteAlright... what do you want to do?  Just make that one image that you get by PID show up without using a table?


Yes.   And a followup question using the array info I would like this to open in a new browser? That looks possible correct?


Thanks Again

vuud

Quote from: tgelston on August 09, 2005, 10:49:30 PM
QuoteAlright... what do you want to do?  Just make that one image that you get by PID show up without using a table?


Yes.   And a followup question using the array info I would like this to open in a new browser? That looks possible correct?


Thanks Again

Yeah its easy enough.  Is there a reason why you can't just have the table stuck in?  You can set whatever alignment tags you want on it...  Just wondering before I code.

Will try to whack it out later
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

tgelston

QuoteYeah its easy enough.  Is there a reason why you can't just have the table stuck in?  You can set whatever alignment tags you want on it...  Just wondering before I code.

Here is what I have that I am really liking right now

$options = array( 'alttag' => '%t || %S KB' , "tablestyle" => "cssfortables", imagelink => "large", windowtarget => "_blank"  );
$objCpm->cpm_viewMediaByPid(2173,$options);


Don't worry about the table thing. .  I am a little anti table but I am fine with using them - the trade off is more than fair.

Thanks!
   

stefan2k1

Hi,

i also cant get this script working. Calling cftest.php i get:

PASS
10 No dots in partial url PASS
15 coppermine.php found PASS
20 coppermine_dao.php has been removed PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Linux server1.serverspace.info 2.4.27 #2 Thu Nov 25 11:59:27 CET 2004 i686 INFO
40 WebServer = Apache/1.3.29 (Debian GNU/Linux) PHP/4.4.0-0.dotdeb.0 mod_ssl/2.8.16 OpenSSL/0.9.7c mod_perl/1.29 INFO
45 PHP Version = 4.4.0-0.dotdeb.0 INFO
55 DOCUMENT_ROOT: /home/harrydbx/www.myforum.com INFO
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/harrydbx/www.myforum.com/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is a good match PASS
80 Found CPG config file PASS

But i dont see any thumbnails. I dont get a error message...

All i see is:

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery



If you do not see thumbnails, or get more warnings then something is pretty wrong. As long as you are using standard prefixes in Coppermine, you should see everything. If you are not using standard prefixes, then you need to adjust them by editing the first three variables in the cpmfetch.php file.

If everything looks good, and you get everything else working, I'd recomment removing this file, or making it non-executable. No need to allow access into a phpinfo tag if you dont have to.
For further help and in general more information, please see the help pages for CoppermineFetch.


Any hints what could be wrong here ?

Thanks
Stefan

raeba

How do I get cpmfetch to show the actual title of the photo, rather than the filename upon mouseover?

Thanks.

vuud

Quote from: raeba on August 12, 2005, 09:25:43 PM
How do I get cpmfetch to show the actual title of the photo, rather than the filename upon mouseover?

Thanks.


The available placeholders are here and the settings you need

http://www.fistfullofcode.com/projects/copperminefetch/manual/ch06s03.html

I think you are looking for the ALTTAG setting, since thats what most browsers key in on


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

vuud

Quote from: stefan2k1 on August 12, 2005, 03:24:14 PM
Hi,

i also cant get this script working. Calling cftest.php i get:

PASS
10 No dots in partial url PASS
15 coppermine.php found PASS
20 coppermine_dao.php has been removed PASS
25 cpmfetch.php found PASS
30 cpmfetch_dao.php found PASS
35 Server OS = Linux server1.serverspace.info 2.4.27 #2 Thu Nov 25 11:59:27 CET 2004 i686 INFO
40 WebServer = Apache/1.3.29 (Debian GNU/Linux) PHP/4.4.0-0.dotdeb.0 mod_ssl/2.8.16 OpenSSL/0.9.7c mod_perl/1.29 INFO
45 PHP Version = 4.4.0-0.dotdeb.0 INFO
55 DOCUMENT_ROOT: /home/harrydbx/www.myforum.com INFO
60 C_DOCUMENT_ROOT: Not found INFO
65 doc_root: Not found (IIS Servers only) INFO
70 SCRIPT_FILENAME: /home/harrydbx/www.myforum.com/cpmfetch/cftest.php INFO
75 DOCUMENT_ROOT is a good match PASS
80 Found CPG config file PASS

But i dont see any thumbnails. I dont get a error message...

All i see is:

Trying to display some images:

Your installation seems correct so far, you should see a small grid of thumbnails from your gallery



If you do not see thumbnails, or get more warnings then something is pretty wrong. As long as you are using standard prefixes in Coppermine, you should see everything. If you are not using standard prefixes, then you need to adjust them by editing the first three variables in the cpmfetch.php file.

If everything looks good, and you get everything else working, I'd recomment removing this file, or making it non-executable. No need to allow access into a phpinfo tag if you dont have to.
For further help and in general more information, please see the help pages for CoppermineFetch.


Any hints what could be wrong here ?

Thanks
Stefan

Can you post or PM me the link to the cftest.php file?

Thanks

Vuud
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

reyn

It would be nice to have a thread where sites using CpmFetch could show their ideas.
Not having much artistic flair myself  I would like to evaluate the talent of others
and maybe appropriate some for myself.  ::)

Frank