Author |
Topic |
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 12 January 2003 : 14:50:30
|
Firstly, I think there should be a link to down.asp on admin_home.asp. Right now you first have to go to the admin section and then go back to default.asp, or stay in the admin section and enter the URL manually. One link extra on admin_home.asp would make things a lot easier, and more people would know they can actually shut down their forums. If this was already planned, you can ignore my comments
Also, on the admin part of down.asp, the body and html tags aren't closed, but they are on the part where the message is shown to visitors. By moving lines 151 and 152 to below the end if, that problem will be solved. Lines 150 to 154 now:
"</table>" & vbNewLine & _
"</body>" & vbNewLine & _
"</html>" & vbNewLine
end if
%> Lines 150 to 154 "improved":
"</table>" & vbNewLine
end if
Response.Write "</body>" & vbNewLine & _
"</html>" & vbNewLine
%>
It's a small change, and probably not important as I've never gotten any bad results without those two lines, but it might just as well be fixed in an upcoming release. |
Edited by - Davio on 08 March 2003 17:14:08 |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 13 February 2003 : 11:44:45
|
Question: will something be done with the information given in my post in the next version? I know it's not important as a big security bug, but still |
|
|
Deleted
deleted
4116 Posts |
Posted - 13 February 2003 : 13:10:08
|
I mentioned the same reasoning multiple times. If there is no idea agains this, I can implement it easily. We can actually save the code that exists in default.asp (one of the most hit pages) which shows the down icon.
Davio, what do you think?
|
Stop the WAR! |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 13 February 2003 : 13:24:27
|
No problem against it. Show the down link just for admins only. |
Support Snitz Forums
|
|
|
Deleted
deleted
4116 Posts |
Posted - 13 February 2003 : 13:42:30
|
As it will be in admin_home.asp page, they must be admins. Did you mean main admin only?
|
Stop the WAR! |
|
|
Deleted
deleted
4116 Posts |
Posted - 13 February 2003 : 13:50:13
|
The down link in admin_home has been implemented in v4b04 alpha 03. I left the icon based one as it executes if mlev=4 already...
|
Stop the WAR! |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 13 February 2003 : 14:06:51
|
thanks And the little HTML inconsistency on down.asp? It's kind of important when the page is supposed to be integrated into the site's design (that's how I found out about it). |
|
|
Deleted
deleted
4116 Posts |
Posted - 13 February 2003 : 14:23:03
|
I corrected that adding the two lines at the end of the THEN part... That method seemed better to me, so that the whole HTML is in one place.
|
Stop the WAR! |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 13 February 2003 : 17:04:27
|
In the end the important thing is that it works, right? |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 25 February 2003 : 17:13:55
|
Hi everyone,
In talking about the next version....
I understand that the way that down.asp keeps the forum down is through a configuration value, and it is not stored in the database. Can this be fixed, every-time I close the forum, it re-opens when the server is rebooted. Or can someone start me in the direction to fix it myself? |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 25 February 2003 : 20:28:15
|
it was never meant to actually take down the forum for extended periods of time. The only reason it was included was for taking down the forum when compacting an Access Database. A server reboot is not the only way that the forum can be reopened without actually opening it yourself. |
|
|
Dave.
Senior Member
USA
1037 Posts |
Posted - 25 February 2003 : 20:51:11
|
quote: Originally posted by RichardKinser
it was never meant to actually take down the forum for extended periods of time. The only reason it was included was for taking down the forum when compacting an Access Database. A server reboot is not the only way that the forum can be reopened without actually opening it yourself.
Oh....That explains it, thank you. |
|
|
Deleted
deleted
4116 Posts |
Posted - 26 February 2003 : 00:16:47
|
quote: Originally posted by Dave6625
Hi everyone, Or can someone start me in the direction to fix it myself?
It also happened to me especially with development forums with different directories, such as "/v4b01", "v4b02/" etc. I close it and change the directory name to something like "/v4b01_closed" to get rid of it completely.
Here is another solution you can implement by hand, if you want to keep the message (and loose some server resources). Put the red code below into your your config.asp:
strUniqueID = "Snitz00"
Application.Lock
Application(strCookieURL & "ConfigLoaded")= "YES"
Application(strCookieURL & "down") = true
Application(strCookieURL & "DownMessage") = "Type your down message here"
Application.UnLock
if Application(strCookieURL & "ConfigLoaded")= "" or ...
|
Stop the WAR! |
Edited by - Deleted on 26 February 2003 00:19:43 |
|
|
Deleted
deleted
4116 Posts |
Posted - 26 February 2003 : 00:52:42
|
Just came into my mind. You can just put a redirect to your own down.page. Use the same place to put it:
response.redirect "downpage.htm"
|
Stop the WAR! |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 08 March 2003 : 16:51:21
|
Placed the link to shut down the forums in admin options. Fixed the html bug.
Fixed in 3.4.04 |
Support Snitz Forums
|
|
|
|
Topic |
|