Author |
Topic |
wedont
Junior Member
Canada
344 Posts |
Posted - 05 June 2001 : 22:26:51
|
I'm on a US_based server, want to display date (ex:upcoming event)in the same format as on my Snitz forum (UKshort): DD,MM,YYYY instead of MM,DD,YYYY, 've been through the mod's 7 pages twice! The event calendar is on a separate subweb, I copied all the necessary inc_ , config and its working fine except for the date format!
Help, I'M Waisting my life on a Date!
Wedont snitz ver3.1 sr2 access 2k.
Edited by - wedont on 06 June 2001 15:14:55 |
|
wedont
Junior Member
Canada
344 Posts |
Posted - 06 June 2001 : 15:16:28
|
No, I'm not getting on top! No siry!
Wedont snitz ver3.1 sr2 access 2k. |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 June 2001 : 16:49:50
|
wedont, I have a fix for this, I believe. There's not really a "quick-fix" from what I see. There are three changes on events_functions.asp that you'll need to make. (I haven't fixed the other pages, but this will fix the main calendar)
Here's the events_function.asp in a zip. try it and see if it works well enough. (backup your copy of events_function.asp before installing this one, just in case )
http://www.galileandesigns.com/events.zip
I'll fix the other page associated with the calendar if you think this is what you need.
<-- Eric -->
InsideWaco.com |
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 06 June 2001 : 17:20:50
|
FANTASTIC!Exactly what I need!!!!
"I'll fix the other page associated with the calendar if you think this is what you need."
Sure!
Thanks Eric!
Wedont snitz ver3.1 sr2 access 2k. |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 June 2001 : 17:39:04
|
ok, the zip should have everything you need. I put the functions, event.asp, pop_event.asp, and events_inc.asp in there.
<-- Eric -->
InsideWaco.com |
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 06 June 2001 : 17:44:12
|
YESyesyesyes...YES !
My life is back!!!
YES!Me2 stone!
Wedont snitz ver3.1 sr2 access 2k. |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 June 2001 : 17:49:23
|
All I did was change/add a function call. It originally had this in a few places: strtodate(rs("Start_Date")) and I changed it to this: chkdate(rs("Start_Date"))
Then, in event_functions, I changed Response.Write (myDate) to this: Response.Write ChkDate(DateToStr(myDate)) in a few places.
The good thing about these changes is that it works with both the US & UK date formats
<-- Eric -->
InsideWaco.com |
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 06 June 2001 : 18:44:45
|
Changed the 3 instance of strToDate in pop_event and it works perfectly!
Thanks again Eric.
ps: may I suggest that you post your "fix" in the mod(w/code) 'cause if I'm not mistaken, a bunch of people has been looking for this!!!
Wedont snitz ver3.1 sr2 access 2k. |
|
|
e3stone
Average Member
USA
885 Posts |
Posted - 06 June 2001 : 19:24:53
|
I was going to mention it to Alan (Aznknight) first. That way he can look at it and update his zip that's on his site if he wants to. I don't really want to take any more credit than necessary
<-- Eric -->
InsideWaco.com |
|
|
wedont
Junior Member
Canada
344 Posts |
Posted - 06 June 2001 : 20:21:27
|
Too modest!
Wedont snitz ver3.1 sr2 access 2k. |
|
|
Aznknight
Senior Member
USA
1373 Posts |
Posted - 06 June 2001 : 22:16:57
|
ahh i see what you trying to do now... nice work e3stone . yeah you're being modest.
I haven't been too active with snitz mod development right now cause i'm busy with my own stuff. Once i get a breather, I'll see about adding e3stone's code as well for people trying to do what you're doing wedont.
cheers
- Alan www.iamviet.com www.calvsa.net Snitz Resource |
|
|
maggiau
New Member
96 Posts |
Posted - 09 June 2001 : 07:22:43
|
I translated my board into french ... Can you describe the modification so I can apply them on my own mod ...
Thank you very much Alex
|
|
|
WMA
Starting Member
Ireland
8 Posts |
Posted - 11 June 2001 : 13:37:32
|
Eric sounds great... I tried it but I'm missing a file:
Active Server Pages error 'ASP 0126'
Include file not found
/projects/testbed/forum/events.asp, line 218
The include file 'events_styles.asp' was not found. "
Have I missed out on developments I have eventsv2 of 20thMarch 2001
Well done in anticipation
John
|
|
|
WMA
Starting Member
Ireland
8 Posts |
Posted - 11 June 2001 : 13:51:38
|
Got you..events v2sr1! Superb work..
just a small thing... if you edit an event set for 7th June - it ends up on 6th July ??
Edited by - wma on 11 June 2001 15:01:49 |
|
|
maggiau
New Member
96 Posts |
Posted - 15 June 2001 : 19:36:27
|
If I create a new event, the date is wrong and in US format
|
|
|
maggiau
New Member
96 Posts |
Posted - 17 June 2001 : 16:44:26
|
works great now ...
I missed some changes ...
THANK YOU Alex
|
|
|
Topic |
|