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: General / Classic ASP versions(v3.4.XX)
 Last Post - Today Yesterday
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 21 February 2007 :  15:13:26  Show Profile
Shaggy
You have a valid point re changing the colour by hard coding. I did have a little tinkle though with the code as a learning curve and it works as advertised. However, something that put me off was the Statistics line of the default.asp

xxx of xxx Members have made xxxx posts in xxx forums, with the last post Today 19:25:42 by: xxxx

I noticed everwhere the 'today' appeared obviously it changed colour to the parameters set, but when part of a link the link colour was green too, so I reverted by to sensible colour free 'Today' coding.
The code. part of the default.asp page
Response.Write ", with the last post <span class=""spnMessageText"">" & LastPostLink & LastPostDate & "</a></span>"
Unless we can set the & LastPostLink to the same font colour as the Today, but being part of a hyperlink, I think it best left, as is.
Thanks again
Andy

Edited by - Andy Humm on 21 February 2007 15:23:09
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 21 February 2007 :  15:34:13  Show Profile
Thanks HuwR as well, I echo my appreciation to you as well.
Kindest Regards Andy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 February 2007 :  04:25:44  Show Profile
Ah, I get you - gonna have to make some tweaks to the script, so. I've also edited the script slightly to clean it up a bit. Just replace the entire block of code with the following, again replaing the code in green with your hex references, or whatever you're using:
dim strCloseFont
if instr("admin_accounts_pending.asp,admin_config_datetime.asp,pop_printer_friendly.asp",mid(strScriptName,instrrev(strScriptName,"/")+1))=0 then
	select case left(fDate,8)
		case left(DateToStr(strForumTimeAdjust),8)
			chkDate="<font color=""colour"">Today"
			strCloseFont="</font>"
		case left(DateToStr(dateadd("d",-1,strForumTimeAdjust)),8)
			chkDate="<font color=""colour"">Yesterday"
			strCloseFont="</font>"
	end select
end if
if fTime then chkDate=chkDate&separator&chkTime(fDate)
chkDate=chkDate&strCloseFont

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Andy Humm
Average Member

United Kingdom
908 Posts

Posted - 22 February 2007 :  05:28:22  Show Profile
Brilliant again
thnx andy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 22 February 2007 :  05:43:22  Show Profile
You're welcome


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

philsbbs
Junior Member

United Kingdom
397 Posts

Posted - 07 April 2007 :  10:11:23  Show Profile
ive applied this change, but :-

80 of 135 Members have made 1658 posts in 7 forums, with the last post on Saturday, April 07, 2007 at 2:58:52 PM by: Phil.

Still have todays date not TODAY, what bits needs to be changed to pick this up.

The rest of it is working fine.

Phil
Go to Top of Page

philsbbs
Junior Member

United Kingdom
397 Posts

Posted - 14 April 2007 :  10:24:58  Show Profile
anybody know a solution

Phil
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 April 2007 :  04:11:48  Show Profile
Can you post a link to a *.txt copy of your default.asp? Are all other dates showing as "Today" or "Yesterday" where they should?


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous 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.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07