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
  #22  
Old 07-09-2005, 01:11 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As long as it got fixed it doesn't matter.
Reply With Quote
  #23  
Old 07-09-2005, 01:27 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
There's nothing like making stupid mistakes in public
Noo, it's good tho Should be kept as part of the title. :P
Reply With Quote
  #24  
Old 07-09-2005, 01:39 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 Dark Visor
Noo, it's good tho Should be kept as part of the title. :P
For further 101-ing, I found out TRUE the source of the error:
Code:
Profile Field Type: Single-Selection Radio Buttons
Title:  Turn "Panic Button" on?
Description: The Panic Button is an icon that resides in a fixed place of your choosing on your screen on your screen. Clicking the icon immediately sends you to another URL of your choice.
Options: Yes (carriage-return)
		 No
and
Code:
<if condition="$bbuserinfo[field12] == yes">
which should really be:
Code:
<if condition="$bbuserinfo[field12] == Yes">
(note the small/capital "y"?)
Reply With Quote
  #25  
Old 07-09-2005, 01:52 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoyoyoyo
For further 101-ing, I found out TRUE the source of the error:
Code:
Profile Field Type: Single-Selection Radio Buttons
Title:  Turn "Panic Button" on?
Description: The Panic Button is an icon that resides in a fixed place of your choosing on your screen on your screen. Clicking the icon immediately sends you to another URL of your choice.
Options: Yes (carriage-return)
		 No
and
Code:
<if condition="$bbuserinfo[field12] == yes">
which should really be:
Code:
<if condition="$bbuserinfo[field12] == Yes">
(note the small/capital "y"?)
I'll make a note of that in the file and reload.

Done.
Reply With Quote
  #26  
Old 07-09-2005, 02:16 AM
Neal-UK's Avatar
Neal-UK Neal-UK is offline
 
Join Date: Feb 2004
Location: Lancashire, England
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I can't get this to work on vb 3.0.7 and all files, paths, etc are correct.

Shame that, I could do with it on www.meeting4fun.com
Reply With Quote
  #27  
Old 07-09-2005, 02:43 AM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What problem did you have?
Reply With Quote
  #28  
Old 07-09-2005, 08:47 AM
unkemone unkemone is offline
 
Join Date: Apr 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem. im running a board with 3.0.7 and it just wont come up. i verified that the field #'s are correct and the capital and lowercase y correspond and it wont work.
Reply With Quote
  #29  
Old 07-09-2005, 09:16 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 unkemone
I have the same problem. im running a board with 3.0.7 and it just wont come up. i verified that the field #'s are correct and the capital and lowercase y correspond and it wont work.
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.
Reply With Quote
  #30  
Old 07-09-2005, 09:25 AM
unkemone unkemone is offline
 
Join Date: Apr 2005
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your support but when i add that to the header i get this error

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/b/i/g/bigdog829/html/includes/adminfunctions_template.php(3096) : eval()'d code on line 104

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #31  
Old 07-09-2005, 01:11 PM
dsboyce8624 dsboyce8624 is offline
 
Join Date: May 2005
Location: New Jersey
Posts: 413
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unkemone
Thanks for your support but when i add that to the header i get this error



The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/b/i/g/bigdog829/html/includes/adminfunctions_template.php(3096) : eval()'d code on line 104

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Take the </if> off the end.
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 05:23 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.11555 seconds
  • Memory Usage 2,313KB
  • 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
  • (6)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