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
  #42  
Old 07-11-2005, 08:37 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 paul41598
I dont get this hack. What does it do? Close down your browser with a click of a button?
No, it takes you to another web page that is user-defined (default set to google or whatever the admin chooses).
Reply With Quote
  #43  
Old 07-12-2005, 11:35 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
One suggestion:
change this
Code:
<img src="images/misc/panicbutton.gif" border="0" alt="Panic Button">
to
Code:
<img src="$vboptions[bburl]/images/misc/panicbutton.gif" border="0" alt="Panic Button">
so this hack can be compatible with vBAdvanced CMPS and vBGallery users.

File updated.
Reply With Quote
  #44  
Old 07-19-2005, 03:23 AM
sketch42's Avatar
sketch42 sketch42 is offline
 
Join Date: May 2004
Location: Brooklyn, NY
Posts: 361
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok 2 things im running vb 3.0.7

1- after i finished the installation the option was set to yes but the deafult url was empty(even though i added it when making the profile field as per the instructions)

2- i fill in the url and than try the panic button .... and it tries going here http://www.wirelessolution.net/www.google.com

any ideas??
Reply With Quote
  #45  
Old 07-19-2005, 04:06 AM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sketch42
ok 2 things im running vb 3.0.7

1- after i finished the installation the option was set to yes but the deafult url was empty(even though i added it when making the profile field as per the instructions)

2- i fill in the url and than try the panic button .... and it tries going here http://www.wirelessolution.net/www.google.com

any ideas??
it sounds to me as the problem may be with #1 above. delete that profile field and rebuild it. you can change the default value of the URL to anything you want. in fact, try http://www.wirelesssolution.net .

make sure all the other "yes" and "no" fields are correct.
Reply With Quote
  #46  
Old 07-20-2005, 07:03 AM
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Location: sydney
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me comments on how nice a hack this is
Reply With Quote
  #47  
Old 08-16-2005, 11:47 PM
o1dirtydog o1dirtydog is offline
 
Join Date: Aug 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yinyang
hmmm.

let's strip it and try it this way first before doing the profile fields.

1. add the new CSS definition
2. make sure the panicbutton.js and panicbutton.gif files are uploaded into the proper folders.
3. add this stripped down code to the beginning of your header:


PHP Code:
<!--[if lt IE 7]><script src="clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<
div class=panicbutton>
<
a href="http://www.google.com"><img src="images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</
div
4. the panic button should show up on the bottom right of your screen and stay in a fixed position.


I was having a problem with this when I installed... it wouldn't show the button till I did this edit you posted to the header... it came right on.


Great job and great idea... thanks for the hard work and support! excellent hack
Reply With Quote
  #48  
Old 08-17-2005, 07:09 PM
o1dirtydog o1dirtydog is offline
 
Join Date: Aug 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay I have a problem...

with the regular code in the install readme, the panic button will not show at all.

I thought I had it fixed when I used that other code that was posted in this thread, it worked.

My only problem here is that for some user on my site, they said it slowed down their loading of the site. When they would set the option to NO, it would still be there anyway.

There was no way to set the panic button on and off.

Can anyone fix the code for the header, and make it correct so this whole hack works? it's a great thing to add to mysite, but I don't want to put users who have slow connections or java problems out in the cold.

Thanks in advance.
Reply With Quote
  #49  
Old 08-21-2005, 04:49 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If it doesn't turn off you need to check the values and filed numbers for the yse and no option.

Remember they are case sensitive.
Reply With Quote
  #50  
Old 09-01-2005, 12:31 AM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
<!--[if lt IE 7]><script src="clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<div class=panicbutton>
<a href="http://www.google.com"><img src="images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</div>
Turned it right on...........great hack
Reply With Quote
  #51  
Old 09-01-2005, 12:03 PM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It won't shut off........i have even set the default to no..........i rechecked my header and set the yes to capitol Yes........and still no go.....

this is what is in my header: <!-- PANIC BUTTON 1.0.1 for vBulletin 3.X by YinYang/dsboyce8624-->
<if condition="$bbuserinfo[field66] == Yes">
<!--[if lt IE 7]><script src="$vboptions[bburl]/clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<div class=panicbutton>
<a href="$bbuserinfo[field67]"><img src="$vboptions[bburl]/images/misc/panicbutton.gif" border="0" alt="Panic Button">
</div></if><!--[if lt IE 7]><script src="clientscript/panicbutton.js" type="text/javascript"></script><![endif]-->
<div class=panicbutton>
<a href="http://www.google.com"><img src="images/misc/panicbutton.gif" border="0" alt="Panic Button"></a>
</div>

this code above works, like i said, you just can't shut the panic button on/off.......please help. I have some member's that love this and some that hate it.........so on/off would be awesome.
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 11:43 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.04878 seconds
  • Memory Usage 2,320KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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
  • (4)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete