PDA

View Full Version : Panic Button (bosses, coworkers)


jamoss
04-12-2003, 04:03 AM
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+",location=yes,menubar=yes,resizable=yes,scrollbars =yes,status=yes,titlebar=yes,toolbar=yes,directori es=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
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 (http://www.ghostzilla.com). :)

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
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.