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)
 Active Users Updated With Ip Viewing for Admin's
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 16

pox
Junior Member

Denmark
110 Posts

Posted - 23 July 2001 :  16:24:50  Show Profile  Visit pox's Homepage
the link to the zip is down! :
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 23 July 2001 :  17:53:07  Show Profile
If you had taken the time to look through the posts you would have seen there were NUMEROUS links to zips that work.

You're welcome.

http://www.dsilvera.com/forum/mods/active_users.zip


http://www.ugfl.net/forums
Go to Top of Page

Rawly
Starting Member

United Kingdom
41 Posts

Posted - 24 July 2001 :  14:48:02  Show Profile  Visit Rawly's Homepage  Send Rawly an AOL message  Send Rawly an ICQ Message  Send Rawly a Yahoo! Message
I have installed this MOD, I am using the activeusers2.asp file and I have changed the
strTempCookieType = strUniqueID
And I still show up as a guest!
Please someone help!!

Thank You in advance

Rawly

Rawly
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 24 July 2001 :  15:03:26  Show Profile
Send your inc_top.asp to big9erfan@ugfl.net and I'll look at it when I get the chance.

http://www.ugfl.net/forums
Go to Top of Page

Cyber Paladin
New Member

55 Posts

Posted - 24 July 2001 :  19:56:03  Show Profile  Visit Cyber Paladin's Homepage
I got it working awhile go, still Here's whut I remember off hand....

In whole slew of code that you were told to copy and paste there is a section with the title of: ' FIND OUT IF THEY ARE A GUEST, OR A USER
just below that the person who made it had it reading from the database I think (not sure). Anyways, i changed it so that it would read from the user's cookie and compare it to the DB. So here's the re-write of that section of code below that title. (all the way to the first blank line)

' FIND OUT IF THEY ARE A GUEST, OR A USER
name = request.Cookies(strUniqueID & "User")("Name")
if len(name) < 1 or isnull(name) = true then
strOnlineUser = "Guest"
else
strSql = "SELECT * FROM " & strTablePrefix & "MEMBERS WHERE M_NAME = '" & name & "'"
set rst = my_conn.execute(strSql)

if rst.eof then
strOnlineUser = "Guest"
else
strOnlineUser = name
end if
end if

Also just on another related note, I got annoyed at the fact that if u entered the forum as a guest and then logged in all of a sudden you became a guest and a member. So I went and fixed that by reading the user's IP as they login and off and deleting those online records before the new ones are added. If anyone wants the code for that I'll put it below too (all this is done in the inc_code.asp page):

1. Clear guest status at Login:
Right above this line: "Call DoCookies(Request.Form("SavePassword"))"
Put these three lines in:

strSQL = "DELETE FROM " & strTablePrefix & "ONLINE"
strSQL = strSQL & " WHERE UserIP = '" & Request.ServerVariables("REMOTE_ADDR") & "'"
set rst = my_conn.execute(strSQL)

2. Clear member after logout:
right above this line: "call ClearCookies()"
put these three lines in:

strSQL = "DELETE FROM " & strTablePrefix & "ONLINE "
strSQL = strSQL & "WHERE UserID = '" & request.cookies(strUniqueID & "User")("Name") & "'"
set rst = my_conn.execute(strSQL)

-------------------------------------------
That's it. :)

Go to Top of Page

Chinners
Starting Member

United Kingdom
42 Posts

Posted - 31 July 2001 :  07:46:36  Show Profile
I'm a little slow; sorry - have downloaded the zip for active users but have the following question: where do I insert this bit (taken from the readme file):

To display your active users place the following code where you would like it displayed..
-----------------------------------------------------------------------------------------
<a href="active_users.asp">Active Users</a>: <%=strOnlineMembersCount%> Members and <%=strOnlineGuestsCount%> Guests

Am I right in thinking this goes into the default.asp page? Or am I a long way from the mark?

Simple (me, I mean)
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 31 July 2001 :  13:47:31  Show Profile
You are quite right.

Most people but that right before this code in default.asp


<%if strShowStatistics = "1" then
WriteStatistics
end if
%>


http://www.ugfl.net/forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 August 2001 :  10:44:55  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
anyone have the active user mod setup files? http://www.dsilvera.com/forum/mods/active_users.zip doesn't work

Brad
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 01 August 2001 :  13:03:01  Show Profile
This works

http://www16.brinkster.com/richardk/files/active_users_setup.zip

http://www.ugfl.net/forums
Go to Top of Page

ispart
Starting Member

31 Posts

Posted - 02 August 2001 :  08:22:05  Show Profile
does anyone has a link to the mod all the other links are broken
Thanks

Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 02 August 2001 :  10:18:22  Show Profile
Ispart,

Look at my last post. Just posted a working link http://www16.brinkster.com/richardk/files/active_users_setup.zip

I JUST tried it and it's working for me.


http://www.ugfl.net/forums
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 02 August 2001 :  10:31:42  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
thanks big9erfan

quote:

This works

http://www16.brinkster.com/richardk/files/active_users_setup.zip

http://www.ugfl.net/forums



Brad
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 02 August 2001 :  11:54:05  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
how about active.asp? the file you linked us to only have the setup file for the database (which did not work with installing on SQL Server by the way. I found the code for the inc_top.asp file but I just need an active.asp file for the active users

Brad
Go to Top of Page

MotoX
Junior Member

201 Posts

Posted - 02 August 2001 :  12:32:43  Show Profile
Hi,
I was wondering if someone can help me figure this out. I am using this MOD on version 3.3 and everything is working fine EXCEPT:

1.) When a user is JUST in a forum, their location shows up blank on active_users.asp

2.) When a users is JUST viewing a topic, the location shows up as Viewing Message ''

Everything else works, when they are relplying to a topic, it shows up correctly, and when they are posting a new topic, it shows up correctly. I believe it has something to do with the code that goes into inc_top.asp, but I have been unable to figure out what it is:

quote:
' TRY AND FIND OUT WHAT PAGE THEY ARE ON
If lcase(Right(strOnlinePathInfo, 9)) = "forum.asp" Then
strOnlineLocation = "<a href=""forum.asp?" & strOnlineQueryString & """>" & Request.QueryString("Forum_Title") & "</a>" this is where it is blank
ElseIf lcase(Right(strOnlinePathInfo, 9)) = "topic.asp" Then
strOnlineLocation = "Viewing Message ' <a href=""link.asp?TOPIC_ID=" & Request.QueryString("TOPIC_ID") & """>" & Request.QueryString("Topic_Title") & "</a> '"this is where is doesn't show WHAT topic
ElseIf lcase(Right(strOnlinePathInfo, 8)) = "post.asp" Then
If Request.QueryString("method") = "Reply" Then
strOnlineLocation = "Replying To Message ' <a href=""topic.asp?" & strOnlineQueryString & """>" & Request.QueryString("Topic_Title") & "</a> '"
ElseIf Request.QueryString("method") = "Topic" Then
strOnlineLocation = "Posting New Topic in ' <a href=""forum.asp?" & strOnlineQueryString & """>" & Request.QueryString("Forum_Title") & "</a> '"
Else
strOnlineLocation = "Unknown"
End If


The last two ElseIf's are working. The others are not.

Can anyone offer a suggestion?



Edited by - MotoX on 02 August 2001 12:36:54
Go to Top of Page

big9erfan
Average Member

540 Posts

Posted - 02 August 2001 :  13:47:09  Show Profile
Motox,

v 3.3 has changed and the title of the forum is no longer passed along in the query string. That portion of this mod will have to be updated for use with 3.3



http://www.ugfl.net/forums
Go to Top of Page
Page: of 16 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07