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