Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives

Reply
 
Thread Tools
Panic Button (bosses, coworkers) Details »»
Panic Button (bosses, coworkers)
Version: , by jamoss jamoss is offline
Developer Last Online: Jan 2021 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-12-2003 Last Update: Never Installs: 0
 
No support by the author.

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.

Download Now

File Type: (21.3 KB, 61 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-13-2003, 03:10 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #13  
Old 04-13-2003, 03:32 AM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it goes faster if you open a javascript window-- don't know why, I just tested it.
Reply With Quote
  #14  
Old 04-13-2003, 03:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine seems to be doing the exact opposite.
Reply With Quote
  #15  
Old 04-13-2003, 03:50 AM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well... my users LOOOOOOOOOOOOOOOVE it and they LOOOOOOOOOOOOOOOVe me, and I love them for loving me -- and so on, so there.
Reply With Quote
  #16  
Old 04-13-2003, 04:23 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whatever.
Reply With Quote
  #17  
Old 04-16-2003, 02:07 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #18  
Old 04-18-2003, 07:13 AM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ROFL, I like this!
Reply With Quote
  #19  
Old 04-24-2003, 11:03 PM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #20  
Old 04-24-2003, 11:58 PM
Chris Gwynne's Avatar
Chris Gwynne Chris Gwynne is offline
 
Join Date: Jan 2003
Posts: 316
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ALT + TAB
Reply With Quote
  #21  
Old 04-25-2003, 12:24 AM
leviw leviw is offline
 
Join Date: Jan 2003
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04735 seconds
  • Memory Usage 2,317KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete