// IPB Shoutbox 2.5: Build F // Original by Epsilekt, modified by Mwr247 // Last updated: 05/04/08 // http://z9.invisionfree.com/ShoutBoxCode/ var sbfrm=shoutboxfid; var sbtpc=shoutboxtid; var sbd=document; var sbwl=window.location; if(location.href.charAt(7)=='s'&&location.href.match('.invisionfree.com')){location.href='http://z'+location.href.split('http://s')[1];} var sburl=sbwl.href.split('index.php')[0]; if(!sburl){sburl=sbwl.href;} if(sburl.charAt(sburl.length-1)!='/'){sburl+='/';} var cab=true; var urlfix=sburl; while(urlfix.match(' ')){urlfix=urlfix.replace(' ','_');} if(sbd.cookie.match(urlfix+'theshoutbox=hide')){var cab=false;} var isguest=1; if(sbd.getElementById('userlinks').innerHTML.match(/Log Out/i)!=null){var isguest=0;} var hidefromguests=0; if(guestvisible==0&&isguest==1){var hidefromguests=1;} var ismod=0; if(sbd.getElementById('userlinks').innerHTML.match(/mod cp/i)!=null){var ismod=1;} var isadmin=0; if(sbd.getElementById('userlinks').innerHTML.match(/admin cp/i)!=null){var isadmin=1;} var viewmod=0; if(isadmin==1||(ismod==1&&modlink==1)){var viewmod=1;} var editopic=''; if(viewlink==1&&isguest==0&&viewmod==0){var editopic='- View';} var adminoptions=''; if(viewmod==1){var adminoptions='- Mod';} function togglemod(){ if(viewmod==1){sbd.getElementById('shoutcontent').innerHTML='
Shoutbox Links
Admin Links
Shoutbox News - 05/04/08
- Shoutbox Topic
- Shoutbox Forum
- Shouter Stats
- Support Topic
- Support Forum
- Big Boards
This has been listed in the bugs list for a while, but I want to make sure everyone is aware. To everyone with ad removal purchased on their board: Using this shoutbox will cause your credits to decline faster than normal due to the codes use of an iframe. Therefore, I highly recommend that you DO NOT use this code if you have ad removal.
';sbd.getElementById('shoutpages').innerHTML='Mod Area - (Back to Shoutbox)';}} function toggleinfo(){ sbd.getElementById('shoutcontent').innerHTML='Credits:
"IPB Shoutbox 2.5" by Mwr247
"IPB Shoutbox 2.0" (original code) by Epsilekt';sbd.getElementById('shoutpages').innerHTML='Shoutbox Info - (Back to Shoutbox)';} var onlyindex=0; var iof=sbd.getElementsByTagName('div'); for(i=0;i
 
Shoutbox '+editopic+'
';} var x=sbd.getElementsByTagName('A'); for(i=0;iMath.floor(st)){ sbwl=linkhr+'&stop=script'; var cab=false;} if(cab){ String.prototype.noHTML=function(){ var string=this; while(string.match('<')&&string.match('>')){ var html=string.split('<')[1].split('>')[0]; string=string.replace('<'+html+'>', '');} return string;} if(sbwl.href.match('showtopic='+sbtpc+'&')){ var shoutpages=parent.sbd.getElementById('shoutpages'); var shoutcontent=parent.sbd.getElementById('shoutcontent'); shoutcontent.innerHTML=''; shoutpages.innerHTML=''; shoutpages.style.display='none'; var sbpages=''; var x=sbd.getElementsByTagName('A'); for(i=0;i'+sbauthor+'
'+sbdate+''+x[i].innerHTML+''+sbposts;}}} if(shoutcontent){ if(sbposts==''){shoutcontent.innerHTML='There was an error loading the Shoutbox...';} else{shoutcontent.innerHTML=sbposts;}}} else{var sbreply=''; if(isguest==0||guestshouts==1){var sbreply='
   
';} else{var sbreply='
   
';} var shoutbox=sbd.getElementById('shoutbox'); var jumpfix=sbd.getElementById('jumpfix'); if(onlyindex==0&&hidefromguests==0){shoutbox.innerHTML='
 
Shoutbox '+adminoptions+editopic+'

Loading Shoutbox...
'+sbreply+'

 
';jumpfix.innerHTML='';}}} if(sbwl.href.match('act=Online')){ var x=sbd.getElementsByTagName('A'); for(i=0;i