Announcement

#1 2011-01-04 06:24:46

lisaviolet
Member
san diego, california
2011-01-03
334

[resolved] Question about the monthly calendar

Over here in the U.S., calendars have Sunday as the first day of the week. How would I have this type of calendar generated instead of the European style with Monday being the first day?

TIA.

Offline

 

#2 2011-01-05 21:04:26

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [resolved] Question about the monthly calendar

I really don't know where to look to fix this, is anyone going to help me with this?  I've looked in every file and have a friend who does websites for a living looking into it and we're not having any luck.

I've looked at

http://www.phpkode.com/source/p/piwigo/ … .class.php

I've looked in the template files, the theme files, I see in the view source where the days are listed out in the calMonth in table form, the days all there nice and neat, but how do I change it to

sunday, monday, tuesday, wednesday, thursday, friday, saturday

from

monday, tuesday, wednesday, thursday,  friday, saturday, sunday

Right now this is my only scream with the script.

Can someone help or are you just ignoring me?

*feeling very sorry for myself*

Last edited by lisaviolet (2011-01-05 21:05:23)

Offline

 

#3 2011-01-05 23:01:34

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [resolved] Question about the monthly calendar

Okay, I'm looking in gallery/include/calendar_monthly.class.php and I've tried changing a couple of things (based on http://keithdevens.com/software/php_calendar), but so far, everything I've modified isn't doing what I want it to do.

Could someone point me in the right direction?

Oh, yes, it's changing stuff..... =0

Offline

 

#4 2011-01-07 18:55:29

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [resolved] Question about the monthly calendar

I will pay someone $50 US to do this for me.

I'll send it via PayPal funds.

Offline

 

#5 2011-01-07 22:16:03

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Question about the monthly calendar

Hi lisaviolet,

open include/calendar_monthly.class.php, line 370, replace:

Code:

$items[$day]['dow'] = $row['dow'];

by

Code:

$items[$day]['dow'] = $row['dow'] + 1;

and line 398, replace:

Code:

array_push( $wday_labels, array_shift($wday_labels) );

by

Code:

// array_push( $wday_labels, array_shift($wday_labels) );

Offline

 

#6 2011-01-07 22:22:08

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [resolved] Question about the monthly calendar

Thank you!  Should I donate to piwigo or you?

Offline

 

#7 2011-01-07 23:43:00

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Question about the monthly calendar

ddtddt notified me about it because he thought I may have the answer. It was before you wrote about the $50. Even without the $50 I would have given the very same answer.

We would gladly accept your donation to the Piwigo Association, but donate because you want to support the project, not because I answered your specific question. Your donation is not mandatory and you can give as much as you want. Feel free :-)

Offline

 

#8 2011-01-08 00:02:26

lisaviolet
Member
san diego, california
2011-01-03
334

Re: [resolved] Question about the monthly calendar

Done. And how about my other question? Changing the default calendar to the posted date, not creation date?

Offline

 

#9 2011-01-12 14:42:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [resolved] Question about the monthly calendar

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact