Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD to see who have visited the forum for today
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD to see who have visited the forum for today

 Post Reply Post Reply
Author
chong67 View Drop Down
Groupie
Groupie


Joined: 15 November 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote chong67 Quote  Post ReplyReply Direct Link To This Post Topic: MOD to see who have visited the forum for today
    Posted: 07 March 2007 at 4:04pm
I use to have a code that can display who the users have visited the forum for today.  The author have not update it.
 
It was for the 7.x version.
 
Is there one for the 8.x version?
 
I like to see the users name displayed at the bottom of the forum who had visited the forum for today.
 
Thanks!


Edited by chong67 - 08 March 2007 at 1:32pm
Back to Top
chong67 View Drop Down
Groupie
Groupie


Joined: 15 November 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote chong67 Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2007 at 1:59am

Anyone?

Back to Top
chicken View Drop Down
Groupie
Groupie
Avatar

Joined: 22 October 2005
Location: United Kingdom
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote chicken Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2007 at 4:26pm

<%
Dim Num
Num = 0
Dim Visiters_of_Members_Today
Dim lngUserID

If strDatabaseType = "SQLServer" Then
 strSQL = "SELECT tblAuthor.Username, tblAuthor.Author_ID "
 strSQL = strSQL & "FROM tblAuthor "
 strSQL = strSQL & "where day(tblAuthor.Last_visit) = day(getdate()) and month(tblAuthor.Last_visit) = month(getdate()) and year(tblAuthor.Last_visit) = year(getdate()) "
 strSQL = strSQL & "ORDER BY tblAuthor.Username ASC, tblAuthor.Last_visit DESC;"
Else
 strSQL = "SELECT tblAuthor.Username, tblAuthor.Author_ID "
 strSQL = strSQL & "FROM tblAuthor "
 strSQL = strSQL & "where day(tblAuthor.Last_visit) = day(Date()) and month(tblAuthor.Last_visit) = month(Date()) and year(tblAuthor.Last_visit) = year(Date()) "
 strSQL = strSQL & "ORDER BY tblAuthor.Username ASC, tblAuthor.Last_visit DESC;"
End If

'Query the database
rsCommon.Open strSQL, adoCon

do while NOT rsCommon.EOF
 Num = Num + 1
 Visiters_of_Members_Today = rsCommon("Username")
 lngUserID = rsCommon("Author_ID")
  Response.Write("<span class=""smltext""><a href=""member_profile.asp?PF=" & lngUserID & """>" & Visiters_of_Members_Today & "</a></span><br>")
rsCommon.MoveNext
Loop
%>

Back to Top
chong67 View Drop Down
Groupie
Groupie


Joined: 15 November 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote chong67 Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2007 at 8:55pm
Where would I put this code between what lines and what filename?

Edited by chong67 - 09 March 2007 at 8:55pm
Back to Top
chong67 View Drop Down
Groupie
Groupie


Joined: 15 November 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote chong67 Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2007 at 9:06pm

Has anyone done it successfully?

Please help if you can.

Thanks!

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.