PDA

View Full Version : Can vB be made to ping another site before ...


FUD
04-20-2003, 01:46 PM
Our server admin has been called away for several months and with him gone, we are experiencing a great deal of down time -- an hour here, a couple of hours there, etc.

I'm wondering if it is possible to: Buy another vB license and install it on another server? ( ... should be no problem with doing that ...)

( ... here's the hard parts ...) Configure vB so that when someone tries to use it (to either view or post), it will first check the primary site (by ping'ing or some other method which might be easier to program) to see if the main site is up.

A. If the main board is up, then vB will forward the user to the main board.

B. If the main board is down, then vB will allow the user to carry out the action (post or view). I don't want to have both boards up at the same time because we already tried something like that a couple of years ago and it lead to confusion and a weakening of the board since the membership was split across the two sites and we were in effect competting with ourselves.

However, members are calling for a place to hang out during down time. I would envision the back-up site to just be a skelton site with a staff room and a single forum for the members.

Is this possible? Has something like this been done? Any comments / suggestions on how to do something like this would be appreciated. Thanks in advance.

gengar003
04-20-2003, 10:52 PM
I'm by no means experienced, but I think I might no how to help.

1. on the main site, make a seperate .html page, for purposes of this example, test.html with the following contents:

<script>

function openpopup(){
var popurl="http://yourmainsite.com/vb/"
winpops=window.open(popurl,"","width=800,height=600,toolbar,location,directories ,status,scrollbars,menubar,resizable,")
}

openpopup()

</script>

what that does is automatically goes to your main site 1 second after the page loads.

2. on your backup board, put this code, in the footer template:

<iframe name="iframe" src="http://yourmainsite.com/yourdir/test.html" frameborder="0" border="0" scrolling="no" width="0" height="0" MARGINWIDTH=0
MARGINHEIGHT=0 noresize></iframe>

what this does is places in invisible Iframe at the bottom of your backup board, and fills the iframe with a javascript code that will popup your main forums page. thus, if your backup forum is hosted on a DIFFERENT server than your main one, when the main one is down, the little Iframe will not load, and members will not see the main forums popped up, but if it IS up, then they'll be redirected.

also, change "http://yourmainsite.com/yourdir/test.html" to the location of the testing page, and change "http://yourmainsite.com/vb/" to your main forums directory.

FUD
04-21-2003, 01:33 AM
Thanks for the input. Now that I know that this is possible, we'll have to have a fund raiser to raise the money for another license and hosting services. Thank you again.