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

Author Topic: Showing pictures uploaded  (Read 3968 times)

0 Members and 1 Guest are viewing this topic.

pelicano

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • Want to learn Coppermine
    • Soluciones Integrales pelicanitos.net
Showing pictures uploaded
« on: May 05, 2007, 11:29:51 am »

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
« Last Edit: May 06, 2007, 06:42:37 am by GauGau »
Logged

pelicano

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • Want to learn Coppermine
    • Soluciones Integrales pelicanitos.net
Re: Showing pictures uploaded
« Reply #1 on: May 06, 2007, 01:22:59 am »

OK, i have found a solution.

Thank you
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Showing pictures uploaded
« Reply #2 on: May 06, 2007, 06:43:37 am »

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

pelicano

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • Want to learn Coppermine
    • Soluciones Integrales pelicanitos.net
Re: Showing pictures uploaded
« Reply #3 on: May 07, 2007, 01:56:54 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Showing pictures uploaded
« Reply #4 on: May 07, 2007, 07:44:41 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.
Logged

pelicano

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 6
  • Want to learn Coppermine
    • Soluciones Integrales pelicanitos.net
Re: Showing pictures uploaded
« Reply #5 on: May 07, 2007, 03:11:30 pm »

Thank you GauGau

I have done it.

Thanks a lot for your great work.
Logged
Pages: [1]   Go Up
 

Page created in 0.04 seconds with 20 queries.