Author |
Topic  |
|
El Matador
Junior Member
 
192 Posts |
Posted - 02 October 2002 : 01:59:39
|
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
|
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. |
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 03 October 2002 : 12:26:20
|
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 |
 |
|
El Matador
Junior Member
 
192 Posts |
Posted - 04 October 2002 : 02:26:56
|
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. |
 |
|
|
Topic  |
|