Description:Adds a sidebar to your YaBB Board through which you can see each board and if there are new posts. You can see an example here:
http://www.boardmod.org/sidebar.phpThe sidebar has been tested and works fine for Mozilla 1.0, Netscape 6.0, Opera 6.0 and Internet Explorer 5.5.
Instructions:To add a button for your sidebar on your homepage, simply add the following code to your site:
To add a sidebar to your browser, click below:<br>
<script language="JavaScript">
<!--
// SET THESE VARIABLES ACCORDING TO YOUR BOARD URL AND TITLE
var YOUR_BOARD_URL = 'http://boardmod.yabbforum.com/yabb/YaBB.pl';
var YOUR_BOARD_TITLE = 'BoardMod Support Board';
var LINK_TEXT = 'Add Sidebar';
// var LINK_TEXT = '<img src="myicon.gif" alt="add sidebar">';
// NO NEED TO CHANGE ANYTHING BELOW
var agt = navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
var is_opera = (agt.indexOf("opera") != -1);
function addPanel(){
if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) {
window.sidebar.addPanel (YOUR_BOARD_TITLE,YOUR_BOARD_URL+'?action=sidebar',"");
} else {
var rv = window.confirm ("This page is enhanced for use with Mozilla." + "Would you like to visit Mozilla's website?");
if (rv) document.location.href = "http://www.mozilla.org";
}
}
if (is_nav) {
document.write('<a href="javascript:addPanel();">'+LINK_TEXT+'</a>');
} else if (is_ie) {
if (agt.indexOf("mac") != -1) {
document.write('Please drag <a href="'+YOUR_BOARD_URL+'?action=sidebar&type=IE">this link</a> into your page holder tab manually.');
} else {
document.write('<a ch\'))" rel="sidebar" title="'+YOUR_BOARD_TITLE+'">'+LINK_TEXT+'</a>');
}
} else if (is_opera) {
document.write('<a href="'+YOUR_BOARD_URL+'?action=sidebar" rel="sidebar" title="'+YOUR_BOARD_TITLE+'">'+LINK_TEXT+'</a>');
} else {
document.write('Sorry, Your browser does not support sidebars.');
}
//-->
</script>
<noscript>Sorry, you have to enable Javascript to add a sidebar.</noscript>
Make sure to change the YOUR_BOARD_URL and YOUR_BOARD_TITLE variables in the beginning of that code to fit for your board.
Next upload template_sidebar.html to your YaBB directory. You can access your sidebar through
http://www.yourboard.com/YaBB.pl?action=sidebar.
Notes:Note for IE users: Whenever you close your browser, the sidebar will be gone. To force IE to load the sidebar everytime you open your browser, you have to execute "add_sidebar_in_ie.ins". Also note that you have to modify the path to your forum in that file first before executing it! You may encounter an error message like "The Internet Wizard could not configure you computer for Internet. You will have to manually set up ..." when executing it but you can ignore it. All you have todo now is to activate the search bar in your browser.
Note: this mod was originally Hinkle's idea so all credits to him
New in version 1.6: compatible with MBC2 (More Board & Category Options 2)
New in version 1.5: added link for Mac IE users, replaced .reg file by .ins file because .reg file didn't work on all windows systems, support for SP 1.3.x
New in version 1.4: fixed some html errors
New in version 1.3: Added support for Internet Explorer
New in version 1.2: Smallish typo fixed, would cause the Opera part to malfunction. - SchOX.