Author |
Topic |
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 19 December 2000 : 19:56:12
|
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 |
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 02:35:55
|
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 |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 20 December 2000 : 02:41:31
|
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 |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 December 2000 : 02:45:27
|
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>
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 December 2000 : 02:50:03
|
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. |
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 20 December 2000 : 02:50:31
|
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 |
|
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 02:57:34
|
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/
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 20 December 2000 : 03:02:16
|
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 |
|
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 04:16:35
|
i replace 2 instances of those yummy cookie like Richard said and now i think it working Thanks Richard and Brad :)
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 20 December 2000 : 04:29:34
|
<img src=icon_smile_big.gif border=0 align=middle> Glad it's working for ya! |
|
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 04:45:24
|
And its still work !.. i amaze myself sometime <img src=icon_smile_big.gif border=0 align=middle>
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 20 December 2000 : 07:17:29
|
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 |
|
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 07:30:20
|
<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 :)
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 20 December 2000 : 07:33:05
|
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 |
|
|
evehawk
New Member
Australia
65 Posts |
Posted - 20 December 2000 : 07:54:35
|
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>
|
|
|
Topic |
|