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)
 Need help with members.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

El Matador
Junior Member

192 Posts

Posted - 02 October 2002 :  01:59:39  Show Profile
I find quite handy the ability for the Administrator to see on the members.asp page the date when a member last visited the forum. Is there any easy way to also show the time (in addition to the date) in the table? Thanks to some code provided by Nathan, I had this feature working in version 3.3, but the same code does not work in version 3.4.


Thanks in advance

El Matador
Junior Member

192 Posts

Posted - 03 October 2002 :  11:22:07  Show Profile

Here are lines 418 to 420 of members.asp (Version 3.30x)


<% if mlev = 4 or mlev = 3 then %>

<td bgcolor="<% =CColor %>" align=center nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =ChkDate(rs("M_LASTHEREDATE")) %> at <% =ChkTime(rs("M_LASTHEREDATE")) %></font></td>

<% end if %>



The text in red was the code that Nathan provided. By adding it to the original members.asp file, the Administrator could see the date and time someone logged into the forum. That is, in the column "Last Visit", the Administrator could see something like: 10/02/2002 at 21:29:19



Now, here are lines 457 to 459 of members.asp (Version 3.403)


if mlev = 4 or mlev = 3 then

Response.Write " <td bgcolor=""" & CColor & """ align=""center"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & ChkDate(Members_MemberLastHereDate,"",false) & "</font></td>" & vbNewLine

end if


Is it possible to make an alteration in the above code so that the Administrator could see both date and time in the "last visit" column, instead of only the date?

Any help regarding this will be really appreciated.

Thanks.
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 03 October 2002 :  12:26:20  Show Profile
i think the ChkDate and ChkTime function already integrate into one ChkDate function in v.3.4

it's great! so now the modify will become very easy...

Response.Write " <td bgcolor=""" & CColor & """ align=""center"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & ChkDate(Members_MemberLastHereDate," at ",true) & "</font></td>" & vbNewLine


Edited by - DoraMoon on 03 October 2002 12:27:49
Go to Top of Page

El Matador
Junior Member

192 Posts

Posted - 04 October 2002 :  02:26:56  Show Profile
quote:
Originally posted by DoraMoon

i think the ChkDate and ChkTime function already integrate into one ChkDate function in v.3.4

it's great! so now the modify will become very easy...

Response.Write " <td bgcolor=""" & CColor & """ align=""center"" nowrap><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strForumFontColor & """>" & ChkDate(Members_MemberLastHereDate," at ",true) & "</font></td>" & vbNewLine





DoraMoon, you've really made my day!!! Receive the most expressive thanks from this ASP dummy . Now my forum is looking a lot they way I wanted to.

Again, thanks a lot for your help.
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 2.88 seconds. Powered By: Snitz Forums 2000 Version 3.4.07