Display latest Coppermine albums on webpage Display latest Coppermine albums on webpage
 

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

Display latest Coppermine albums on webpage

Started by jmmc, October 08, 2013, 09:22:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmmc

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

phill104

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. 
It is a mistake to think you can solve any major problems just with potatoes.

jmmc

Quote from: Phill Luckhurst 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.

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

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.

gmc

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

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

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
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

gmc

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
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money