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*

BoYagoob 04-28-2006 07:11 PM

You are more than welcome my friends :)

Kind regards ..

Boofo 04-28-2006 07:33 PM

Quote:

Originally Posted by BoYagoob
You are more than welcome my friends :)

Kind regards ..

I finally have a friend. I'm not sure how to handle this. :confused:

hehe ;)

BoYagoob 04-28-2006 08:07 PM

Quote:

Originally Posted by Boofo
I finally have a friend. I'm not sure how to handle this. :confused:

hehe ;)

LooooL .. :banana:

But writting "friends" is better than writting "enemies", isn't it? :D

hehehe :banana:

Boofo 04-28-2006 09:11 PM

Quote:

Originally Posted by BoYagoob
LooooL .. :banana:

But writting "friends" is better than writting "enemies", isn't it? :D

hehehe :banana:

But not nearly as engaging. ;)

kall 04-29-2006 06:04 AM

Quote:

Originally Posted by Boofo
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.

No problemo Sir.

(I saw a car with licence plate "BOOF". I thought of you. :) )

Boofo 04-29-2006 07:02 AM

Quote:

Originally Posted by kall
No problemo Sir.

(I saw a car with licence plate "BOOF". I thought of you. :) )

LOL I'll bet you were trying to get a look at the driver to see what I looked like, huh? ;)

kall 04-29-2006 07:10 AM

The avatar made me really surprised when you turned out to be a hot blonde.

Surprised...and a tad disturbed. :P

Boofo 04-29-2006 07:13 AM

Quote:

Originally Posted by kall
The avatar made me really surprised when you turned out to be a hot blonde.

Surprised...and a tad disturbed. :P

You think you're disturbed, how do you think I feel wearing a dress? ;).

Holidazed 04-29-2006 04:15 PM

This looks interesting. I would much rather see a style of my choosing show up when the forums are closed or a redirect to a url of my choosing when the forums are closed. That would be more useful to me.

Jaymee 05-26-2006 05:41 PM

LOVE it! Installed

bada_bing 05-26-2006 05:55 PM

Does not work in FF

Tralala 05-26-2006 06:03 PM

Cool Thanks.

Tralala 05-26-2006 06:05 PM

Quote:

Originally Posted by bada_bing
Does not work in FF


Works for me in Firefox (for Mac) as well as Camino...

Do you at least see the text (just without the typing effect?)

Roms 05-27-2006 02:09 AM

Great Tip, however:

This isn't a template modification... People that post outstanding tutorials don't get credit for installs (which is a shame).... Why should this?

BoYagoob 05-27-2006 03:37 AM

Quote:

Originally Posted by Infantrymen
Great Tip, however:

This isn't a template modification... People that post outstanding tutorials don't get credit for installs (which is a shame).... Why should this?

This is not a tutorial. "+_-

So, where do you think I should post it?

If you liked it, just click install. https://vborg.vbsupport.ru/external/2009/02/1.gif

Roms 05-27-2006 03:53 AM

Quote:

Originally Posted by BoYagoob
This is not a tutorial. "+_-

So, where do you think I should post it?

If you liked it, just click install. https://vborg.vbsupport.ru/external/2009/02/1.gif

It's more of a "tutorial" than anything, it's a "how to". It doesn't belong in this area, it does not modify a template in any way.

No, I didn't install it, I was being "nice" by saying it was a great tip, I'm really not big on the typing... :p (it's called "be nice and tell them the bad news..." )

BoYagoob 05-27-2006 04:11 AM

I know, but still you didn't mention any section where I can post my tip. :(

So, I posted it here ..

Roms 05-27-2006 04:18 AM

You're welcome:

https://vborg.vbsupport.ru/forumdisplay.php?f=110

I'm not trying to be rude but this does NOT qualify as a template modification. Period.

I've had staff bugging me for things that were very minute, and yet this is far from a template mod and is still here, go figure... (didn't Kall mention this fact? ) :p

peterska2 05-27-2006 11:02 AM

Moved to Modification Hjints and Tips

kall 05-27-2006 11:12 AM

Quote:

Originally Posted by Infantrymen
(didn't Kall mention this fact? ) :p

Yeah, but that was before I was staff, and had this big stick, and Kerry-Anne to do it anyway.

:)

peterska2 05-27-2006 11:14 AM

It can actually be done as a template mod, if done slightly differently, but as it stands this is the best forum for it.

Roms 05-27-2006 12:10 PM

Quote:

Originally Posted by kall
Yeah, but that was before I was staff, and had this big stick, and Kerry-Anne to do it anyway.

:)

Sounds good. :) Thanks Kerry-Anne.

BoYagoob 05-27-2006 12:53 PM

:(
Thanks for every thing ....

peterska2 05-27-2006 10:53 PM

The template modifications forum is soley for items that require modifications to one or more template. As this is extra code to input into an existing textbox in the ACP, and does not require any template modifications, it does not qualify as a template modification but is rather a tip on how to do aomething a bit different with your site, hence it's location in the Hints and Tips forum.

BoYagoob 05-28-2006 02:01 AM

No problem sir, and I am sorry for my mistake.

Boofo 06-03-2006 12:33 PM

You mean "Ma'am", right? ;)

BoYagoob 06-03-2006 12:44 PM

Who? & Where?

Boofo 06-03-2006 12:52 PM

peterska2 is a "Ma'am", not a sir. ;)

BoYagoob 06-03-2006 03:12 PM

Ops !

I am sorry .. hehehehehehe .....

I didn't know that she is a women .. :knockedout: :banana: :p

Many thanks Ma'am peterska2 :)

and also, thanks for you Mr.Boofo ;)

Boofo 06-03-2006 03:15 PM

Quote:

Originally Posted by BoYagoob
Ops !

I am sorry .. hehehehehehe .....

I didn't know that she is a women .. :knockedout: :banana: :p

Many thanks Ma'am peterska2 :)

and also, thanks for you Mr.Boofo ;)

No problem, sir. This was the dead give-a-way:

Real name: Kerry-Anne

;)


All times are GMT. The time now is 10:47 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.01428 seconds
  • Memory Usage 1,822KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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