vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Panic Button (bosses, coworkers) (https://vborg.vbsupport.ru/showthread.php?t=51505)

jamoss 04-12-2003 04:03 AM

Panic Button (bosses, coworkers)
 
1 Attachment(s)
Do your users post from work? Don't want their parents/boss/co-workers know they visit your site?

Here is a quick hack to install a javascript PANIC button on your site (button included). (Panic button launches another screen and hides your boards).

Only takes a short modification to 2 templates.. no code changes!! Installation in under 5 minutes.

1. In your header_include template,

search for:
</style>

and replace with:
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--begin
function popup(filename){
var centerWidth=(screen.width/2)-("+screen.width+"/2);
var centerHeight=(screen.height/2)-("+screen.height+"/2);
window.open(filename, "","height="+screen.height+",width="+screen.width+ ",top="+centerHeight+",left="+centerWidth+",locati on=yes,menubar=yes,resizable=yes,scrollbars=yes,st atus=yes,titlebar=yes,toolbar=yes,directories=yes" );
}
// end -->
</SCRIPT>




2. In your header template (wherever you want to put the button) paste this:

<a href="#" onclick="popup('http://www.google.com');return false;"><img src="panic.gif" border=0></a>

I have it going to GOOGLE, but you can make it launch any site-- Wall Street Journal, whatever.


3. Copy the 'panic button' graphic panic.gif up to your server in the vbulletin main directory. You can also make your own, to go with your own theme.

jamoss 04-12-2003 04:07 AM

1 Attachment(s)
Here is a sample screenshot on our site.

Erwin 04-12-2003 04:11 AM

LOL! Good idea...

Smoothie 04-12-2003 05:02 AM

jebeesus....

Spitfireisgod 04-12-2003 06:03 AM

haha... i would use it

Logician 04-12-2003 08:20 AM

good idea.. I'm sure many boards can use it. :)

Dean C 04-12-2003 09:58 AM

This is not a hack i'm sorry to report so it will be needed to be moved to Template Modifications :)

A hack involves editing a PHP file and this only edits a template :D

Good idea nevertheless ;)

- miSt

Kars10 04-12-2003 10:05 AM

The Question is what go?s faster...close the window or push that Panic-Button?!? :p

Kars

Link14716 04-12-2003 03:01 PM

I would just recommend GhostZilla. :)

Erwin 04-13-2003 02:56 AM

Mist is right - moving this out of Beta Hacks and into Template mods.

Boofo 04-13-2003 03:10 AM

I guess I'm confuse here now. Couldn't you just make a link to whatever site you want for the panic button and put target="_blank" in it and have the same thing without the need for javascript?

jamoss 04-13-2003 03:32 AM

it goes faster if you open a javascript window-- don't know why, I just tested it.

Boofo 04-13-2003 03:35 AM

Mine seems to be doing the exact opposite.

jamoss 04-13-2003 03:50 AM

well... my users LOOOOOOOOOOOOOOOVE it and they LOOOOOOOOOOOOOOOVe me, and I love them for loving me -- and so on, so there.

Boofo 04-13-2003 04:23 AM

Whatever. ;)

007 04-16-2003 02:07 PM

My boss came by once right up behind me and said real loud "What'cha doin!?" acting all interested... then he said, click on that window down there. Open that up. Let's see what we pay you for....

*sigh*

Gotta love em. :)

Best thing to have would be a button that not only closes the window (not just pulls up another window over it...) but it also clears your history lol! For the compulsive bosses out there...

voogru 04-18-2003 07:13 AM

ROFL, I like this!

leviw 04-24-2003 11:03 PM

Quote:

Best thing to have would be a button that not only closes the window (not just pulls up another window over it...) but it also clears your history
Yea! Hmm.. I'll have to look into this.

Chris Gwynne 04-24-2003 11:58 PM

ALT + TAB ;)

leviw 04-25-2003 12:24 AM

Alt tab just moves it aside.. unless your like me and have to work with 20+ friggin windows up at all times all that will do is distract a snooping boss.

Of course, since all my windows are Access, Word, Notepad, Attachmate, etc the IE windows show up like milk in a blacklight.

A button that cleared your history would rock too, as doing it manually is a pain and I hate having a history for snoops to browse through.

PLUS the new window popup on command!

filburt1 04-26-2003 06:09 PM

Virtual Desktops, then.


All times are GMT. The time now is 06:55 PM.

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.01359 seconds
  • Memory Usage 1,748KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (21)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete