|
Okay... so I decided to get a forum of my own, and I'm having some problems with a code.
I simply cannot manage to display a certain message when someone visits some pages.
For a better explanation:
Since the type of portal that I want for my forum isn't supported, I decided to do it on a board with the posting disabled, and also disable any other feature of the main page.
And what I want is to display a message on the main page for the visitors to go to the portal.
Here's one of the codes I tried:
<script>
if(document.location.href.match('SITE HERE')){
document.write("
<hr>
This is not a used page.<br />
Please click <a href=\"?board=home\">here</a> to go to the main page.
<hr>
");}
</script>
It's rabder a simple code, but I can't manage it.
Please help me!
P.S.: If it is of any use, the forum is hosted by proboard v4.
Last edited by arry4ever; 02-13-2009 at 03:50 PM..
Reason: Added Post Scriptum
|