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] 2 3   Go Down

Author Topic: How can i put on my site front page the Recent Added Albums?  (Read 58966 times)

0 Members and 1 Guest are viewing this topic.

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« on: November 14, 2003, 09:50:31 pm »

How can i put on my site front page the Recent Added Albums?
« Last Edit: January 01, 2005, 10:28:13 pm by GauGau »
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
How can i put on my site front page the Recent Added Albums?
« Reply #1 on: November 14, 2003, 11:22:03 pm »

It's an idea, but at the moment you can't, only with recently added pictures. Not sure how recently added albums can be useful though, since albums are almost "permanent", much like categories. What are your thoughts?
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« Reply #2 on: November 14, 2003, 11:51:31 pm »

Well when i do uploads i put each one in batch of pictures in a Album?

I use it mostly for high school sport pictures.
Logged

paularms

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.monkey-business.biz
How can i put on my site front page the Recent Added Albums?
« Reply #3 on: November 15, 2003, 09:05:39 am »

I would like to be able to put the 'last uploads' on a different page outside of the gallery directory. I think it would be a great little mod if anyone who knows php, mysql, and coppermine well...
Logged
[color="blue"]*-=[MoNkEyBuSiNeSs]=-*[/color]

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #4 on: November 15, 2003, 10:30:59 am »

actually there are three hacks around for this purpose, one made by zarsky, one by gtroll, one by me. All of them are not recommended, as they don't take into account the permission settings of coppermine, but if you don't have private albums at all you're encouraged to use one of them. You'll find my mod in the download section, look for cpg1.1mod_ssi.zip. Zarsky's mod is available here and gtroll's hack here

GauGau
Logged

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« Reply #5 on: November 16, 2003, 11:26:20 pm »

Ok, I did try your SSI.php but i need it to just show the Todays added albums only.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #6 on: November 17, 2003, 12:04:45 am »

if you just need to show todays pics and you know some php/mySQL: the basic query is this one:
Code: [Select]
SELECT * from {$CONFIG['TABLE_PICTURES']} WHERE approved='YES' ORDER BY ctime DESC LIMIT 0,5;Check if they were uploaded today and you're ready to roll.

GauGau
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put on my site front page the Recent Added Albums?
« Reply #7 on: November 17, 2003, 12:10:51 am »

Last updated albums works pretty much like Last added albums....
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« Reply #8 on: November 17, 2003, 03:09:10 am »

How would i do that oasis?
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
How can i put on my site front page the Recent Added Albums?
« Reply #9 on: November 17, 2003, 10:36:16 am »

in the configuration, you know, where you add the "catlist" "alblist" "toprated" etc,
add "lastalb"

Of course, it's not going to appear as normal albums do. It will appear much like the recently added pictures and random pictures. Only one picture will be shown, with the album name and description under it. But that's good enough for me...

However, if by front page, you mean a front page OUTSIDE coppermine, then I misunderstood you, and this is probably not going to work (OK not probably... definitely :lol:  )
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
How can i put on my site front page the Recent Added Albums?
« Reply #10 on: November 17, 2003, 05:53:35 pm »

Yes that what i need it work great but i need it like you said to show out of coppermine. The way it lists it is great i just need it to display out side of coppermine.
Logged

hilophilo

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
How can i put on my site front page the Recent Added Albums?
« Reply #11 on: November 20, 2003, 07:35:08 am »

is there anyway to edit the size of the thumbnail when appearing on your front page for example. I try editing the config file in the gallery itself but that doest work.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #12 on: November 20, 2003, 07:43:15 am »

the config settings (as the foot note says) only applies to the size of newly created thumbs (after submitting the config changes), they won't affect your existing thumbs. You can either resize the thumbs (using "resize pictures" in admin menu) or reduce the width and height parameters of the <img>-tag in html (so the browsers reduces the size for you).

GauGau
Logged

DefenceTalk.com

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 230
    • http://www.defencetalk.com
How can i put on my site front page the Recent Added Albums?
« Reply #13 on: December 03, 2003, 07:11:38 pm »

gaugau's ssi mod has been doing great for me as i don't have any private albums.

www.defencetalk.com < go there and scroll down you should see random images from the gallery along with stats, etc.

If that doesn't work for you... why not use anycontent.php file and include it on your main page? Of course, your main page extension must be .php for you to include any .php files, etc.

Hope that helps.
Logged
(http://www.defencetalk.com/pictures/signature_cpg.php)

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #14 on: December 04, 2003, 10:49:46 am »

Gaugau, your ssi script is exactly what I need for my main welcome page.

Right now I have manually created links and thumbnails, but I am very eager to get the whole thing to work dynamically.

I have followed all the install instructions, but I am getting a couple of errors when I run the example

Can anyone tell me what I am doing wrong? I checked in phpinfo.php, and my absolute path seems to be correct.....
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #15 on: December 04, 2003, 01:51:06 pm »

hm, hard to say what went wrong. What is the absolute path for you?

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #16 on: December 04, 2003, 03:28:02 pm »

If I am understanding the absolute path terminology correctly, the absolute path to ssi is:

/hotel/belmaati/WWW/gallery/ssi.php

Do I need something before the /hotel part..?

When I run phpinfo.php and look at DOCUMENT_ROOT I get this info:
/hotel/belmaati/WWW
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #17 on: December 04, 2003, 07:13:53 pm »

are you really self-hosted (as the path indicates)? If yes, you should know the absolute path (or ask the person who runs your server).

GauGau
Logged

Joe Belmaati

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
    • http://www.belmaati.com
How can i put on my site front page the Recent Added Albums?
« Reply #18 on: December 04, 2003, 07:30:42 pm »

No,
I am hosted by a hosting company. I talked to their support, and they believed that the absolute path is indeed hotel/belmaati/WWW. Maybe you could give me some kind of clue as to what the path might be....?

I can PM you the path to my phpinfo.php file, to show you - if you've got the time...

Thank you very much in advance!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
How can i put on my site front page the Recent Added Albums?
« Reply #19 on: December 05, 2003, 09:14:08 am »

go ahead, pm me the phpinfo url and the top 50 lines of youre ssi.php and example.php

GauGau
Logged
Pages: [1] 2 3   Go Up
 

Page created in 0.04 seconds with 19 queries.