geke hand
E Z B O A R D
Announcement on Main Board Page Only

<< updated: 4/9/2003

Summary: Place an announcement in the General Settings / Announcement area on the main board page only.

Details:

Since the announcement area strips out quotes, we have to be creative. We put one script in the custom HEAD section and another in the Announcement box.

ANNOUNCEMENT:

<script type=text/javascript>if (sBoardAnnounce.length > 0)document.write(sBoardAnnounce);</script>

HEAD: (box #1)

<script type="text/javascript">
/* BEGIN EZURL */
ezURL = document.location.href.match("http:\/\/((?:pub|b|p)([0-9]+)|beta|vanchau|inbox)\.ezboard\.com\/(b|f)([a-zA-Z0-9]+(?=frm[0-9]+)|[a-zA-Z0-9]+(?!frm[0-9]+))(frm[0-9]+|)(?:(?:[\.]{1})([a-zA-Z0-9\=\+\&\.]+)|)(?:(?:[\x3F]{1})([a-zA-Z0-9\=\+\&\.]+)|)(?:.*)");
try {
if (ezURL.length > 0) {
ezPub = ezURL[2].length > 0 ? ezURL[2] : ezURL[1];
ezFullPub = ezURL[1];
ezIsBoard = ezURL[3] == "b" ? true : false;
ezBoardID = ezURL[4];
ezForum = ezURL[5];
ezPage = ezURL[6];
ezQuery = ezURL[7];
}
} catch (e) { }
ezURL = null;
/* END EZURL */
</script>

HEAD Notes:

This script is used in many of the other scripts offered here. Only one copy should be installed.

HEAD: (box #1)

<script type="text/javascript">
sBoardAnnounce = ezIsBoard ? "<p>this is my announcement</p>" : "";
</script>

HEAD Notes:

Edit "<p>this is my announcement</p>" to include the HTML you want in your announcement. Since it is a Javascript string, you will need to "escape" double quotes, \ characters and other non-character data. For example, write \" to escape a " and \\ to escape a \. Change line breaks (returns) into \n.

History:

4/9/2003 - oops! forgot to put ezURL code in the post
4/8/2003 - written by phalen180

Credits:

phalen180

E Z B O A R D

design by G E K E . N E T
best viewed in 1024x768 screen resolution using a standards compliant browser
logo based on a public domain drawing of a hand making the sign of the cross, no disrespect is intended
all other contents and code copyright © 2002-2005 jonathan cook

Valid HTML 4.01! Valid CSS!