Showing pictures uploaded Showing pictures uploaded
 

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

Showing pictures uploaded

Started by pelicano, May 05, 2007, 11:29:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pelicano

Hi, I am trying to include the option to my visitors to take a view of the pictures uploaded a specific day. I want to put in the homepage a list of the last days, something like that:
25.04.2007
26.04.2007
27.04.2007
28.04.2007
29.04.2007
30.04.2007
and the user should be able to click on the day and get the pictures uploaded that day, from all albums.

I think it should be not difficult to implement but I  don´t know how to do it.

Thank you in advance

Modesto Vasco

pelicano

OK, i have found a solution.

Thank you

Joachim Müller

Posting what you did for the benefit of others might be a good idea.

pelicano

You are right GauGau,

I have found a contribution from nol33t. He used calendar.php to select a day and display the pictures uploaded that day.
As fas as I know, the contribution only works with version 1.3.x.
I tried to implement this solution with version 1.4.10 and it doesn´t work.
So I have installed version 1.3.5 and the whole thing works fine. You can take a look at it:

http://www.lafotograficaband.net/galeria (under construction)

I will write now some php lines in order to generate a table including the last 12 days. The user will be able to select a day a see the pictures uploaded that day using this link:

http://www.lafotograficaband.net/galeria/thumbnails.php?album=datebrowse&date=yyyy-mm-dd

I have tried to use this way of selecting pictures with version 1.4.10 but doesn´t work.
I don´t know if the function datebrowse is not implemented in version 1.4.10. If it where possible to use this function, I would upgrade to version 1.4.10

As I said before, everything works fine. Only when I select a picture:
http://www.lafotograficaband.net/galeria/displayimage.php?album=datebrowse&cat=0&date=2007-05-06&pos=2
I received a message error:
Warning: strtr(): The second argument is not an array. in /home/lafoto87/public_html/galeria/include/functions.inc.php on line 397

This is the code for that line:

// Eval a template (substitute vars with values)
function template_eval(&$template,&$vars)
{
        return strtr($template,$vars);    ****this is line 397 from functions.inc.php
}

If you could help me, I would send you every file or information you need to find out the solution for that error message, or the way to do the same using version 1.4.10

Please, forgive my bad english.

Thank you

Joachim Müller

Quote from: pelicano on May 07, 2007, 01:56:54 AM
So I have installed version 1.3.5 and the whole thing works fine. You can take a look at it:
:o You mustn't do that, under no circumstances. Installing cpg1.3.x is not an option - it has known security issues. It is mandatory to upgrade to cpg1.4.10! After upgrading: post a reference to the thread where you have copied the code from - it should be pretty easy to come up with a ported version for cpg1.4.x.
As suggested: rolling back to cpg1.3.x is not an option.

pelicano

Thank you GauGau

I have done it.

Thanks a lot for your great work.