Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 event calender......prob
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

unifox
Starting Member

46 Posts

Posted - 24 July 2002 :  11:06:12  Show Profile
take a look at this http://422o.dk/forum/default.asp
how come it does that?
it is working here http://micromaniacs.net/unifox/forum/default.asp

it is the same kode/database and all

anyone have a clue?

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 July 2002 :  11:13:37  Show Profile  Visit dayve's Homepage
bad link or site will not load.


http://www.nineinchnailz.com
Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 24 July 2002 :  16:05:44  Show Profile
try again....they should both work

or try http://422o.dk and http://micromaniacs.net/unifox/

Go to Top of Page

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 24 July 2002 :  16:29:55  Show Profile
Can you post links to text versions of both pages?

Nikkol
Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 24 July 2002 :  19:03:50  Show Profile
what file do you want?

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 24 July 2002 :  23:11:48  Show Profile  Visit dayve's Homepage
quote:

what file do you want?



inc_events.asp, but don't post it here, post a link to a text version of it.


http://www.nineinchnailz.com
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 24 July 2002 :  23:35:26  Show Profile  Send ruirib a Yahoo! Message
I'd say it's an easy guess. The Danish server uses US date formats, the micromaniacs site server uses UK date formats. Is it possible?

I've seen the calendar display like the one in http://422o.dk/forum/default.asp in a forum whose code was not prepared to handle the dates in the format the server was using.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs


Edited by - ruirib on 25 July 2002 20:11:21
Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 25 July 2002 :  19:55:23  Show Profile
hmmm.....that might be...but do you have any idea hov to fix the problem?
BTW. hov do I get the date in the event to be the exact same as the forum?

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 25 July 2002 :  20:13:01  Show Profile  Send ruirib a Yahoo! Message
quote:

hmmm.....that might be...but do you have any idea hov to fix the problem?
BTW. hov do I get the date in the event to be the exact same as the forum?


I think you'd need to use different versions of the calendar mod. The international version for the server with the UK dates and the US version for the one with US dates.

I don't understand your last question. Can you be more specific?

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 26 July 2002 :  13:57:07  Show Profile
nevermind.....and thanks

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 26 July 2002 :  15:58:56  Show Profile  Send ruirib a Yahoo! Message
You're welcome.

-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

twin
New Member

78 Posts

Posted - 28 July 2002 :  10:33:29  Show Profile
@unifox


Had the same Problem when i was translating the latest EventMod into German (the translated Mod from Kirgy was too old and didn't work). I had to hard-change the Session.LCID from 1033 to 1031 and the Result was the right Date-Format but also this wrong Display of Calendar.

I'm at home now so i can't post you the exact Lines to change. I'll do it tomorrow at first.


twin

Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 28 July 2002 :  15:30:57  Show Profile
that would be a big help...thx

Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 July 2002 :  15:40:42  Show Profile  Send ruirib a Yahoo! Message
quote:

@unifox


Had the same Problem when i was translating the latest EventMod into German (the translated Mod from Kirgy was too old and didn't work). I had to hard-change the Session.LCID from 1033 to 1031 and the Result was the right Date-Format but also this wrong Display of Calendar.

I'm at home now so i can't post you the exact Lines to change. I'll do it tomorrow at first.


I probably should have remembered this. Yes this should help. You only need to change a single line, to set the value for the LCID. All you need is to change line 39 in config.asp:

Session.LCID = whateverYourLocaleIDIs



-------------------------------------------------
Installation Guide | Do's and Dont's | MODs
Go to Top of Page

twin
New Member

78 Posts

Posted - 29 July 2002 :  02:54:27  Show Profile
Ok, here is what i changed in events_inc.asp :

Find the following function:


Function GetLastDay(intMonthNum, intYearNum)
Dim dNextStart
If CInt(intMonthNum) = 12 Then
dNextStart = CDate( "01/01/" & intYearNum)
Else
dNextStart = CDate(intMonthNum + 1 & "/01/" & intYearNum)
End If
GetLastDay = Day(dNextStart - 1)
End Function



and replace it with this:


Function GetLastDay(intMonthNum, intYearNum)
Dim dNextStart
If CInt(intMonthNum) = 12 Then
dNextStart = CDate( "01/01/" & intYearNum)
Else
dNextStart = CDate(MonthName(intMonthNum + 1) & " 1," & intYearNum)
End If
GetLastDay = Day(dNextStart - 1)
End Function




After this line changed, my calendar was correct displayed in default page.
Remember: For me this error only occured after i changed the Session.LCID. Without touching the LCID the Calendar was displayed correct !! So, i don't know if this is working for you, too ! But it is worth a Try.


twin

Go to Top of Page

unifox
Starting Member

46 Posts

Posted - 30 July 2002 :  16:41:35  Show Profile
well it helped at little, but it is still ****ed

Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07