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)
 Out Of Service
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

animedj
Junior Member

USA
190 Posts

Posted - 27 October 2000 :  02:26:16  Show Profile  Visit animedj's Homepage  Send animedj an ICQ Message
A small beta Mod to give a message OFFline when one is doing some upgrade or modification in the forums

http://animedj.com/hacks/outofservice.zip

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  06:37:13  Show Profile  Visit HuwR's Homepage
Can't seem to get it to work, have set the option and when I go to admin options it says its down, but It lets all my test users login no problem?

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

animedj
Junior Member

USA
190 Posts

Posted - 27 October 2000 :  10:14:49  Show Profile  Visit animedj's Homepage  Send animedj an ICQ Message
Sorry, it seems I got confused with the documentation. I fixed now in the zip, this is how it had to go (the mods have to be installed in a MODS directory inside the forums directory):

Approx. Line 66 after
mLev = cint(ChkUser2(Request.Cookies(strCookieURL & "User")("Name"), Request.Cookies(strCookieURL & "User")("Pword")))

Add:
if request.serverVariables("PATH_INFO") <> (strCookieURL & "admin_login.asp") then
if (Application("down") AND mLev <> 4) then
response.redirect "mods/down.asp"
end if
end if

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  13:02:23  Show Profile  Visit HuwR's Homepage
Sorry to be such a pain, it won't let you back in to change it.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

animedj
Junior Member

USA
190 Posts

Posted - 27 October 2000 :  13:24:03  Show Profile  Visit animedj's Homepage  Send animedj an ICQ Message
hmm.. if it won't let you back, then somehow your cookie got destroyed, then you need to go to admin_login.asp and log in again. (this mod needs cookies to be enabled)

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  13:29:24  Show Profile  Visit HuwR's Homepage
That's not the problem, it lets me into admin_login, but when I login it gives me the lockout screen.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  13:35:24  Show Profile  Visit HuwR's Homepage
I think this is whats happening, admin_login redirects you to admin_home on succesful login, you are then being prevented from getting into admin home because you are redirected to your down.asp, however it doesn't give you any form controls, just the message ?

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  13:41:30  Show Profile  Visit HuwR's Homepage
Sorted, I am using the latest beta 3 code, had to do this in down.asp

<pre id=code><font face=courier size=2 id=code>
strDBNTUserName = Request.Cookies(strCookieURL & "User")("Name")
strDBNTFUserName = Request.Form("Name")
if strAuthType = "nt" then
strDBNTUserName = Session(strCookieURL & "userID")
strDBNTFUserName = Session(strCookieURL & "userID")
end if
mLev = cint(ChkUser2(strDBNTUserName, Request.Cookies(strCookieURL & "User")("Pword")))

</font id=code></pre id=code>

Would be nice with a replacable message.

<font color=blue>'Resistance is futile'</font id=blue>

Edited by - huwr on 27 October 2000 13:42:33
Go to Top of Page

animedj
Junior Member

USA
190 Posts

Posted - 27 October 2000 :  13:45:13  Show Profile  Visit animedj's Homepage  Send animedj an ICQ Message
ohh, I know what's happening then.. you installed the mods in the root directory. then you need to modify down.asp too as it was designed to be inside a MODS directory.

you just need to comment out line 15

strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/mods/"))

then it should work fine.

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 27 October 2000 :  14:13:11  Show Profile  Visit HuwR's Homepage
Installed them in Mods as instructed.

your mlev function was returning 0

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 31 October 2000 :  04:24:08  Show Profile  Visit HuwR's Homepage
Not a bug, but a word of warning
in the following line
<pre id=code><font face=courier size=2 id=code>
strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/mods/"))

</font id=code></pre id=code>

the "/mods/" is CASE SENSITIVE

That's what was causing my problem, my directory was "Mods", changed the strcookie line to the same and all works.

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

slemieux
Junior Member

USA
234 Posts

Posted - 31 October 2000 :  05:47:25  Show Profile
Thanks animedj!!!

Installed this the other day without a hitch! Works great!
Didn't have any of the problems HuwR has had.

Scott LeMieux
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20590 Posts

Posted - 31 October 2000 :  06:07:04  Show Profile  Visit HuwR's Homepage
mine were all caused by the the fact that my directory was called Mods and not mods

<font color=blue>'Resistance is futile'</font id=blue>
Go to Top of Page

webshorts
New Member

USA
96 Posts

Posted - 31 October 2000 :  12:59:48  Show Profile  Visit webshorts's Homepage  Send webshorts an ICQ Message
I downloaded this file, and dropped it into my mods directory, and I have the mod commander installed, but it doesn't show up in my mod commander list. I also made the changes to inc_top, but I can't mark the forum "down" because I don't have the option in my admin panel.

Did I miss something?

I also am getting this error message before the mod commander table:

Microsoft VBScript runtime error '800a003e'
Input past end of file

/forum/mods/modCMD.asp, line 64

Daniel Short
Chief Designer,
Web Shorts Site Design

Free DHTML at DHTMLShock.com
JavaScript and DHTML forum, powered by Snitz

Edited by - webshorts on 31 October 2000 13:05:26
Go to Top of Page

webshorts
New Member

USA
96 Posts

Posted - 31 October 2000 :  13:21:15  Show Profile  Visit webshorts's Homepage  Send webshorts an ICQ Message
Hey anime, got it figured out. It was the outofservice.mod file that was causing the error. Here's your original file:

<pre id=code><font face=courier size=2 id=code>
Out of Service
down.asp
true
1.00</font id=code></pre id=code>

Here's the new one I uploaded, which works:

<pre id=code><font face=courier size=2 id=code>
Out of Service
down.asp
true
1.00
<blank line>
<blank line></font id=code></pre id=code>

Notice I had to add two more empty lines to the bottom of the file. The modCMD.asp was trying to readline lines that weren't there, so I had to make them empty.

Great work man.

Daniel Short
Chief Designer,
Web Shorts Site Design

Free DHTML at DHTMLShock.com
JavaScript and DHTML forum, powered by Snitz
Go to Top of Page

webshorts
New Member

USA
96 Posts

Posted - 31 October 2000 :  13:43:11  Show Profile  Visit webshorts's Homepage  Send webshorts an ICQ Message
Sorry, this just isn't working for me today. I locked down my board, and then went back to unlock it. Logged into admin_login.asp, and was forward to the /mods/down.asp page, but there was no way to UNLOCK the board. I've since removed the script from inc_top.asp and everything is working, but it just doesn't want to behave.

Daniel Short
Chief Designer,
Web Shorts Site Design

Free DHTML at DHTMLShock.com
JavaScript and DHTML forum, powered by Snitz
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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07