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 ... 4 5 6 7 [8] 9 10 11 12 ... 54   Go Down

Author Topic: CpmFetch 1.4 On... Displaying data and images from CPG on your website  (Read 965863 times)

0 Members and 1 Guest are viewing this topic.

nanno

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #140 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
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
Logged

laetitia2382

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #141 on: August 08, 2005, 11:07:32 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #142 on: August 08, 2005, 11:25:19 pm »

yes. Why don't you just give it a try?
Logged

laetitia2382

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #143 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. ;)
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #144 on: August 09, 2005, 01:46:35 am »

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

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #145 on: August 09, 2005, 01:49:00 am »

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

nanno

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #146 on: August 09, 2005, 09:06:15 am »

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?

Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #147 on: August 09, 2005, 03:02:29 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.

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

tgelston

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.gelstoncafe.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #148 on: August 09, 2005, 10:00:41 pm »

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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #149 on: August 09, 2005, 10:26:00 pm »

Nice work on the Fetch scripts

Thanks


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


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

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

tgelston

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.gelstoncafe.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #150 on: August 09, 2005, 10:39:52 pm »

AH!


Quote
cpm_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
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #151 on: August 09, 2005, 10:43:09 pm »

AH!


Quote
cpm_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?



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

tgelston

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.gelstoncafe.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #152 on: August 09, 2005, 10:49:30 pm »

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #153 on: August 09, 2005, 10:54:22 pm »

Quote
Alright... 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
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

tgelston

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • http://www.gelstoncafe.com
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #154 on: August 09, 2005, 11:01:26 pm »

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

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

Code: [Select]
$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!
   
Logged

stefan2k1

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #155 on: August 12, 2005, 03:24:14 pm »

Hi,

i also cant get this script working. Calling cftest.php i get:
Code: [Select]
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:

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

raeba

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #156 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #157 on: August 13, 2005, 02:20:55 am »

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


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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #158 on: August 13, 2005, 02:27:17 am »

Hi,

i also cant get this script working. Calling cftest.php i get:
Code: [Select]
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:

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

reyn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #159 on: August 13, 2005, 10:00:49 am »

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
Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 54   Go Up
 

Page created in 0.037 seconds with 20 queries.