vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   New look when the forum is OFF (https://vborg.vbsupport.ru/showthread.php?t=114276)

BoYagoob 04-27-2006 10:00 PM

New look when the forum is OFF
 
1 Attachment(s)
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: Click here.

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


Ziki 04-28-2006 04:06 AM

great!Actualy this is not a hack more or less.Looks like vb tip :)

Boofo 04-28-2006 04:13 AM

Does this have any server draw?

And please post a text file. ;)

BoYagoob 04-28-2006 04:31 AM

Thanks for installing and your replies :)

- Yes, it is not exactly a hack, it likes a vb tip as ZIKI-SET said.

- As you can see from the demo, I think it will not draw a lot from the server. Also, in the same time, the forum is closed, so no more load.

- a txt file was added.

Many thanks :)

Atakan KOC 04-28-2006 05:56 AM

Nice. Thanks. install click ;)

kall 04-28-2006 06:39 AM

Quote:

Originally Posted by ZIKI-SET
great!Actualy this is not a hack more or less.Looks like vb tip :)

Indeed. To fit into this Forum, (as per the box at the top) it must use a hook.

Doesn't appear to use a hook to me..

Boofo 04-28-2006 06:48 AM

Quote:

Originally Posted by kall
Indeed. To fit into this Forum, (as per the box at the top) it must use a hook.

Doesn't appear to use a hook to me..

Why would you need a hook for this when all you have to do is replace the text with it?

You could use global_start, I would think.

EDIT: Ahhh, ok, I get what you meant. Sorry about that. ;)

Wrong forum.

Snake 04-28-2006 12:50 PM

That's pretty cool! :)

Barakat 04-28-2006 02:46 PM

Coooool . installed

klaush 04-28-2006 03:14 PM

:-) Thanks! Fantastic idea! *installed*


All times are GMT. The time now is 11:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01337 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete