Author |
Topic |
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 21 February 2007 : 15:13:26
|
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 |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 21 February 2007 : 15:34:13
|
Thanks HuwR as well, I echo my appreciation to you as well. Kindest Regards Andy |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 22 February 2007 : 04:25:44
|
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.” |
|
|
Andy Humm
Average Member
United Kingdom
908 Posts |
Posted - 22 February 2007 : 05:28:22
|
Brilliant again thnx andy |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 22 February 2007 : 05:43:22
|
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.” |
|
|
philsbbs
Junior Member
United Kingdom
397 Posts |
Posted - 07 April 2007 : 10:11:23
|
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 |
|
|
philsbbs
Junior Member
United Kingdom
397 Posts |
Posted - 14 April 2007 : 10:24:58
|
anybody know a solution |
Phil |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 16 April 2007 : 04:11:48
|
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.” |
|
|
Topic |
|