| Author |
Topic Search Topic Options
|
JVRudnick
Groupie
Joined: 06 August 2004
Location: Canada
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
myhyipforum.com
Newbie
Joined: 13 April 2006
Location: East Timor
Status: Offline
Points: 16
|
Post Options
Thanks(0)
Quote Reply
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
|
|
 |
ToJaRo
Groupie
Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
ToJaRo
Groupie
Joined: 20 April 2005
Location: United States
Status: Offline
Points: 158
|
Post Options
Thanks(0)
Quote Reply
Posted: 28 December 2006 at 1:29am |
This is the line of code it references:
rsCommon.Open strSQL, adoCon
|
|
|
 |
gölge
Groupie
Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
|
Post Options
Thanks(0)
Quote Reply
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. ___________________________________________________________________________________________________________
|
 |
Blasser
Newbie
Joined: 10 January 2007
Status: Offline
Points: 7
|
Post Options
Thanks(0)
Quote Reply
Posted: 10 January 2007 at 3:00pm |
|
I get an error that the "num" veriable has not been declared.. Any help?
|
 |
kpdillon
Groupie
Joined: 29 December 2006
Status: Offline
Points: 56
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
kpdillon
Groupie
Joined: 29 December 2006
Status: Offline
Points: 56
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 January 2007 at 3:01am |
|
anyone?
|
 |