Author |
Topic |
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 August 2002 : 15:43:40
|
You are right Richard, It should be strForumTimeAdjust. I will correct in the code posted above. |
|
|
seven
Senior Member
USA
1037 Posts |
Posted - 19 August 2002 : 16:31:00
|
Yes, it works fine now... Thanks!
sidenote: When you copy code from the forum into your design tool, sometimes it comes out jumbled (all on 1 line, etc...) What if there was an option to display code in a text box?
quote: Originally posted by GauravBhabu
airilm, have you used the code posted by me?
|
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 19 August 2002 : 16:42:16
|
quote: Originally posted by airilm
sidenote: When you copy code from the forum into your design tool, sometimes it comes out jumbled (all on 1 line, etc...) What if there was an option to display code in a text box?
do a "Reply w/Quote" and then copy everything between the [code] [/code] tags |
|
|
alex042
Average Member
USA
631 Posts |
Posted - 19 August 2002 : 16:43:11
|
Where's the 29 and holding option on this age thing? |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 August 2002 : 16:45:07
|
To keep the formatting, click on Reply with quote and then copy the code from textarea and paste into your file. The formatting will not be lost.
I am further optimizing the code and will post or send it to Admins by email. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 19 August 2002 : 19:08:26
|
Here is further simplified and optimized code. One Minor Problem, however will have no effect on processing.
<EDIT>Remove Code. Look here for solution. |
CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness "I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated) |
Edited by - GauravBhabu on 20 August 2002 22:16:50 |
|
|
bax
Junior Member
141 Posts |
Posted - 19 August 2002 : 21:33:04
|
Did this code get integrated into the 3.4 public release? It's not a terribly big deal to me, as I believe our server conforms, however, I want to make sure this will work if we ever move to another server. |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 19 August 2002 : 21:45:35
|
This bug will be fixed in v3.4.01 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 August 2002 : 00:38:15
|
GauravBhabu,
this:
if datediff("m", strNextMonthDate, strCurrentDate) <> 0 then
needs to be changed to:
if datediff("m", strNextMonthDate, strCurrentDate) >= 0 then
you can test this by starting at August 2002. You should not have the arrows to goto September. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 August 2002 : 00:50:46
|
GauravBhabu,
the code you posted here
is almost identical to the original I had before we started seeing date problems (during testing). That is when I started putting in all of those tests for the date format, and ended up with what was in the v3.4 release. We tested it on a US server and on a UK server, before leaving it in the release. We were just going to scrap it and use dropdown boxes to pick the Year, Month & Date in.
Really, the only thing I see different is this:
if IsDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) Then dDate = cDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) else
|
|
|
Nathan
Help Moderator
USA
7664 Posts |
Posted - 20 August 2002 : 00:51:42
|
It would probably be wise to allow future dates.
That would leave the feature open for other uses, such as, say, an events calendar among other things. |
Nathan Bales CoreBoard | Active Users Download |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 August 2002 : 00:53:32
|
quote: Originally posted by GauravBhabu
quote: One Minor Problem, however will have no effect on processing
I know Richard, that is what I referred as a Minor Problem. I will work on it, as using >= 0 was having some other implications.
I was optimizing the Jumpto box for Groups. I posted some suggestions for Group Categories feature at links below:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33085
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33103
I really don't want to go changing the coding for a feature that has no problems as is. Kal Corp is really the one who should be consulted on whether or not these changes will still give the original result. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 20 August 2002 : 01:00:11
|
quote: Originally posted by RichardKinser
GauravBhabu,
the code you posted here
is almost identical to the original I had before we started seeing date problems (during testing). That is when I started putting in all of those tests for the date format, and ended up with what was in the v3.4 release. We tested it on a US server and on a UK server, before leaving it in the release. We were just going to scrap it and use dropdown boxes to pick the Year, Month & Date in.
There was a processing fault, while using the technique, which was suggested by Ruirib in other context. There is nothing wrong with that technique, but that is suitable for converting the strings to date.
quote: Originally posted by RichardKinser Really, the only thing I see different is this:
if IsDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) Then dDate = cDate(Request("day") & "-" & MonthName(Request("month")) & "-" & Request("year")) else
That is what makes the whole lot of difference.
|
CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness "I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated) |
|
|
Topic |
|