Advanced search  

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

Pages: [1]   Go Down

Author Topic: Display latest Coppermine albums on webpage  (Read 2974 times)

0 Members and 1 Guest are viewing this topic.

jmmc

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Display latest Coppermine albums on webpage
« on: October 08, 2013, 09:22:27 pm »

Hey, I was wondering if anyone can help me how to display the latest Coppermine albums on my website's actual homepage (not the gallery)?
I know how to put the "latest images" up with cpmfetch but not the albums which is what I needed :(

Kinda like this please: http://i.imgur.com/muFII3L.png

Thanks so much in advance!!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Display latest Coppermine albums on webpage
« Reply #1 on: October 08, 2013, 10:09:52 pm »

Sadly Vuud the developer of CPMFetch has been away for a long time now but that is the tool you want - http://forum.coppermine-gallery.net/index.php/board,87.0.html

You will need to search around for the modifications to get it to work with CPG1.5 but it is quite a small code change to get the basic functionality up and running. 
Logged
It is a mistake to think you can solve any major problems just with potatoes.

jmmc

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Re: Display latest Coppermine albums on webpage
« Reply #2 on: October 08, 2013, 11:10:31 pm »

Sadly Vuud the developer of CPMFetch has been away for a long time now but that is the tool you want - http://forum.coppermine-gallery.net/index.php/board,87.0.html

You will need to search around for the modifications to get it to work with CPG1.5 but it is quite a small code change to get the basic functionality up and running.

Thanks but do you know if a code displaying the albums like the image I posted is already available somewhere on the cpmFetch subforum? I searched the forum and couldn't find :(
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Display latest Coppermine albums on webpage
« Reply #3 on: October 09, 2013, 11:21:59 am »

I've not had much experience of CPMFetch but what you are looking for is definitely possible with it. You will just need to research it a bit.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Display latest Coppermine albums on webpage
« Reply #4 on: November 18, 2013, 01:00:03 pm »

Have you had any luck with this?
Cpmfetch should be able to provide the latest album thumbnails with some mods (start with cfig_random... and make it not so random to return thumbnail image for the newest - or minus 1, 2, etc - album) but since it is invoked in an image tag on the webpage you are displaying the photos on, getting the matching album title/comments can be a challenge within cpmfetch.
My thought would be that the same/similar code would need to run outside cpmfetch to retrieve matching info... And if doing that, it could just necessarily generate the image html as well.

Would be interested in what you came/come up with.
Thanks,
Greg

Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Display latest Coppermine albums on webpage
« Reply #5 on: November 20, 2013, 12:40:12 am »

http://web.archive.org/web/20100209060406/http://cpmfetch.fistfullofcode.com/docs/index.php

The WayBack Machine still has the docs up. It uses frames though so there are redirect issues, atleast for me.
You can direct link to each topic though:
http://web.archive.org/web/20081120215927/http://cpmfetch.fistfullofcode.com/docs/stable_basic/cpmfetch/tutorial_cpmfetch.pkg.html
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Display latest Coppermine albums on webpage
« Reply #6 on: November 20, 2013, 02:04:22 pm »

Jeff,
Thanks for the link... Got me looking a little - and Vuud packaged his doc with the mod... I had looked in the V2.1.1 dev version I have, and the doc folder was empty... but after starting to read the link you provided, it said the doc was included... Went to the 2.0.0 package and it was all there.
I loaded it to my gallery at http://gallery.gmcdesign.com/cpmfetch/docs/basic - but of course anyone could do the same.
All the frames and links work fine for me here.

My use of cpmfetch has mostly been accessing from other domains (pull pictures from a common gallery for various sites - or from other galleries to 'preview') - limiting me to the use of img tags and the cfig_random script and variations. I had forgotten what else it could do when used in same domain.
Time to learn some more about it...  :D

Thanks!
Greg
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.