|
Post by Smangii on Jun 29, 2007 16:50:02 GMT -5
Meh...some people were asking for it. So, here it is. Just a message that displays at the top of the forum for guests ONLY. It's in a yellow-bordered box as an "attention grabber". Feel free to change colors and message, etc Cross-browser, open source. Enjoy <script type="text/javascript"> /* Guest Message v1 - by Smangii http://smangii.proboards78.com - Open Source */
document.write('<table width="auto" align="center" cellspacing="1" cellpadding="5"><tr><td align="center" style="border: 1px solid #FFFF00;" id="gnote"></td></tr></table>')
var gnote = document.getElementById("gnote"); if(pb_username == 'Guest'){ gnote.innerHTML = '<b>Hello there!</b> You are currently viewing this forum as a Guest.</br>Please <a href="/index.cgi?action=login">Login</a> or <a href="/index.cgi?action=register">Register</a> to experience this forum fully. Thank you for visiting!'; } if(TD[2].innerHTML.match(/,\s(\d+)\s(is|are)/)){ gnote.parentNode.style.display = 'none'; } </script>
Global headers is a nice spot
|
|
|
Post by eliana on Feb 3, 2008 18:52:02 GMT -5
Can you give a preview, if possible...?
|
|
|
Post by horus on Oct 3, 2008 12:34:19 GMT -5
I love this lil guest box thingy. Great JOB!
|
|