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

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 8 Guests are viewing this topic.

mark14911

I have a problem using cpmfetch when coppermine is in the web root.
I have copermine 1.4.4 installed, on the webroot.  I have cpmfetch installed in, /cpmfetch/cpmfetch.php.

Here is what I did:
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/");
$objCpm->cpm_viewLastAddedMediaFrom(5,2,"",array('alttag' => '%t','imagewidth' => '75'));
$objCpm->cpm_close();
?>


What happens are broken links when i right click on properties it shows as the address: http://albums/2006/april/4_19_06/thumb_pic2.jpg Its doesn't include the domain name????


Now I have also set this up with coppermine in /video from the web root.  This does work.  Here is my code:
<?php 
include "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("/video");
$objCpm->cpm_viewLastAddedMediaFrom(5,2,"",array('alttag' => '%t','imagewidth' => '75'));
$objCpm->cpm_close();
?>


I don't know why i can't do the same thing when coppermine is in the web root '/' I want to put pics on my template, but it doesn't work.

I searched the forum and couldn't find anything about this?
Thanks In advance!

Jurrie

Hello,

I also have a problem with CPMFetch. (see: http://forum.coppermine-gallery.net/index.php?topic=30628.0)

I installed CPMFetch, it passes al the tests, but I get a warning and no pics are displayed. It says you have to edit the 3 variables in cftest.php (the prefixes), but these prefixes are the standard prefixes of coppermine (did not change that). In Coppermine itself the prefixes work just fine and the ones in cpmfetch.php are the same, but there it doesn't work...

This is the gallery: http://gallery.nederland1940-1945.nl
And this is the testpage: http://gallery.nederland1940-1945.nl/cpmfetch/cftest.php

Hope you can help me out, because I don't get it...

Greetz & thanks in advance..

Jurrie

dolnajs

Hi! Sorry for this post, but I really try to find the answer of my problem, but I cant find it. :(

I have a coppermine photo gallery in http://danny.tctv112.cz/gallery/ and cpmfetch in root of this subdomain http://danny.tctv112.cz/cpmfetch/ but server has maybe some mistake or I dont know where the problem is. :(

See my CPMTEST: http://danny.tctv112.cz/cpmfetch/cftest.php

I know, that "DOCUMENT_ROOT" must be the way on server, not "/htdocs"

Where can I define the way to gallery? :( I dont know PHP scripting, and I really need a little help. :(

Please help me. :( If this problem was posted before, can you give me a link on it, please.

Thanks for your patience and time.

infrenzy

Hi to everybody. Sorry for my bad english but i'm Italian.
I have a problem with coppermine fetch test page.

This is my site www.carnevalari.it
This is the gallery www.carnevalari.it/cpg132/index.php

This is the test page http://www.carnevalari.it/cpg132/cpmfetch/cftest.php

All tests are ok but i can't see thumbnails... Why??? ???

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.carnevalari.it/home/cpg132/cpmfetch/cpmfetch_dao.php on line 710


Please help me! :-\ :'(

Jurrie

Quote from: infrenzy on April 24, 2006, 02:47:18 PM
Hi to everybody. Sorry for my bad english but i'm Italian.
I have a problem with coppermine fetch test page.

This is my site www.carnevalari.it
This is the gallery www.carnevalari.it/cpg132/index.php

This is the test page http://www.carnevalari.it/cpg132/cpmfetch/cftest.php

All tests are ok but i can't see thumbnails... Why??? ???

Unknown column 'u.user_website' in 'field list'
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.carnevalari.it/home/cpg132/cpmfetch/cpmfetch_dao.php on line 710


Please help me! :-\ :'(

Strange! This is the same error I have! (see 2 posts above...). I didn't change the prefixes or something....

By the way: I deleted the old database, made a new database + fresh installation of Coppermine + CPMFetch, and still I get the same error ???

Please help...us ;)

Greetz,

Jurrie

Nibbler

Read the thread and the instructions, this has been asked and answered countless times already.

Jurrie

Quote from: Nibbler on April 24, 2006, 06:13:59 PM
Read the thread and the instructions, this has been asked and answered countless times already.
Ok, it is 40 pages long, but I will take a look. Thanks

Jurrie

Jurrie

Quote from: Nibbler on April 24, 2006, 06:13:59 PM
Read the thread and the instructions, this has been asked and answered countless times already.

Installed Coppermine 1.4.5 & CPMFetch 1.6.2. I've tried to comment/uncomment those lines. And it "works"...........a bit.

See this link: http://gallery.nederland1940-1945.nl/cpmfetch/cftest.php

There is one picture in the gallery, but it is not displayed. Has this got to do anything with this code-fixing or is there another problem?

Greetz,

Jurrie

vuud

Quote from: Nibbler on April 24, 2006, 06:13:59 PM
Read the thread and the instructions, this has been asked and answered countless times already.

Not to mention the readme file that came with the download.


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

Jurrie

Quote from: vuud on April 25, 2006, 05:46:52 AM
Not to mention the readme file that came with the download.




Yes, I read the forum & the release notes, and there I could find it (stupid I didn't look there, sorry for that)...Is the problem I have right now also to find in the readme / somewhere else? I couldn't find it .... yet ;).

Greetz & thanks so far :)

Jurrie





infrenzy

Quote from: Nibbler on April 24, 2006, 06:13:59 PM
Read the thread and the instructions, this has been asked and answered countless times already.

Can you tell at what page of the thread or give me a link.
I cant' read 40 pages in english, i will read for a week.
Please someone help me

energy0m



yacenty

Hello, I'm founder of www.agrofoto.pl

I would like to present top 3 best rated and 3 top most viewed photos,
cpg is in gallery directory

CPG is 1.4.4 version - is it possible to use cpm to get this photos with links?

Could somebody tell me how can I get this pics?

best regards,
YacentY

energy0m

ok so first some info .....

np!

now i have a question of my own that i hope someone here can be as generous with help .... i need help creating the syntax of a specific call to cpmfetch ... heres some bkg info first as per thsi threads moderator's request in his first post to this thread ... 

cpm version: 1.4.5
http://www.highpointcivic.com/photos/
intermediate user
apache, linux, php .... heres a phpinfo page i just put up ... http://www.highpointcivic.com/info.php

ok so what i would like to do is display the thumbnail of the most recently added album and that albums descriotion as well as the date added ...
what code syntax would i use ?
... i thought about using:
cpm_viewLastAddedMediaFromAlbum
but that just returns a specific album's picz .....
how would i specify the most recently added album thumbnail and its info(date and description)
similar how i have the layout setup on the bottom left of this page : http://www.highpointcivic.com

your help is most appreciated ;)


oh also .. how come i can't post new threads to: "Mods: CPMFetch >" i can only reply in threads .... ??

Zombie Lady

I skimmed through this thread..and did not find a request like this.  I run a gallery centered around it's users.  So I was wondering if there's a way I can show the newest user and their picture?  I would really like it to be in this format:

{image here}
{Username with link to their personal gallery} joined on {date}

You would really make my week if you or someone could make that possible to do. :D

-------------------

Also..I just wanted to let people who use CPMFetch know how they could include many different php includes.  Through iframes! :)  I mean..it's pretty a no-duh thing.  But you would have to create a .php file for each different type of inclusion you want.  For example I want to show the newest picture, random picture, and highest rated picture.  So, I will create three php files, one for each type of inclusion.  Then, on the main page I would then follow this layout:

Newest photo
{iframe with proper width and height, linked to the newest photo php document}

Random photo
{same as above, but linked to the random photo php document}

etc.  Make sure on the php document you make it match your layout (background-wise) or it would look funky.

If this idea was already discussed, just let me know and I'll take it off this post. Hehe.  But if not...it's just an idea I am using.  ^_^

vuud

Quote from: Zombie Lady on May 11, 2006, 05:50:27 PM
I skimmed through this thread..and did not find a request like this.  I run a gallery centered around it's users.  So I was wondering if there's a way I can show the newest user and their picture?  I would really like it to be in this format:

{image here}
{Username with link to their personal gallery} joined on {date}

You would really make my week if you or someone could make that possible to do. :D

-------------------

Also..I just wanted to let people who use CPMFetch know how they could include many different php includes.  Through iframes! :)  I mean..it's pretty a no-duh thing.  But you would have to create a .php file for each different type of inclusion you want.  For example I want to show the newest picture, random picture, and highest rated picture.  So, I will create three php files, one for each type of inclusion.  Then, on the main page I would then follow this layout:

Newest photo
{iframe with proper width and height, linked to the newest photo php document}

Random photo
{same as above, but linked to the random photo php document}

etc.  Make sure on the php document you make it match your layout (background-wise) or it would look funky.

If this idea was already discussed, just let me know and I'll take it off this post. Hehe.  But if not...it's just an idea I am using.  ^_^

iframes sound intresting... but why couldn't you just include them all on the same page without doing the extra php includes and such?

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

energy0m


vuud

Quote from: energy0m on May 11, 2006, 04:53:42 PM
ok so what i would like to do is display the thumbnail of the most recently added album and that albums descriotion as well as the date added ...
what code syntax would i use ?
... i thought about using:
cpm_viewLastAddedMediaFromAlbum
but that just returns a specific album's picz .....
how would i specify the most recently added album thumbnail and its info(date and description)
similar how i have the layout setup on the bottom left of this page : http://www.highpointcivic.com

I do not think cpg tracks the creation time of albums.  Now that I am thinking of it you can probably do something and count on the album number being in sequence and that they don't recycle old numbers.   That would all be some custom code to do.  And then I take it you want to get the preset thumbnail for the album and stuff... 

I am not sure there are any calls in cpmfetch that would help you with that sort of thing.  I've just never added a call to go after that sort of data.

I added two new calls to my wish list for getting last added albums and getting the album info.

Quote from: energy0m on May 11, 2006, 04:53:42 PM
oh also .. how come i can't post new threads to: "Mods: CPMFetch >" i can only reply in threads .... ??

Because that level should not get polluted by new topics.  This one will be closed in a few weeks and a new one added to support the next version of cpmfetch. 

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

Zombie Lady

Quote from: vuud on May 11, 2006, 10:43:26 PM
iframes sound intresting... but why couldn't you just include them all on the same page without doing the extra php includes and such?

I wanted to be able to put text setting the different images apart.  Letting people know that one picture is the newest, and the other is top rated.  I'm real uptight about my website organization. Hehe.

EDIT // Also!  I just ran into a problem with the iframe thing. XD  When you click on the pictures...it opens the gallery site into the iframe.  Heheh...so is there a way to make the link open in a new window instead of that iframe? o_o