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)
 Today / Yesterday Mod... Anyone Have?
 New Topic  Reply to Topic
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

blackinwhite
Average Member

Turkey
657 Posts

Posted - 20 February 2008 :  12:44:12  Show Profile  Reply with Quote
quote:
Originally posted by Shaggy

quote:
Originally posted by blackinwhite
what I mean is more like this one

http://www.tanguay.info/web/codeExample.php?id=543
Might take a crack at a mod that does that soon, if I've the time.





great news, thank you.<
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 22 February 2008 :  14:11:47  Show Profile  Reply with Quote
Great so far, but is there a small tweak that will alter the way the Statistics post with the 'last post 5hr. 33 min. ago 10:19:40 by: webmaster'
be changed to show 'last post 5hr. 33min. ago by: webmaster'
In other words when the date post is today it removed the time of post element.
But obviously any other posting time ie yesterday and previous dates the stats still shows post time.
kindest regards andy<
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 22 February 2008 :  15:00:18  Show Profile  Reply with Quote
quote:
Originally posted by Andy Humm

Great so far, but is there a small tweak that will alter the way the Statistics post with the 'last post 5hr. 33 min. ago 10:19:40 by: webmaster'
be changed to show 'last post 5hr. 33min. ago by: webmaster'
In other words when the date post is today it removed the time of post element.
But obviously any other posting time ie yesterday and previous dates the stats still shows post time.
kindest regards andy



I have changed chkTime function in inc_func_common.asp, try this;


function chkTime(fTime)
	if fTime = "" or isNull(fTime) then
		exit function
	end If
	
If 	left(fTime,8) = left(DateToStr(strForumTimeAdjust),8) then

minutesTotal = datediff("n",strtodate(fTime),strForumTimeAdjust)
		  			hoursTotal = int(minutesTotal / 60)
		  			daysSince = int(hoursTotal / 24)
		  			hoursSince = hoursTotal mod 24
		  			minutesSince = minutestotal mod 60
'		  			if daysSince = 1 then ChkTime = ChkTime & daysSince & " gün, "
'		  			if daysSince > 1 then ChkTime =  ChkTime & daysSince & " gün, "			
					if hoursSince = 1 then ChkTime =  ChkTime & hoursSince & " hour, "		  
		 			if hoursSince > 1 then ChkTime = ChkTime & hoursSince & " hours, "
		  			ChkTime =  ChkTime & minutesSince & " minutes ago."
else


	if strTimeType = 12 then
		if cLng(Mid(fTime, 9,2)) > 12 then
			chkTime = ChkTime & " " & _
			(cLng(Mid(fTime, 9,2)) -12) & ":" & _
			Mid(fTime, 11,2) & ":" & _
			Mid(fTime, 13,2) & " " & "PM"
		elseif cLng(Mid(fTime, 9,2)) = 12 then
			chkTime = ChkTime & " " & _
			cLng(Mid(fTime, 9,2)) & ":" & _
			Mid(fTime, 11,2) & ":" & _
			Mid(fTime, 13,2) & " " & "PM"
		elseif cLng(Mid(fTime, 9,2)) = 0 then
			chkTime = ChkTime & " " & _
			(cLng(Mid(fTime, 9,2)) +12) & ":" & _
			Mid(fTime, 11,2) & ":" & _
			Mid(fTime, 13,2) & " " & "AM"
		else
			chkTime = ChkTime & " " & _
			Mid(fTime, 9,2) & ":" & _
			Mid(fTime, 11,2) & ":" & _
			Mid(fTime, 13,2) & " " & "AM"
		end if
		
	else
		ChkTime = ChkTime & " " & _
		Mid(fTime, 9,2) & ":" & _
		Mid(fTime, 11,2) & ":" & _
		Mid(fTime, 13,2) 
	end If
	


End if
<

Edited by - blackinwhite on 22 February 2008 15:05:17
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 22 February 2008 :  15:06:28  Show Profile  Visit bobby131313's Homepage  Reply with Quote
There's also 2 lines on topic.asp (search "edited by") that I changed to..

						"Edited by " & Reply_LastEditByName & " - " & chkDate(Reply_LastEdit, " " ,true) & "</font></td>" & vbNewLine & _


Makes better sense in all the scenarios. You don't get "Edited by Joe Blow on 43 minutes ago"
<

Switch the order of your title tags
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 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.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07