Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

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
  #12  
Old 07-08-2005, 11:09 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
Show me the code you have in the header, it seems to be missing.

Give me a few lines after as well.
here goes from the top of the header template:
Code:
<!-- PANIC BUTTON -->
<if condition="$bbuserinfo[field6] == yes">
<!--[if lt IE 7]><script src="clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<div class=panicbutton>
<a href="$bbuserinfo[field5]"><img src="images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</div></if>
<!-- END PANIC BUTTON -->
<!-- logo -->
<a name="top"></a><CENTER>
<table border="1" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>

<table border="0" cellspacing="1" cellpadding="1" width="900">
 <tr>
Reply With Quote
  #13  
Old 07-08-2005, 11:13 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are your field numbers?
Reply With Quote
  #14  
Old 07-08-2005, 11:20 PM
Guest190829
Guest
 
Posts: n/a
Default

Doesn't:

HTML Code:
.panicbutton {
	position: fixed;
	position: expression("absolute");
	right: 10px;
	bottom: 10px;
need a } after all the properties are defined? That's probably what's causing the problem.
Reply With Quote
  #15  
Old 07-08-2005, 11:20 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
What are your field numbers?
The same ones listed in the Read me:
Panic Button URL Redirect: ID 5
Turn "Panic Button" on?: ID 6
Reply With Quote
  #16  
Old 07-08-2005, 11:21 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
Doesn't:

HTML Code:
.panicbutton {
	position: fixed;
	position: expression("absolute");
	right: 10px;
	bottom: 10px;
need a } after all the properties are defined? That's probably what's causing the problem.
Yeah, got missed in the cut and paste. Try putting that in.

Although I don't see how that makes the code disappear. I assumed he failed the conditional by not editing the field numbers.

I guess you got lucky with the field numbers, mine are different.

Thought you forgot to change them.
Reply With Quote
  #17  
Old 07-08-2005, 11:31 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
Yeah, got missed in the cut and paste. Try putting that in.

Although I don't see how that makes the code disappear. I assumed he failed the conditional by not editing the field numbers.

I guess you got lucky with the field numbers, mine are different.

Thought you forgot to change them.
Doh! I added the missing } and swapped the field ID's (I changed them earlier when I was checking to see if that was the error) Anyway- thanks much!
Reply With Quote
  #18  
Old 07-08-2005, 11:32 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, glad to help.
Reply With Quote
  #19  
Old 07-08-2005, 11:41 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is that a coincidence that the hack is "Panic Button 101"? Cause I don't see a reference to 1.0.0 anywhere... :P
Reply With Quote
  #20  
Old 07-08-2005, 11: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 Dark Visor
Is that a coincidence that the hack is "Panic Button 101"? Cause I don't see a reference to 1.0.0 anywhere... :P
lol - Panic Button 101 ... i didn't even make the correlation.

anyhow, dsboyce8624 originated this hack and when I looked for a compliant script for xhtml, i coded it and placed it in the vB3.5 area ... even though it will work for all vb3.x.

so there is a genesis of 1.00 to 1.01 in the vB3.5 area which you can read here.
Reply With Quote
  #21  
Old 07-09-2005, 12:10 AM
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
lol - Panic Button 101 ... i didn't even make the correlation.
Thanks again for the help. Sorry to be such a dork, but maybe I will save someone else from making the same mistake

There's nothing like making stupid mistakes in public
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 04:17 PM.


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.04637 seconds
  • Memory Usage 2,304KB
  • 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_code
  • (2)bbcode_html
  • (6)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
  • (3)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
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete