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 ... 36 37 38 39 [40] 41 42 43 44 ... 54   Go Down

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

0 Members and 15 Guests are viewing this topic.

mark14911

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #780 on: April 19, 2006, 08:19:42 pm »

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

Jurrie

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #781 on: April 21, 2006, 06:49:09 pm »

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
Logged

dolnajs

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #782 on: April 21, 2006, 10:30:14 pm »

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

infrenzy

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

Jurrie

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #784 on: April 24, 2006, 05:52:35 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
Logged

Nibbler

  • Guest
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #785 on: April 24, 2006, 06:13:59 pm »

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

Jurrie

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #786 on: April 24, 2006, 09:03:12 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
Logged

Jurrie

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #787 on: April 24, 2006, 09:58:51 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
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 #788 on: April 25, 2006, 05:46:52 am »

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.


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

Jurrie

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #789 on: April 25, 2006, 09:03:29 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




Logged

infrenzy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: CpmFetch 1.4 On... Displaying data and images from CPG on your website
« Reply #790 on: April 25, 2006, 11:30:11 am »

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
Logged

energy0m

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • saving the world one byte at a time
Logged

infrenzy

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Logged

yacenty

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73

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
Logged

energy0m

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • saving the world one byte at a time

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 .... ??
« Last Edit: May 11, 2006, 05:22:48 pm by energy0m »
Logged

Zombie Lady

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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?

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

energy0m

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • saving the world one byte at a time

anyone have any ideas bout my post?
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code

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.

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. 

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

Zombie Lady

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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
« Last Edit: May 12, 2006, 09:46:00 pm by Zombie Lady »
Logged
Pages: 1 ... 36 37 38 39 [40] 41 42 43 44 ... 54   Go Up
 

Page created in 0.029 seconds with 20 queries.