Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Changing "Visitors of Today" time base  ??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Changing "Visitors of Today" time base ??

 Post Reply Post Reply
Author
Northwind View Drop Down
Newbie
Newbie


Joined: 06 February 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Northwind Quote  Post ReplyReply Direct Link To This Post Topic: Changing "Visitors of Today" time base ??
    Posted: 06 February 2009 at 10:36pm
Hi all,
I have WWF version 8.0 RC1.1.

In the main page, there is "visitors of today" section. But the count goes zero at 00:00 am. So i need a code that provide "visitors of last 24 hours" or "visitors of last 2 days" etc.

Thanks in advance.
I think the related codes are as follows:


Dim Num
Num = 0
Dim Visiters_of_Members_Today
Dim LngMmeber_Vistor_ID
Dim GroupID_type

If strDatabaseType = "SQLServer" Then
 strSQL = "SELECT tblAuthor.Username, tblAuthor.Author_ID, tblAuthor.Group_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.Last_visit DESC;"
Else
 strSQL = "SELECT tblAuthor.Username, tblAuthor.Author_ID, tblAuthor.Group_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.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")
 LngMmeber_Vistor_ID = rsCommon("Author_ID")
 GroupID_type = rsCommon("Group_ID")
 



Back to Top
msnahm View Drop Down
Groupie
Groupie


Joined: 27 January 2009
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote msnahm Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2009 at 10:36am
How can I enable the "Visitor of today" in Ver. 9.54 Free Edition?
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2009 at 3:29pm
Try this modification here - Who Visited Today
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.