How can i put on my site front page the Recent Added Albums? How can i put on my site front page the Recent Added Albums?
 

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]

Main Menu

How can i put on my site front page the Recent Added Albums?

Started by ojohn, November 14, 2003, 09:50:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ojohn

How can i put on my site front page the Recent Added Albums?

moorey

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?

ojohn

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.

paularms

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...
[color="blue"]*-=[MoNkEyBuSiNeSs]=-*[/color]

Joachim Müller

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

ojohn

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

Joachim Müller

if you just need to show todays pics and you know some php/mySQL: the basic query is this one: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

Oasis

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

ojohn


Oasis

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:  )
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org

ojohn

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.

hilophilo

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.

Joachim Müller

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

DefenceTalk.com

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.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.defencetalk.com%2Fpictures%2Fsignature_cpg.php&hash=c0098ed5314d39beb9e8799c7c8787a9a0353b45)

Joe Belmaati

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

Joachim Müller

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

GauGau

Joe Belmaati

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

Joachim Müller

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

Joe Belmaati

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!

Joachim Müller

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

GauGau