Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD: daily list of members...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD: daily list of members...

 Post Reply Post Reply Page  12>
Author
JVRudnick View Drop Down
Groupie
Groupie


Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote JVRudnick Quote  Post ReplyReply Direct Link To This Post Topic: MOD: daily list of members...
    Posted: 21 December 2006 at 9:11pm
Hi....
on our other VB forum, we were able to show a list of members who had visited each day...it'd add a new one each time a member came to the site.
 
such a thing for this WW forum?

Jim
Back to Top
myhyipforum.com View Drop Down
Newbie
Newbie
Avatar

Joined: 13 April 2006
Location: East Timor
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote myhyipforum.com Quote  Post ReplyReply Direct Link To This Post Posted: 26 December 2006 at 2:32pm
<tr class="tableSubLedger">
<td colspan="2">Who had visited the forum today</td>
</tr>
<tr class="tableRow">
<td width="4%" align="center"><img src="<% = strImagePath %>active_users.gif" alt="<% = strTxtActiveUsers %>" width="32" height="30" /></td>
<td width="96%" align="left">
<%
'addons

Dim Num
Dim Visiters_of_Members_Today
Dim LngMmeber_Vistor_ID
Dim GroupID_type
dim gun

Num = 0

'Get the now date with time off-set
dtmNow = getNowDate()

'If intGroupID = 2 Then
' Response.Write(vbCrLf & "You are not allowed to see visiters of today.")
'Else

'response.Write(dtmnow & "asdas")

strSQL = "SELECT " & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Group_ID "
strSQL = strSQL & "FROM " & strDbTable & "Author" & strDBNoLock & " "
strSQL = strSQL & "WHERE day(" & strDbTable & "Author.Last_visit) = " & day(dtmnow) & _
" AND month(" & strDbTable & "Author.Last_visit) = " & month(dtmnow) & _
" AND year(" & strDbTable & "Author.Last_visit) = year(getdate()) "
strSQL = strSQL & "ORDER BY " & strDbTable & "Author.Last_visit DESC;"

'response.Write(strSQL)

'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")
If GroupID_type = 1 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """><span style=""font-weight:bold;"">" & Visiters_of_Members_Today & "</span></a>")
If GroupID_type = 3 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """>" & Visiters_of_Members_Today & "</a>")
If GroupID_type = 4 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """>" & Visiters_of_Members_Today & "</a>")
If GroupID_type = 5 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """>" & Visiters_of_Members_Today & "</a>")
If GroupID_type = 6 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """>" & Visiters_of_Members_Today & "</a>")
If GroupID_type > 6 Then Response.Write(vbCrLf & " <a href=""member_profile.asp?PF=" & LngMmeber_Vistor_ID & """>" & Visiters_of_Members_Today & "</a>")

rsCommon.MoveNext
if NOT rsCommon.EOF then response.Write(", ")
Loop
%>
<br />
<br />
<%
Response.Write(" <p align=""left"" style=""font-size:14px"">" & Num & " members visited the forum today.</p>")
'End if

%></td></tr>






<%

'addons
'Clean up
Call closeDatabase()









'If birthdays is enabled show who has a birthday today
If strBirthdays <> "" Then









Back to Top
ToJaRo View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToJaRo Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2006 at 1:29am
Is this Mod just for Access?  I have a SQL forum and get the following error:
 
 

Microsoft VBScript runtime error '800a01a8'

Object required

/default.asp, line 834

Back to Top
ToJaRo View Drop Down
Groupie
Groupie
Avatar

Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
Post Options Post Options   Thanks (0) Thanks(0)   Quote ToJaRo Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2006 at 1:29am
This is the line of code it references:
rsCommon.Open strSQL, adoCon
Back to Top
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Posted: 28 December 2006 at 3:33am
there must be a code like that before line 834
 
'Clean up
Call closeDatabase()
 
find and delete  this code.
 
 
 
___________________________________________________________________________________________________________
THE ARMENIANS SAY THEY WERE MURDERED BUT DOCUMENTS TELL DIFFERENT. THE DOCUMENTS ARE FULL OF WOMEN,
BABIES AND CHILDREN PHOTOS THAT RAPED,KILLED AND BURNED WILDLY BY ARMENIAN TERRORISTS.
PLEASE VISIT www.tallarmeniantale.com AND SEE THE TRUTH.
___________________________________________________________________________________________________________
Back to Top
Blasser View Drop Down
Newbie
Newbie


Joined: 10 January 2007
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote Blasser Quote  Post ReplyReply Direct Link To This Post Posted: 10 January 2007 at 3:00pm
I get an error that the "num" veriable has not been declared..  Any help?
Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 13 January 2007 at 7:46pm
Something about this query is producing the following error in this mod.. Any ideas?
 
strSQL = "SELECT " & strDbTable & "Author.Username, " & strDbTable & "Author.Author_ID, " & strDbTable & "Author.Group_ID "
strSQL = strSQL & "FROM " & strDbTable & "Author" & strDBNoLock & " "
strSQL = strSQL & "WHERE day(" & strDbTable & "Author.Last_visit) = " & day(dtmnow) & _
" AND month(" & strDbTable & "Author.Last_visit) = " & month(dtmnow) & _
" AND year(" & strDbTable & "Author.Last_visit) = year(getdate()) "
strSQL = strSQL & "ORDER BY " & strDbTable & "Author.Last_visit DESC;"
 

Microsoft OLE DB Provider for ODBC Drivers error '80040e31'

[MySQL][ODBC 3.51 Driver][mysqld-5.0.22-community-nt]FUNCTION webwiz.getdate does not exist

/forum/includes/mod_who_visited.asp, line 42

Back to Top
kpdillon View Drop Down
Groupie
Groupie


Joined: 29 December 2006
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote kpdillon Quote  Post ReplyReply Direct Link To This Post Posted: 19 January 2007 at 3:01am
anyone?
Back to Top
 Post Reply Post Reply Page  12>

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.