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.


All times are GMT. The time now is 02:16 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.01007 seconds
  • Memory Usage 1,728KB
  • 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)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