Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Panic Button 1.0.1 Details »»
Panic Button 1.0.1
Version: 1.0.1, by dsboyce8624 dsboyce8624 is offline
Developer Last Online: Dec 2006 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 07-07-2005 Last Update: 07-11-2005 Installs: 14
Template Edits
Additional Files  
No support by the author.

This is a Panic Button (Should work in IE and FF) in case a member is worried about being on your site at a particular time, for example, at work.

The button defaults to staying glued to the lower right hand corner, but this can be changed in the CSS settings stated below.

The button can also be turned off by each member if they don't want to use it.

This is a hybrid of my Boss Button and yinyangs work to make the java right.

If you have the Custom Error Pages hack installed on a Windows server, you need to edit the settings to use URLs and not files or this will conflict.

The image I use is can obviously be substituted with anything else you like. Just be sure to name your image "panicbutton.gif".

This may be copied, reproduced or published anywhere without my permission.

vB 3.5 Beta Version

Demo Please do not register.

Details
-------
2 Files to upload (1 Javascript File and 1 Panic Button image)
2 New Profile Field entries (Remember the Field ID# !!)
1 New CSS definition
1 Template Edit

You can change the placement of the image anywhere on the screen by editing the .panicbutton CSS.

dsboyce8624/yinyang

Changes:

7/8/5 - Updated instructions with note about case sensitivty of user field options and conditional code.

7/12/5 - Updated URLs for vBadvanced compatibility.


.

Supporters / CoAuthors

Show Your Support

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

Comments
  #2  
Old 07-08-2005, 09:47 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's great! Thanks! Could this possibly be toggled on/off by the user?
Reply With Quote
  #3  
Old 07-08-2005, 09:49 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
That's great! Thanks! Could this possibly be toggled on/off by the user?
Yes there is an option in the install for that.
Reply With Quote
  #4  
Old 07-08-2005, 09:50 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
That's great! Thanks! Could this possibly be toggled on/off by the user?
yup. the 2 new profile field entries allow the following 2 options:

1. Turn the Panic Button On/Off with On being the default
2. Allows each user to specify which URL for the panic button to send them to.

If someone wants, you can also add two more profile fields that controls a) top or bottom of screen and b) left or right. you would just substitute the corresponding profile field in the Panic Button CSS definitions.
Reply With Quote
  #5  
Old 07-08-2005, 09:51 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yinyang
yup. the 2 new profile field entries allow the following 2 options:

1. Turn the Panic Button On/Off with On being the default
2. Allows each user to specify which URL for the panic button to send them to.

If someone wants, you can also add two more profile fields that controls a) top or bottom of screen and b) left or right. you would just substitute the corresponding profile field in the Panic Button CSS definitions.
Awesome!
Reply With Quote
  #6  
Old 07-08-2005, 09:52 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yinyang
If someone wants, you can also add two more profile fields that controls a) top or bottom of screen and b) left or right. you would just substitute the corresponding profile field in the Panic Button CSS definitions.
Never thought of that. Cool idea.
Reply With Quote
  #7  
Old 07-08-2005, 10:38 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This seems more like a "Misc. Option" Than a profile field :cross-eyed:

I hate to be a pain, but I installed this on a 3.0.7 forum, and it doesn't seem to be working for me. I triple-checked the edits, and css and also checked the proflile field ID in PHPMyAdmin to make sure that they were correct, but it still doesn't work. Yes, I also uploaded the javascript and image as mentioned in the read me. There are only a few steps, so I am at a loss to see what I did wrong.
Reply With Quote
  #8  
Old 07-08-2005, 10:42 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose you could put the fields anywhere you like.

Open your site and do a veiw source. Search the source for panic.

Is everything there correct?

Look for the CSS entry first. Then look at the URL for the script, the destination URL for the button and the image file.

You may want to edit the code to show a full URL if they are not correct.
Reply With Quote
  #9  
Old 07-08-2005, 11:03 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dsboyce8624
I suppose you could put the fields anywhere you like.

Open your site and do a veiw source. Search the source for panic.

Is everything there correct?

Look for the CSS entry first. Then look at the URL for the script, the destination URL for the button and the image file.

You may want to edit the code to show a full URL if they are not correct.
here is what I get when I view source, from the end of the CSS, where the location is defined, to right after the end of the panic button:
Code:
/* ***** Panic Button Location***** */
.panicbutton {
	position: fixed;
	position: expression("absolute");
	right: 10px;
	bottom: 10px;
-->
</style>

<!-- / CSS Stylesheet -->

<script type="text/javascript">
<!--
var SESSIONURL = "";
var IMGDIR_MISC = "images/misc";
// -->
</script>

<script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_menu.js"></script>
</head>
<body onload="editInit();">
<!-- PANIC BUTTON -->

<!-- END PANIC BUTTON -->
<!-- logo -->
<a name="top"></a><CENTER>
<table border="1" width="100%" cellpadding="0" cellspacing="0" align="center">
<tr>
It doesn't seem to be pulling the javascript in from the script. Here is a screen shot of the file uploaded to my ftp:
Reply With Quote
  #10  
Old 07-08-2005, 11:05 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Show me the code you have in the header, it seems to be missing.

Give me a few lines after as well.

Mine shows this in view source:
Code:
<!-- BEGIN TEMPLATE: header -->
<!-- PANIC BUTTON 1.00 for vBulletin 3.5.0 beta by YinYang/dsboyce8624-->

<!--[if lt IE 7]><script src="http://damn.that-sucks.net/clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<div class=panicbutton>
<a href="http://www.yahoo.com"><img src="http://damn.that-sucks.net/images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</div>
<!-- END PANIC BUTTON 1.00 for vBulletin 3.5.0 beta by YinYang/dsboyce8624-->
<!-- logo -->
Reply With Quote
Reply


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 02:05 PM.


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.06625 seconds
  • Memory Usage 2,307KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (5)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete