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
Next Page
Author Previous Topic Topic Next Topic
Page: of 16

redbrad0
Advanced Member

USA
3725 Posts

Posted - 19 December 2000 :  19:56:12  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Ok I have updated the Active Users and this will allow you to view the users IP Address if you are logged in as an Admin or a Moderator. Please give me your feedback. If you have installed the Previous Active User Mod you will still need to run active_users_setup.asp along with replacing all code with this new code for the ip logging to work.

Brad

http://www.freeaspcode.net/active_users.zip

Brad

bugzy
Junior Member

USA
147 Posts

Posted - 19 December 2000 :  21:07:18  Show Profile  Visit bugzy's Homepage
i guess my site was the guinea pig test site

check it out ..

http://bamboo.azian.com/forum/active_users.asp

Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  02:35:55  Show Profile  Send evehawk an ICQ Message
Brad, thanks for the mod :)

How do i add this to inc_top.asp ? It work with default.asp but only display everyone as guests when i add it to inc_top.asp
I am testing it on SR3 .

Thanks



Edited by - evehawk on 20 December 2000 02:44:02
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 December 2000 :  02:41:31  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
If you downloaded the new version of this forum, your kinda on your own. Basically the problem is that the new forum, they changed the cookie up some. The wa I retrieve the username is use this line of code....

strOnlineUser = Request.Cookies(strCookieURL & "User")("Name")

The new forum uses something other than strCookieURL but im not sure what it is, i dont plan on upgrading to it till i see a good reason why

Brad
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 December 2000 :  02:45:27  Show Profile
evehawk,

On mine I placed the code between:

</head>

and

<body>

(The body line is actually a lot longer just didn't include it here...)

Look around Line #107 in <b>inc_top.asp</b>

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 December 2000 :  02:50:03  Show Profile
redbrad0,

strDBNTUserName was added to the forum in ver 3.1

It is for compatibility between non-NT mode and NT mode. It also makes things easier for mod-writers because your mods will work between version if, like in this case, the cookies are changed.

This is at the top of <b>inc_top.asp</b>:

<font size=1><pre id=code><font face=courier size=2 id=code> strDBNTUserName = Request.Cookies(strUniqueID & "User")("Name")
strDBNTFUserName = Request.Form("Name")
if strAuthType = "nt" then
strDBNTUserName = Session(strCookieURL & "userID")
strDBNTFUserName = Session(strCookieURL & "userID")
end if</font id=code></pre id=code></font id=size1>

so instead of calling using <b>Request.Cookies(strCookieURL & "User")("Name")</b> in your mod, all you have to do is change all instances of it with <b>strDBNTUserName</b> and it will be compatible with both SR2 and the new SR3.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 December 2000 :  02:50:31  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
ops forgot to answer that question, thanks richard for having my back. Hey richard do you have AIM? if so can you send me an IM ( redbrad0 ) thanks

Brad

Brad
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  02:57:34  Show Profile  Send evehawk an ICQ Message
Richard, that where i place mine too. what i mean is the line:
a href="active_users.asp" >Active Users .... <%=strOnlineGuestsCount%> Guests
I like the active users visible all the time disregard of where the user are..

The test forum is at:
http://ww.domaindlx.com/evehawk/

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 December 2000 :  03:02:16  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I would stick it right under if you are loged in or not. I believe that is the very last line in your inc_top.asp, add it there and see what you think.

Brad
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  04:16:35  Show Profile  Send evehawk an ICQ Message
i replace 2 instances of those yummy cookie like Richard said and now i think it working
Thanks Richard and Brad :)


Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 December 2000 :  04:29:34  Show Profile
<img src=icon_smile_big.gif border=0 align=middle> Glad it's working for ya!
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  04:45:24  Show Profile  Send evehawk an ICQ Message
And its still work !.. i amaze myself sometime <img src=icon_smile_big.gif border=0 align=middle>

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 December 2000 :  07:17:29  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
Ok I tried to get this so everyone could use it no matter what version of the forum they have. Please download the new version of all the files and hopefully this will work for everyone now.

<b>evehawk</b>,
I am still working on the Forum Stats MOD, but I will be more than happy to give you the code I have so far, but I am not done with it yet. Basically the only thing left for me to do is make it where it will group all the stats together by day, month, or year. hopefully i will be able to get that to work soon. Also when you sign-up on my forum, it actually signs you up to use the entire site. So the newsletter is one that someday i might actually send out, but right now I have never sent one out. I just have some much other stuff I am doing, I dont really even work on the site anymore. So if anyone would want to help with it, send me an email and we can talk about what you could get from it.

http://www.freeaspcode.net/forum

Brad

ZIP FILE IS LOCATED HERE: http://www.freeaspcode.net/active_users.zip

Edited by - redbrad0 on 20 December 2000 07:18:30
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  07:30:20  Show Profile  Send evehawk an ICQ Message
<font color=red>Red</font id=red>Brad,
Thanks for the offer but please dont worry about me, I still use SR2 with mods. I will will try to install the new zip you post here and see how it goes.
One thing that i am interested in is the news letter bit you are talking about (great to have the member sign-in on front page). when you are finished with it i hope we can share it with you.
Thanks :)


Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 20 December 2000 :  07:33:05  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
well for the newsletter, i was not planning on making that any kind of modification, but as soon as i finish booth of these i will try and make something for you.

Brad
Go to Top of Page

evehawk
New Member

Australia
65 Posts

Posted - 20 December 2000 :  07:54:35  Show Profile  Send evehawk an ICQ Message
Cool <img src=icon_smile_cool.gif border=0 align=middle><img src=icon_smile_big.gif border=0 align=middle><img src=icon_smile_approve.gif border=0 align=middle>

Go to Top of Page
Page: of 16 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.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07