Post by John on Jul 23, 2006 9:55:04 GMT
After much thought and design and repairs to the first version i have spent much time on the new one.
The Mb PM Bar 2.0
New Features:
Options for just about every aspect of the pm bar.
News inbuilt in the bar making it easier.
You can use it just as a News Bar but it was made for both.
No errors for Guests! in version 1.X there was glitches in FF for Guests but with this version 5 people have tested it and assured me it works perfectly in IE and FF.
Preview: Clicky
Now for the code.
Place this at the top of the GLOBAL HEADER
<!-- Code May Not Be Reposted Without Permission From The Creator-->
<!-- Variables -->
<script type="text/javascript">
<!--
//EDIT BELOW
boardurl = 'Your board URL to the .com part' // VERY IMPORTANT.
var invname = 'Personal Box' // Name Of The Info Box
var pmnam = 'Private Messages' // Name For Private Messages Info
var pminf = '1' // Do you want the PM Numbers Shown? 1 For Yes 0 For No
var newsnam = 'News' // Name For News Info
var newsinf = '1' // Display News? 1 For Yes 0 For No
var newsmar = '1' // Do You Want The News As A Marquee? 1 For Yes 0 For No
var newsmarspd = '2' // Speed Of The Marquee
var newsmardir = 'left' // Direction Of Marquee
var news = 'The New Mb PM Bar 2.0' // The News Obviesly.
//DO NOT EDIT BELOW
if (pb_username=='Guest'){document.write(" ")}
else{
var td = document.getElementsByTagName("td")[2];
var pmnumber = (td.innerHTML.match(/(\d+) (are|is) new/i)) ? RegExp.$1:invalid
var pmtotal = (td.innerHTML.match(/(\d+) message(s?)/i)) ? RegExp.$1:'';
}
//-->
</script>
PLACE THE BELOW SECTION OF CODE DIRECTLY BELOW THE ABOVE CODE IN THE GLOBAL HEADER.
EDIT the red text only instructions on editing those red areas are on the right hand side of that option different options have different instructions.
Link problem Fixed.
Forum width code conflict resolved.
Cross Browser compatability has now been added.
The Mb PM Bar 2.0
New Features:
Options for just about every aspect of the pm bar.
News inbuilt in the bar making it easier.
You can use it just as a News Bar but it was made for both.
No errors for Guests! in version 1.X there was glitches in FF for Guests but with this version 5 people have tested it and assured me it works perfectly in IE and FF.
Preview: Clicky
Now for the code.
Place this at the top of the GLOBAL HEADER
<!-- Code May Not Be Reposted Without Permission From The Creator-->
<!-- Variables -->
<script type="text/javascript">
<!--
//EDIT BELOW
boardurl = 'Your board URL to the .com part' // VERY IMPORTANT.
var invname = 'Personal Box' // Name Of The Info Box
var pmnam = 'Private Messages' // Name For Private Messages Info
var pminf = '1' // Do you want the PM Numbers Shown? 1 For Yes 0 For No
var newsnam = 'News' // Name For News Info
var newsinf = '1' // Display News? 1 For Yes 0 For No
var newsmar = '1' // Do You Want The News As A Marquee? 1 For Yes 0 For No
var newsmarspd = '2' // Speed Of The Marquee
var newsmardir = 'left' // Direction Of Marquee
var news = 'The New Mb PM Bar 2.0' // The News Obviesly.
//DO NOT EDIT BELOW
if (pb_username=='Guest'){document.write(" ")}
else{
var td = document.getElementsByTagName("td")[2];
var pmnumber = (td.innerHTML.match(/(\d+) (are|is) new/i)) ? RegExp.$1:invalid
var pmtotal = (td.innerHTML.match(/(\d+) message(s?)/i)) ? RegExp.$1:'';
}
//-->
</script>
PLACE THE BELOW SECTION OF CODE DIRECTLY BELOW THE ABOVE CODE IN THE GLOBAL HEADER.
<!-- Code May Not Be Reposted Without Permission From The Creator-->
<!-- source script for personal box. Do not delete. Edit at your own risk. -->
<table class="bordercolor" border="0" cellspacing="0" align="center" width="92%"><tr><td border="0" cellspacing="0" align="center" width="100%"><table class="titlebg" align="center" width="100%" cellspacing="0" cellpadding="0"><tr><td class="titlebg" width="100%" align="center"><script type="text/Javascript"><!--
document.write(invname)
//--></script></td></tr></table><table class="catbg" width="35%" align="left" cellpadding="0" cellspacing="0"><tr><td class="catbg" align="center" width="100%"><script type="text/javascript"><!--
if (pminf==1)
{document.write(pmnam)} //--></script>
</td></tr><tr><td class="windowbg" align="center" width="100%" height="30"><script type="text/javascript"><!--
if (pminf==1&&pb_username=='Guest'){document.write("Please Login To View PM's")}
else if (pminf==1)
{document.write("<a href='"+boardurl+"/index.cgi?action=pm'>Hey, "+pb_displayname+", You have "+pmtotal+" of these "+pmnumber+" are new.</a>")}
//--></script></td></tr></table><table class="catbg" align="right" width="65%" cellpadding="0" cellspacing="0"><tr><td class="catbg" width="100%" align="center"><script type="text/javascript"><!--
if (newsinf==1)
{document.write(newsnam)} //--></script>
</td></tr><tr><td class="windowbg" align="center" width="100%" height="30"><script type="text/javascript"><!--
if (newsinf==1&&newsmar==1)
{document.write("<marquee direction='"+newsmardir+"' scrollamount='"+newsmarspd+"'>"+news+"</marquee>")}//--></script></td></tr></table></td></tr></table>
EDIT the red text only instructions on editing those red areas are on the right hand side of that option different options have different instructions.
Link problem Fixed.
Forum width code conflict resolved.
Cross Browser compatability has now been added.