61
Reintjan
Date selection form
  • 2008/3/6 10:23

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


When the class XoopsFormTextDateSelect is used in modules for selecting date (of news publishing for instance...) the date is filled in the form as year-month-day....

I'm in the Netherlands and we use day-month-year format. I also defined this in global.php for displaying date in the correct way.

Now the problem, in formtextdateselect.php in the class\xoopsform folder the date format is hardcoded as Y-m-d instead of using date as language variable.

The same is the case in calendarjs.php in the include folder. Date format is hardcoded to y-mm-dd

Please correct this in the next version of XOOPS so that date in the selectionform is dsplayed as defined in global.php

Thanks
Be smart, stay smart. Stay one step ahead...



62
Reintjan
Re: Help needed changing calendarscript
  • 2008/3/6 10:12

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Ok, I did find the problem... Going to close this topic because it's in the XOOPS core and report it as a bug!

See this topic:

Click here
Be smart, stay smart. Stay one step ahead...



63
Reintjan
Re: Help needed changing calendarscript
  • 2008/3/4 15:23

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Thanks for your answer John....

But this doesn't solve the case.... The calendar date selector still comes up with year - month - day (see also screenprint....) Whatever variable I change....

It must be somewhere in the javascript.... But I don't know where....

Anyone, please....
Be smart, stay smart. Stay one step ahead...



64
Reintjan
Re: Parse error - help!!
  • 2008/2/14 8:37

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


When does this error occur? Before or after installation of Xoops? Or after installation of a module or activating a module block?
Be smart, stay smart. Stay one step ahead...



65
Reintjan
Re: Help needed changing calendarscript
  • 2008/2/12 9:44

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Thanks for your replies, still the same problem. I set the date in global.php and in news module preferences to display day-month-year (4 digits...) still the date selector comes up with year-month-day. This must be a problem of calendar.js it can't be anything else....

I hope someone knows how to solve this....
Be smart, stay smart. Stay one step ahead...



66
Reintjan
Re: Help needed changing calendarscript
  • 2008/2/11 13:09

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Anyone?
Be smart, stay smart. Stay one step ahead...



67
Reintjan
Re: Help needed changing calendarscript
  • 2008/2/7 11:13

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


It's not in global.php It has something to do with calendar.js script not rendering correct when calendarjs.php date is modified. When I change dateformat from y-mm-dd to dd-mm-y the calendar comes up whith july 2000 instead of februari 2008.

This is a problem posting news and setting date of publish, but it's in all modules using calendar.js for selecting a date.

See also example:

Click here for example...
Be smart, stay smart. Stay one step ahead...



68
Reintjan
Help needed changing calendarscript
  • 2008/2/5 15:26

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


When a module uses the calendarscript included in XOOPS the date is displayed as year, month, day.

For instance the news module uses this, you can select a date for publishing and date is displayed as told above.

Now I changed in calendarjs.php the following lines:

// date formats

Calendar._TT["DEF_DATE_FORMAT"] = "y-mm-dd";

Calendar._TT["TT_DATE_FORMAT"] = "y-mm-dd";


I changed these lines to y-dd-mm and this results in display of date to 2008-05-02 instead of standard 2008-02-05

But now the problem, by doing this the calendarscript now comes up with the month 05 instead of 02 so you have to scroll back 3 months. I thought if I change date display then the script would pick up properly.

Anyone konws how to solve this?
Be smart, stay smart. Stay one step ahead...



69
Reintjan
Re: Disable a module
  • 2008/1/23 17:04

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Glad this worked.... I had the same problem a while ago... Maybe i make this a topic in the FAQ
Be smart, stay smart. Stay one step ahead...



70
Reintjan
Re: Disable a module
  • 2008/1/23 16:51

  • Reintjan

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/3/17


Are you using xoopsgallery blocks on mainpage of your site? If yes disable them being visible...

Go to the table newblocks and change the field visible to 0 for all xoopsgallery blocks...
Be smart, stay smart. Stay one step ahead...




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 12 »



Login

Who's Online

235 user(s) are online (139 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits