Back to Programming Articles

New look when the forum is OFF
by BoYagoob 28 Apr 2006
Rating: (1 vote - 5.00 average)

Hello,
This is a very small modification and in the same time it is my first hack.

What it does: when you turn your forum off, the letters for what ever you write in the field for the reason of closing the forum will be moved (like typing).

Time to install: ~ 1 sec.

Demo: http://www.qataru.net/vb354/index.php.

How to install: in the field for the reason of closing the forum, just place the content with the following: (of course you can change the content reason).

PHP Code:
<span id="typing">


Sorrythe board is unavailable at the moment while we are testing some functionality.
<
br>
We will be back soon...
<
br>

</
span>

<
script type="text/javascript">

interval 100// Interval in milliseconds to wait between characters

if(document.getElementById) {
  
document.getElementById("typing");
  if(
t.innerHTML) {
    
typingBuffer ""// buffer prevents some browsers stripping spaces
    
it 0;
    
mytext t.innerHTML;
    
t.innerHTML "";
    
typeit();
  }
}

function 
typeit() {
  
// mytext = mytext.replace(/<([^<])*>/, "");     // Strip HTML from text
  
if(it mytext.length) {
    
typingBuffer += mytext.charAt(it);
    
t.innerHTML typingBuffer;
    
it++;
    
setTimeout("typeit()"interval);
  }
}
</
script
Attached Files
File Type: txt Typing_vBulletin_OFF.txt (1.3 KB, 160 views)

Similar Mods

Forum Display Enhancements Localize (translate) forum name, forum titles & forum descriptions vBulletin 3.6 Add-ons
Forum Activity Check For Forum Access (Per Forum) vBulletin 3.0 Beta Releases

vblts.ru supports vBulletin®, 2022-2024