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/Code)
 Show all members since last visit
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Hooloovoo
Starting Member

USA
14 Posts

Posted - 04 January 2002 :  01:25:12  Show Profile
Quick-n-dirty little tweak, folks:

I wanted a way to see all the registered members that stopped by since the last time I visited my forums.

Here's what I came up with (and please note that this code is not plug-and-play. You need to know a bit about how this all works. I'll come up with a standalone version tomorrow after I get some sleep):

if IsEmpty(Session(strCookieURL & "last_here_date")) then
Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName)
end if
thisSQL = "SELECT M_NAME FROM FORUM_MEMBERS WHERE M_LASTHEREDATE > '" & session(strCookieURL & "last_here_date") & "' ORDER BY M_LASTHEREDATE"
set rsPast = my_Conn.execute(thisSQL)
while not rsPast.eof
response.write rsPast("M_NAME") & "<br>" & vbCrLf
rsPast.moveNext
wend
set rsPast = nothing


Just pop that code in wherever you want to display it: I've got mine buried somewhere within my inc_top.asp file.

This produces a simple list of everyone who's been to your forum since your last visit, much like this:

member1
member2
member3
etc....

Enjoy.

stwilson
Junior Member

USA
385 Posts

Posted - 10 January 2002 :  16:51:00  Show Profile  Visit stwilson's Homepage
Hooloovoo,

Great concept. I was not successful in implementing your code, so I will wait for the standalone version. My thought is this information would be good for the Admin. I would love to be able to set the timing parameter in an Admin type panel. For example, show me how many members have visited the site in X days, as well as the option you spoke of.

For me, I have too many single day visitors to put that on a common access page. Right now I am averaging about 110 members visiting my site on a daily basis. I really am interested in your code. Can't wait to see it.

Shannon

Go to Top of Page

Hooloovoo
Starting Member

USA
14 Posts

Posted - 12 January 2002 :  03:27:13  Show Profile
Well, it's going to have to wait awhile. It's on my List of Things To Do, but I've got some clients bugging me to do their work, and they're paying the bills.

I'd like to build in some kind of stats feature into the admin. Good idea. A few options that come to mind:

  • Show all visitors (and number of visits) for last _____ days

  • Show most common visitors

  • Show least active visitors



Anything else come to mind?

-Ken

------------------------------------------------------------
Writing a haiku,
in seventeen syllables,
is very diff--
------------------------------------------------------------
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 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07