Author |
Topic  |
animedj
Junior Member
 
USA
190 Posts |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 06:37:13
|
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> |
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 27 October 2000 : 10:14:49
|
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
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 13:02:23
|
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> |
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 27 October 2000 : 13:24:03
|
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)
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 13:29:24
|
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> |
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 13:35:24
|
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> |
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 13:41:30
|
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 |
 |
|
animedj
Junior Member
 
USA
190 Posts |
Posted - 27 October 2000 : 13:45:13
|
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.
|
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 27 October 2000 : 14:13:11
|
Installed them in Mods as instructed.
your mlev function was returning 0
<font color=blue>'Resistance is futile'</font id=blue> |
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 31 October 2000 : 04:24:08
|
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> |
 |
|
slemieux
Junior Member
 
USA
234 Posts |
Posted - 31 October 2000 : 05:47:25
|
Thanks animedj!!!
Installed this the other day without a hitch! Works great! Didn't have any of the problems HuwR has had.
Scott LeMieux |
 |
|
HuwR
Forum Admin
    
United Kingdom
20590 Posts |
Posted - 31 October 2000 : 06:07:04
|
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> |
 |
|
webshorts
New Member

USA
96 Posts |
Posted - 31 October 2000 : 12:59:48
|
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 |
 |
|
webshorts
New Member

USA
96 Posts |
Posted - 31 October 2000 : 13:21:15
|
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 |
 |
|
webshorts
New Member

USA
96 Posts |
Posted - 31 October 2000 : 13:43:11
|
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 |
 |
|
Topic  |
|