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/O Code)
 Topic/Forum date shows "Today" Mod???
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dibley
New Member

United Kingdom
91 Posts

Posted - 11 April 2004 :  17:19:28  Show Profile  Visit dibley's Homepage
Is any body aware of a mod which instead of showing todays date in the LAST POST column in default.asp and forum.asp and the posted date in topic.asp, it displays the word "TODAY" instead.

If there isn't, can any body help me with what I should compare with ChkDate(Reply_Date, " : " ,false)

How do I change the current date into the YYYYMMDDHHMMSS format that Reply_Date is in?

I assume I use the DateToStr(dtDateTime) function, somehow???

Any help appreciated!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.

Edited by - dibley on 11 April 2004 17:25:35

dpmcalister
Junior Member

United Kingdom
161 Posts

Posted - 11 April 2004 :  17:23:09  Show Profile  Visit dpmcalister's Homepage
I believe kwhipp has got a MOD that does just that. His website is whipp.us but it's not working at the moment (at least, not for me).

Edit: The direct link to the MOD is http://whipp.us/topic.asp?TOPIC_ID=15

Edited by - dpmcalister on 11 April 2004 17:31:01
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 11 April 2004 :  17:39:36  Show Profile  Visit dibley's Homepage
Thanks, Dave.

I can't access the site either. But I will check it out later.

I have sort of managed to get it like this....

    If ChkDate(Reply_Date, " : " ,false) = ChkDate(DateToStr(Date), " : " ,false) Then
        Response.Write "Today" & chkTime(Reply_Date)
    Else
        Response.Write ChkDate(Reply_Date, " : " ,true)
    End If


it looks a little clumsey. Is There a better way?


Edit: Its ok, I'm a divvy, getting to carried away with the snitz functions and forgetting VB!

If Left(Reply_Date, 8) = Left(DateToStr(Date), 8) Then

...would be a better solution!!! Lol!

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.

Edited by - dibley on 11 April 2004 18:20:42
Go to Top of Page

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 12 April 2004 :  06:20:21  Show Profile
You need this topic: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=49255&SearchTerms=Today,and,Yesterday

If you want to create it yourself watch out because on certain pages it won't work..
Go to Top of Page

dibley
New Member

United Kingdom
91 Posts

Posted - 12 April 2004 :  17:09:54  Show Profile  Visit dibley's Homepage
Thanks, ajhvdb, I have gone with my own mini mod now and it is working on all the pages I want it to. These being default.asp, forum.asp, and topic.asp, so I think that'll do. It was only to keep in line with the forum that my users will be moving from.

.:dib:.

www.nightsouls.co.uk - Uk clubber & music forum.
www.animatronica.co.uk - Creators of themepark animatronics.
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07