Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mod: Today's Visitors v1.2
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mod: Today's Visitors v1.2

 Post Reply Post Reply Page  123 4>
Author
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Topic: Mod: Today's Visitors v1.2
    Posted: 09 September 2007 at 11:43am
I know there has been a similiar mod around here. But if you look at the screenshot and the implementation, you will see the difference. Sometimes little differences can be handy. This is why i decided to share the mod.

Mod has been upgraded to display information more accurately.

Mod Name: Today's Visitors
Mod Version: 1.2
Compatibility: WWF v9.05, v9.04
Tested With: WWF v9.05, v9.04
Demo: http://board.ebizbd.net/
Screenshots: http://board.ebizbd.net/
Download: http://board.ebizbd.net/forum_posts.asp?TID=134
Skin Author: Shahadat Hossen
Realease Date: September 19, 2007
Last Updated: not yet


Description:
This mod displays usernames of the members visited the forum today.

This mod also counts how many visitors have visited the forum: today, yesterday, total in this month and in previous month.

The best of all you only need two lines of code to be added into default.asp to use the mod.

Implementation:

1. Download and unrar the file. Put everything inside the forum folder keeping the directory structure intact

2. Open default.asp. Around line 5, after this line
<!--#include file="functions/functions_date_time_format.asp" -->


Add following line
<!--#include file="files/inc/fnc_todays_visitors.asp" -->


3. Around line 871, before this line
If strBirthdays <> "" Then


Add following line
Call printTodaysVisitors()



You are done! Bugs, Errors and features requests at: http://board.ebizbd.net/forum_posts.asp?TID=134


Screenshot



Edited by StarDust - 19 September 2007 at 12:18am
Back to Top
dreamboy3000 View Drop Down
Groupie
Groupie


Joined: 16 August 2006
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote dreamboy3000 Quote  Post ReplyReply Direct Link To This Post Posted: 09 September 2007 at 4:36pm

Where it reads.........

We had 4 members visited the site yesterday.
 
It should read.........
 
We had 4 members that visited the site yesterday.
 
Or..........
 
We had 4 members visit the site yesterday.
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 5:58am
Originally posted by dreamboy3000 dreamboy3000 wrote:

Where it reads.........


Thank you dreamy boy. I'll take care of it.

Back to Top
freakyfred View Drop Down
Groupie
Groupie


Joined: 29 March 2007
Location: United Kingdom
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakyfred Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 1:03pm
Great mod thanks. I was trying to add for the last year by using

dtmTodaysDateTime = DateAdd("y",-1,Now())

but it's showing less than the previous month?

i also tried

dtmTodaysDateTime = DateAdd("m",-12,Now())

but that also did not work. any ideas what i am doing wrong?
Back to Top
freakyfred View Drop Down
Groupie
Groupie


Joined: 29 March 2007
Location: United Kingdom
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakyfred Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 1:05pm
just realised what i am doing. I am showing how many ppl visted a year ago and not in total this year. Doh.
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 1:23pm
Originally posted by freakyfred freakyfred wrote:

just realised what


I don't understand what are you trying to get from me.
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 1:29pm
Originally posted by freakyfred freakyfred wrote:

Great mod thanks. I was trying to add for the last year by using

dtmTodaysDateTime = DateAdd("y",-1,Now())

but it's showing less than the previous month?

i also tried

dtmTodaysDateTime = DateAdd("m",-12,Now())

but that also did not work. any ideas what i am doing wrong?


Here is a detailed view of DateAdd function.


DateAdd(interval,number,date)

interval (The interval you want to add) takes the following values:

    * yyyy - Year
    * q - Quarter
    * m - Month
    * y - Day of year
    * d - Day
    * w - Weekday
    * ww - Week of year
    * h - Hour
    * n - Minute
    * s - Second

Back to Top
freakyfred View Drop Down
Groupie
Groupie


Joined: 29 March 2007
Location: United Kingdom
Status: Offline
Points: 171
Post Options Post Options   Thanks (0) Thanks(0)   Quote freakyfred Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2007 at 2:12pm
I was trying to add how many people had visited in the last year but ended up adding how many visited 1 year ago.
Back to Top
 Post Reply Post Reply Page  123 4>

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.