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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Date presentation enhancement
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jamesdavis
Starting Member

USA
26 Posts

Posted - 21 August 2005 :  07:16:29  Show Profile  Visit jamesdavis's Homepage  Reply with Quote
This is a little MOD that has been extremely well received on my board. What it does is show * Today * instead of the date if the date is today. Members find that it makes it far easier to locate what has changed on the board.

A new function (chkdateT) is added to inc_func_common.asp as follows:

function chkDateT(fDate,separator,fTime)
	if left(fDate,8) = left(DateToStr(strForumTimeAdjust),8) then
		chkDateT = "<B>* Today *</B>"
		if fTime then
			chkDateT = chkDateT & separator & chkTime(fDate)
		end if
	else
		chkDateT = chkDate(fDate,separator,fTime)
	end if
end function

Then anywhere you wish to use it just change 'chkdate' to 'chkdateT'

You may see it in action here.<

Edited by - jamesdavis on 23 August 2005 00:37:03

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 August 2005 :  08:10:24  Show Profile  Visit HuwR's Homepage  Reply with Quote
Today for you may not be today for other people though <
Go to Top of Page

jamesdavis
Starting Member

USA
26 Posts

Posted - 21 August 2005 :  08:58:27  Show Profile  Visit jamesdavis's Homepage  Reply with Quote
Because I use strForumTimeAdjust today is always today relative to all dates shown the user.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 August 2005 :  11:16:57  Show Profile  Visit HuwR's Homepage  Reply with Quote
The forums today is still not my today unless it is in the same timezone as I am<
Go to Top of Page

jamesdavis
Starting Member

USA
26 Posts

Posted - 21 August 2005 :  11:31:44  Show Profile  Visit jamesdavis's Homepage  Reply with Quote
I understand that. This was a quick enhancement MOD. I will work on adding a local Time Adjust to the user profile to handle the real world.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 21 August 2005 :  12:25:33  Show Profile  Visit HuwR's Homepage  Reply with Quote
quote:
Originally posted by jamesdavis

I understand that. This was a quick enhancement MOD. I will work on adding a local Time Adjust to the user profile to handle the real world.


Some people may not, that was the only reason for pointing it out, otherwise you can guarentee someone will complain <
Go to Top of Page

jamesdavis
Starting Member

USA
26 Posts

Posted - 21 August 2005 :  19:58:19  Show Profile  Visit jamesdavis's Homepage  Reply with Quote
The Local Time Zone function is now fully functional on my system. It took the addition of a small (6 character) field in the Members db and less than 50 lines of code. When I have shaken it down for awhile I will package it as a MOD.

Note that this only works for members - guests continue to see all times relative to the server's time zone.

You can register on my board and check it out for yourself by going to the Motorcyle Safety Forum.<
Go to Top of Page

bitwise2000
Starting Member

38 Posts

Posted - 22 August 2005 :  11:27:26  Show Profile  Reply with Quote
quote:
Originally posted by jamesdavis

The Local Time Zone function is now fully functional on my system. It took the addition of a small (6 character) field in the Members db and less than 50 lines of code. When I have shaken it down for awhile I will package it as a MOD.
That will be a great mod!<
Go to Top of Page

Bassman
Junior Member

Netherlands
256 Posts

Posted - 29 August 2005 :  17:38:31  Show Profile  Visit Bassman's Homepage  Reply with Quote
Thanks Dave, this is a nice addon. Works great <
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07