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
  #32  
Old 07-09-2005, 03:19 PM
unkemone unkemone is offline
 
Join Date: Apr 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup now its working and at a fixed location with a fixed url what do you think the problem is?
Reply With Quote
  #33  
Old 07-09-2005, 03:45 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 unkemone
Yup now its working and at a fixed location with a fixed url what do you think the problem is?
It sounds as if you may have made a mistake when entering the User Profile Fields. Make sure that you have the "Field Editable by User" option set to YES
Reply With Quote
  #34  
Old 07-09-2005, 04:15 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 dsboyce8624
Take the </if> off the end.
doh! my bad. that's what happens when i offer support at 3:16AM los angeles time.
Reply With Quote
  #35  
Old 07-09-2005, 04:35 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 yoyoyoyo
It sounds as if you may have made a mistake when entering the User Profile Fields. Make sure that you have the "Field Editable by User" option set to YES
Actually, when looking at his example he asked you to try:
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>
it appears that he substituted the field ID's with the google URL. If you can get the above example to work, but can't get the hack to work then the problem has to be with your field ID's, since that is the only thing that was changed from the hack in his example. I suggest going in to phpMyAdmin and checking those field ID's to make sure that you have them right.
Reply With Quote
  #36  
Old 07-09-2005, 05:07 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
Actually, when looking at his example he asked you to try:
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>
it appears that he substituted the field ID's with the google URL. If you can get the above example to work, but can't get the hack to work then the problem has to be with your field ID's, since that is the only thing that was changed from the hack in his example. I suggest going in to phpMyAdmin and checking those field ID's to make sure that you have them right.
yup! that's what i did. my apologies for not making it clearer :nervous: .

thanks yoyoyo - !
Reply With Quote
  #37  
Old 07-09-2005, 05:36 PM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 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.
Yup, now working 100%. Great little hack thanks!
Reply With Quote
  #38  
Old 07-09-2005, 05:42 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nealparry
Yup, now working 100%. Great little hack thanks!
If you use it like that the on/off button will not work.

You need to put the <if . . . > </if> back around it and make sure you have the field numbers right. Seems you had a problem there the first time.

And please click Install.
Reply With Quote
  #39  
Old 07-09-2005, 06:49 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 nealparry
Yup, now working 100%. Great little hack thanks!
if the stripped down version works, then it means your site will have no problem with the coding or javascript. as dsboyce8624 said, you should do the full install and make sure the profile field numbers are correct.

this will allow your users more flexibility and choices.
Reply With Quote
  #40  
Old 07-11-2005, 08:16 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 07-11-2005, 08:28 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont get this hack. What does it do? Close down your browser with a click of a button?
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 10:28 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.04697 seconds
  • Memory Usage 2,317KB
  • Queries Executed 28 (?)
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
  • (4)bbcode_code
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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