Author |
Topic |
pox
Junior Member
Denmark
110 Posts |
Posted - 23 July 2001 : 16:24:50
|
the link to the zip is down! :
|
|
|
big9erfan
Average Member
540 Posts |
|
Rawly
Starting Member
United Kingdom
41 Posts |
Posted - 24 July 2001 : 14:48:02
|
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 |
|
|
big9erfan
Average Member
540 Posts |
|
Cyber Paladin
New Member
55 Posts |
Posted - 24 July 2001 : 19:56:03
|
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. :)
|
|
|
Chinners
Starting Member
United Kingdom
42 Posts |
Posted - 31 July 2001 : 07:46:36
|
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)
|
|
|
big9erfan
Average Member
540 Posts |
Posted - 31 July 2001 : 13:47:31
|
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 |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
|
big9erfan
Average Member
540 Posts |
|
ispart
Starting Member
31 Posts |
Posted - 02 August 2001 : 08:22:05
|
does anyone has a link to the mod all the other links are broken Thanks
|
|
|
big9erfan
Average Member
540 Posts |
|
redbrad0
Advanced Member
USA
3725 Posts |
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 02 August 2001 : 11:54:05
|
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 |
|
|
MotoX
Junior Member
201 Posts |
Posted - 02 August 2001 : 12:32:43
|
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 |
|
|
big9erfan
Average Member
540 Posts |
Posted - 02 August 2001 : 13:47:09
|
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 |
|
|
Topic |
|