Hi!
I'd like to get something running like a "picture of the day". I am pretty much a newbie to Drupal and have the i18n thing going as I wanted it to (running a dual language site with dual lang content in german + english). Everything is running good so far. What I need is a way to get an automated POTD going. I got like 200 pictures in different sizes and formats. I'd like to have a (say 200x150 px) thumbnail with a caption right beside the left-sidebar (where normally the mission woudl appear). If you click the thumb, a page with the full size image should appear (ideally where users can post comments) and a list of the recent POTD. Automatic Resizing is not really necessary - I could do that with a batch-convert tool. I have gallery2 running on the server as well but ATM I doubt it would make sense to utilize it for this. Anyways: About 3 people should be able to maintain this. Ideally a possibilty to re-schedule this or even an automated rolling would be sensible. I thought about a number that increases when entering new articles (as in POTDs with a caption)...
Is there something like this? I tried searching but was not successful.
Got Drupal 5.7 running...
Thanks in advance!
Hope my explanation makes sense.
Comments
Previous comments
Someone else asked this some time ago (in 2005), there might be some clues there. See "Is there a picture of the day script?"
Not really, no. Saw that one
Not really, no.
Saw that one but really hoped there would be something decent. Hopefully someone else has got another idea.
Thank you very much for looking and replying anyways!
ejournal?
I wonder if something like ejournal http://drupal.org/project/ejournal would work?
~silverwing - thinking aloud here...
___________________________
MisguidedThoughts | showcaseCMS
You could use nodequeue, and
You could use nodequeue, and load up the queue with future POTDs.
Then your problem is just to find a way to schedule removal of the first picture from the queue each day...
Or with the nodequeue, create a custom view filter that turns the current date into a day number, and filters to give you just the picture for that day (eg January 3 = 3, so return only picture #3 from the queue).
The same filter with a greater than or less than condition would give you the archive (for users) or the forward list (for admins).
interesting
even tho I don't really understand what you are talking about (I assume I'm just too newb yet) this sounds interesting. I have NO clue about views. I just know I installed it. I am off until monday but will have a further look into it. If it would be possible for you (or anybody else) to get a bit more into detail about this - that would be really appreciated.
kind regards from northwest german from Manchester UK :)
What I'm talking about would
What I'm talking about would involve a bit of coding. Essentially, you'd need to make a custom module which would have a hook for Views that implements a custom filter. (there's docs on the API in the handbooks). This would take the current date, get the week, and use that to return one node from the nodequeue. I can't rememeber what the filtering options are with nodequeue, if any, though.
Really though, you'd think someone would have done a (node) of the (day/week) module, as it's a common requirement, surely.
I'll install the nodequeue
I'll install the nodequeue and see if I can get an idea. I have done some PHP programming and have made amendments and tweaks to my forums already for years but still: Drupal ist a new thing to me.
So if there is anyone who'd be willing to help out, I'd really appreciate it.
Turns out nodequeue has
Turns out nodequeue has filters for queue position.
It's a shame they're not also there as arguments, as then you could just use php block code to turn the current week into an argument for an embedded view...
But the existing filter can probably be adapted...
Try something like this, in a custom module.
Based on the filter in the nodequeue module.
Completely untested, and I have no idea if Views will tolerate more stuff being added to a table it already knows about...
someotherfunctionyouneedtowrite then needs to take the current date (I think PHP even can return the week of the year), and turn that into whatever views needs...
Good luck :)
It can be done
I have done it for one of my client site.It is still in development stages so I cant,t give u the link.
But I can give u some advice.
I made it using cron.The cron would change everyday and when all the images r shown the cron resets the image counter to the first image.
So u can add as many images to the site.
You can also overide it by creating an admin interface.
JUNED KAZI
junedkazi@gmail.com
There's
There's http://drupal.org/project/daily
It also occurs to me that if you wanted a random picture each day, all you'd need is an API in nodequeue that randomly fills the queue from the eligible nodes.
Show that queue with a view, and write a small module that implements the cron hook to fire the API whenever needed.
A solution using Gallerix
Hey, I've been looking on the net for a Picture of the day solution myself.
I'm a programmer, but never touched PHP or Mysql until I realized I'm going to have to solve this one myself.
Today I managed to somwhat get this going. I converted the Gallerix Module "Random Pictures" block to a POTD block by adding a "front_date" field the gallery_images on mysql, comparing all image's front_date to today's date, if it's equal, then display the image, otherwise, select an image by random (same functionality as the original block), plus set the front_date field to today's date.
I'm displaying only one picture of the day but it should work for more than one, just like how random pictures can show more than one.
I've still got a few things I'd like to fix before I post any code, the code needs to be cleaned, and I want to wait a couple of days to see that it's actually working.
But if you don't mind incorporating code by a complete beginner in PHP, I'll gladly share what I have, feel free to contact me.