Author |
Topic |
rick7165
Senior Member
USA
1094 Posts |
Posted - 28 November 2001 : 17:01:41
|
quote:
Rick,
Add the line in red to the following function. That fixes it.
Function Date_FillBoxWithYears( nDefault ) if nDefault = "Year" then nDefault = 0 nDefault = Cint(nDefault) Dim nYear nDefault = Cint(nDefault)
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines.
That fixed it! Aren't you happy I pick your mods apart? LOL
Test Site: EastPasco running on Huw's Code 3.3.10 SQL 2000 Need a Snitz MOD? Click Here: Snitz Mod Resource |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 28 November 2001 : 17:04:49
|
Rick yeah I am
It's always nice to have another pair of eyes and hands to go "hmm dat not right"...
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 28 November 2001 : 17:06:39
|
quote:
ok i uploaded my forum on 7host for now for testing is this mod updated and completed so i can test?
I would wait until I've put all the fixes in first, and added the new stuff. I'm at home but if you check back tommorrow (unless you want to update and then apply the fix plus new stuff)
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
Newbier
Starting Member
5 Posts |
Posted - 28 November 2001 : 23:00:26
|
I'm a newbie and am looking foward to add this as my FIRST HACK ON SNITZ so post when you're finished ~*!Cheerz!*~
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 29 November 2001 : 00:03:14
|
Hi, for those who are interesed in Chinese Lunar calendar I got a javascript. it's useful to see how it calculate lunar date/month/year.
about copyright. well I fogot where I obtained this. but I'm sure I saw similar code on some js resources sites, though they might have ripped this off somewhere also.
link: http://beijinglife.com/misc/lunar_calendar.html just right click and save it. here's the js it uses. http://beijinglife.com/js/lunar_calendar_worldtime_en.js
note on GanZhi of chinese calendar:
12 "hours" a day, hour Zi begins at 23:00 and ends at 1:00 the next day. GanZhi of month relates to Jieqi ( solar terms) but not the month. hence ganzhi of the year begins at the beginning of the spring instead of the new year of lunar calendar.
Edited by - bjlt on 29 November 2001 10:24:12 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 29 November 2001 : 04:37:31
|
Can anyone teach me Chinese?
Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
aston
New Member
Andorra
51 Posts |
Posted - 29 November 2001 : 05:44:59
|
I can,hehe
______________________
Fly me to the Moon
|
|
|
bjlt
Senior Member
1144 Posts |
Posted - 29 November 2001 : 06:19:41
|
quote:
Can anyone teach me Chinese?
Az
------- Eagles fly!, but weasels don't get sucked into jet engines.
Well, I might translate it when I have time but not now. you can add Asian language pack for IE, then you can see those characters correctly in IE instead of a mess. probabally you can figure out something.
Chinese calendar is a combination of lunar and solar. the months are lunar months but they have Jieqi also, which is the 24 positions of earth in its orbit, such as the date/time when day/night are of same lenght of time. this is of solar system.
Chinese calendar has a special method to mark the year/month/date, which is "jia, yi, bing, etc" in the birthday mod, also includes the Jieqi mentioned above. This is complicated when people use this to predict your life. they think as earth moving in the universe, people are affected by where the earth is. this is quite like western astrology but Chinese track it to the time/date/month/year you are born instead of on which months you are born. If you believe in astrology, I think the Chinese way is better. well, they do think you can change your life even you were born at a bad time. Isn't that nice?
When my site's up I'll have some articles dedicated to this and related mystery theories. I'll post a notice in the community forum then.
the current Chinese calendar using the method started at 722BC, never changed and broken, which is the longest yet known method used continuously. this together with the practice of the ancient Chinese people to note down the changing of signs of the stars, help astronomists a lot. they then can know when a comet came before, when there was a solar eclipse etc.
I think the acient Indians in Mexico developed the best solar calendar system, known for its accuracy.
Hope you guys are ineterested in this.
Edited by - bjlt on 29 November 2001 08:13:47 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 29 November 2001 : 08:11:02
|
Found a few little bug's which I have fixed.
The new code for displaying in default.asp and so on has been added.
File updated at source above. (well when Kind Mr Stim changes it for me)
Thanks Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
bjlt
Senior Member
1144 Posts |
Posted - 29 November 2001 : 08:17:22
|
alright, Azaniah, I took a look at the js file. I can translate the part relating to the lunar calendar which is not much. will do it now and notice you later
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 29 November 2001 : 08:31:06
|
quote:
Found a few little bug's which I have fixed.
The new code for displaying in default.asp and so on has been added.
File updated at source above. (well when Kind Mr Stim changes it for me)
Thanks Az
------- Eagles fly!, but weasels don't get sucked into jet engines.
What bugs? and What do I need to change?
Test Site: EastPasco running on Huw's Code 3.3.10 SQL 2000 Need a Snitz MOD? Click Here: Snitz Mod Resource |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 29 November 2001 : 09:27:43
|
Rick,
Fixes are -
In inc_birthdate.asp
Change btoday = flase to btoday = false
In Default.asp
Change <!--#include file="birthdays.asp"--> to <% if intbirthday = "1" then %> <!--#include file="birthdays.asp"--> <% end if %>
In pop_profile.asp
Remove this section
if (strAge = "1" and Trim(rs("M_AGE")) <> "") then <tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Age: </font></b></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =ChkString(rs("M_AGE"), "display") %></font></td> </tr> <% end if
Add
<% if intBirthday = "1" then %>
main body of birthday text
<% end if %>
inc_profile.asp
Remove this code
if strAge = "1" then %> <tr> <td bgColor="<% =strPopUpTableColor %>" align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Age: </font></b></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name="Age" size="7" value="<% =ChkString(RS("M_AGE"), "display") %>"></font></td> </tr> <% end if
As above - add
<% if intBirthday = "1" then %>
main body of birthday text
<% end if %>
events_functions.asp
'################## concep86 / Azaniah birthday mod #################### if intBirthday = "1" then blist2 = "" bSql = "SELECT " & strMemberTablePrefix & "MEMBERS.M_NAME," & strMemberTablePrefix & "MEMBERS.MEMBER_ID," & strMemberTablePrefix & "MEMBERS.M_BIRTHDATE " bSql = bSql & "FROM " & strMemberTablePrefix & "MEMBERS " bSql = bSql & "WHERE " & strMemberTablePrefix & "MEMBERS.M_BIRTHDATE LIKE '____" & intThisMonth & doublenum(intPrintDay) & "'" bSql = bSql & "AND " & strMemberTablePrefix & "MEMBERS.M_HIDEAGE = 0"
set rsBirthday = my_conn.execute(bSql)
do while not rsBirthday.eof blist2 = blist2 & rsBirthday("M_NAME") & "," rsBirthday.movenext loop rsBIRTHDAY.close set rsBIRTHDAY = Nothing end if '################## concep86 / Azaniah birthday mod ####################
Basically it's just adding in the if intBirthday = "1" then, so this, end if
This controls the display of birthday related stuff, depending on the switch in Mod Config.
The Age switch in Admin now does nothing, hence blanking it out or removing it.
Hope that makes sense
Cheers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 29 November 2001 : 10:09:14
|
I don't use the default.asp files include.
But have no clue what your talking about in the pop_profile.asp and inc_profile.asp files? add Text?
Test Site: EastPasco running on Huw's Code 3.3.10 SQL 2000 Need a Snitz MOD? Click Here: Snitz Mod Resource |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 29 November 2001 : 10:13:55
|
Rick,
To be more precise for example in pop_profile.asp.
Add the code in red (which is around the main body of the birthday mod code), I've abbreivated the code to just give the idea.
Do the same thing for inc_profile.asp
<% '################## concep86 / Azaniah birthday mod #################### %> <% if intBirthday = "1" then %> <tr> <td bgColor=<% =strPopUpTableColor %> align=right nowrap valign=top><b><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">Age: </font></b></td> <% if(HideAge = 0) then %> <% ' Calculations for various birthday functions strBirthdate = rs("M_BIRTHDATE") & "000001" strBirthdate = strToDate (strBirthdate)
abbreviatted code
<% else %> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">No age specified...</font></td> <% end if %> </tr> <% end if %> <% '################## concep86 / Azaniah birthday mod #################### %>
Thanks Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 29 November 2001 : 10:21:07
|
Check your email... LOL I must have something different then you do.
Test Site: EastPasco running on Huw's Code 3.3.10 SQL 2000 Need a Snitz MOD? Click Here: Snitz Mod Resource |
|
|
Topic |
|