Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Viewing
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

kolucoms6
Average Member

845 Posts

Posted - 15 May 2007 :  12:48:42  Show Profile

I have seen a feature in other forums where it shows how many users viewing a particular category.

Any MOD for our forum also ?

JJenson
Advanced Member

USA
2121 Posts

Posted - 15 May 2007 :  12:51:03  Show Profile  Visit JJenson's Homepage
active users mod does this I believe by viewing active.asp. I am sure if its not built in you could probably modify it to show on the bottom of the forums. But not sure for sure.
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 15 May 2007 :  12:54:22  Show Profile
Active Users shows how many logged in but not current viewing a particular category.
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 15 May 2007 :  12:58:54  Show Profile  Visit MaD2ko0l's Homepage
have a look through the archives...there was mods like this...they may need to be updated to snitz 3.4+

© 1999-2010 MaD2ko0l
Go to Top of Page

Jezmeister
Senior Member

United Kingdom
1141 Posts

Posted - 15 May 2007 :  13:27:43  Show Profile  Visit Jezmeister's Homepage
active users could certainly be modified to do that, if you store the AU data in the database, make sure that AU is noting all querystrings then you can query for people in the AU table on the relevant page with the same ID using regular expressions or you could extend AU to save the ID QS seperately and again a simple query would do it but without regexp.

Edited by - Jezmeister on 15 May 2007 13:28:59
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 15 May 2007 :  13:46:22  Show Profile  Visit AnonJr's Homepage
I think MaD2ko0l was right though, I seem to remember there was another MOD that did this... if memory serves ServerHacker had built it into his portal (when it was still with us)
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 15 May 2007 :  16:12:48  Show Profile  Visit MaD2ko0l's Homepage
i think it was called "who is inside" or somthing along them lines

© 1999-2010 MaD2ko0l
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 15 May 2007 :  17:55:16  Show Profile
Ok Thanks a lot.. let me check it...

Btw, can we search in http://www.snitzbitz.com ?
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 15 May 2007 :  19:46:07  Show Profile  Visit AnonJr's Homepage
No. But I don't think it was up there anyway. I think it was in the MODs w/code forum. I could be mistaken though as I've only heard of it in passing. You may want to try and contact ServerHacker as he did have it in his portal. He could probably let you know where it was.
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 15 May 2007 :  20:28:15  Show Profile  Visit JJenson's Homepage
The name of the other modded forum has escaped me but doesn't he have this same feature in his forum as well?
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 15 May 2007 :  22:18:31  Show Profile  Visit AnonJr's Homepage
Who, Image? I can't say, I haven't played with his portal much.
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 16 May 2007 :  12:31:38  Show Profile  Visit modifichicci's Homepage
Image portal had the whoisinside mod installed until some month ago, after it is changed by image with his code taking data from active users table.
The original whoisinside mod is by huwr and is tested for version 3.03

A simply version of this mod is installed in italian version Platinumfull that you can find in the download section of www.superdeejay.net

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 16 May 2007 :  20:03:51  Show Profile  Visit muzishun's Homepage
I've got this MOD somewhere. I don't remember what it was called or who made it, though. I'm on my way out the door right now, but I'll see if I can track it down later this evening.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 02 June 2007 :  18:16:35  Show Profile

Sorry buit I didnt get this MOD.
Go to Top of Page

muzishun
Senior Member

United States
1079 Posts

Posted - 02 June 2007 :  22:08:22  Show Profile  Visit muzishun's Homepage
Well, I couldn't find this for the life of me, so I decided to just write up the code. I've tested this on MySQL, and it worked there. This add-on assumes you're using the Active Users MOD (not Active Users Lite... I didn't test with that).

All line numbers here will assume a clean 3.4.06 install.

In topic.asp, around line 411-412, find this code:

Response.Write "</font></td>" & vbNewLine & _
" <td align=""center"" width=""50%"">" & vbNewLine

Above that, add this code:

Response.write "<br /> " & getCurrentIcon(strIconBlank,"","") & getCurrentIcon(strIconBlank,"","") & getCurrentIcon(strIconBlank,"","") & getCurrentIcon(strIconBar,"","") & " Viewing: "

'## Ls3k - Get Online Members information, and print whatever we get
strSql = "SELECT ME.MEMBER_ID, ME.M_NAME, ME.M_AUHIDE, AU.AU_IP, AU.AU_LOGINTIME, AU.AU_LASTACTIVETIME, AU.AU_LASTPAGE, ME.M_ICQ, ME.M_YAHOO, ME.M_AIM, ME.M_MSN, ME.M_LEVEL, AU.AU_QUERYSTRING, AU.AU_USER_AGENT " & _
"FROM " & strTablePrefix & "ACTIVE_USERS AU, " & strMemberTablePrefix & "MEMBERS ME " & _
"WHERE AU.MEMBER_ID = ME.MEMBER_ID AND AU.AU_LASTPAGE = '" & Right(Request.ServerVariables("SCRIPT_NAME"),InStrRev(Request.ServerVariables("SCRIPT_NAME"),"/")) & "' " & _
"AND AU.AU_QUERYSTRING = '" & Request.QueryString & "';"
set rsAM = my_conn.execute (strSql)

if rsAM.EOF or rsAM.BOF then
'Do Nothing
else
x = 0
do until rsAM.EOF
strLastPage = rsAM("AU_LASTPAGE")
strQS = rsAM("AU_QUERYSTRING")
If x > 0 Then Response.write(", ")
if (rsAM("M_AUHIDE")="1" or isNull(rsAM("M_AUHIDE"))) or strAUAnon = 0 or bolOverride then 'If not anonymous, then lets show em.
if strUseExtendedProfile then
response.write " <a href=""pop_profile.asp?mode=display&id="& rsAM("MEMBER_ID") & """>"
else
response.write " <a href=""JavaScript:openWindow2('pop_profile.asp?mode=display&id=" & rsAM("MEMBER_ID") & "')"">"
end if

if rsAM("M_LEVEL") = 2 then 'If admin or mod, then lets hilight em.
response.write "<strong><span class=""AUModCol"">"
elseif rsAM("M_LEVEL") = 3 then
response.write "<strong><span class=""AUAdminCol"">"
end if

response.write rsAM("M_NAME")
if rsAM("M_LEVEL") = 2 or rsAM("M_LEVEL") = 3 then
response.write "</span></strong>"
end if
response.write "</a>"
else
response.write "[Anonymous]"
end if

rsAM.movenext
x = x + 1
loop
rsAM.close
set rsAM = nothing
end if

strSql = "SELECT COUNT(AU_IP) AS CNT " & _
"FROM " & strTablePrefix & "ACTIVE_USERS WHERE MEMBER_ID = -1 AND AU_LASTPAGE = '" & Right(Request.ServerVariables("SCRIPT_NAME"),InStrRev(Request.ServerVariables("SCRIPT_NAME"),"/")) & "' " & _
"AND AU_QUERYSTRING = '" & Request.QueryString & "';"
set rsAG = my_conn.execute (strSql)

intTotalActiveGuests = rsAG("CNT")

if intTotalActiveGuests = 0 then
rsAG.close
set rsAG = nothing
else
If x > 0 Then
Response.write ", " & intTotalActiveGuests & " Guests"
Else
Response.write intTotalActiveGuests & " Guests"
End If

rsAG.close
set rsAG = nothing
end if


This will display the users viewing individual topics. The same principle would apply to other pages on the site. Find the code displaying the breadcrumbs menu and add the code above at the bottom of it.

Let me know if this works/doesn't work or if anyone has any questions.

Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 03 June 2007 :  02:20:49  Show Profile

Does it work with Default.asp to find out how many viewers viewing a particular category ?
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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.62 seconds. Powered By: Snitz Forums 2000 Version 3.4.07