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
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
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
I will pay someone $50 US to do this for me.
I'll send it via PayPal funds.
Offline
Hi lisaviolet,
open include/calendar_monthly.class.php, line 370, replace:
$items[$day]['dow'] = $row['dow'];
by
$items[$day]['dow'] = $row['dow'] + 1;
and line 398, replace:
array_push( $wday_labels, array_shift($wday_labels) );
by
// array_push( $wday_labels, array_shift($wday_labels) );
Offline
Thank you! Should I donate to piwigo or you?
Offline
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
Done. And how about my other question? Changing the default calendar to the posted date, not creation date?
Offline
Offline