Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Panic Button Details »»
Panic Button
Version: 1.0.5, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.6.x Rating:
Released: 09-12-2007 Last Update: 05-19-2008 Installs: 77
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. But not to worry, you can now check out the new 3.8.x version of this hack which will work with v3.7.x, as well as with v3.6.12 (and maybe even earlier versions).

Please click Mark as Installed if you are using this hack.


vBulletin Version Compatibility

This hack can be used with both vBulletin v3.6.x and v3.7.x.


What Does This Hack Do?

Your own vBulletin Boss Key, is displayed in the postbit of each post, so you can quickly click yourself to the safety of legitimate url when the boss turns up, while you are at work.

I have created a custom button for this hack, you can use another button if you like, just remember to rename it panic.gif.

NOTE: Any Panic Button you see in a thread is tied to your profile, even if it is in someone else's postbit (to prove it, disable the Panic Button in the your UserCP)

This hack was created because of a requested here.

If your members report errors when clicking on the panic button, first thing to ensure is that they used the full url (including http://)when typing in the site their panic button will go to, ie http://www.google.com (will work) and not like this - www.google.com (will not work). The second thing to check for, is that the Panic Button - URL Jump box is not empty.


Installation Instructions

In attached .zip (includes instructions for postbit and postbit_legacy templates)


Version History

v1.0.5 - Tuesday 20th May 2008
-- Final Release
-- Changed: Clarified instructions even more
-- Fixed: Another typo

v1.0.4 - Friday 28th March 2008
-- Fixed: Another typo

v1.0.3 - Wednesday 26th March 2008
-- Fixed: Corrected template typo

v1.0.2 - Thursday 20th December 2007
-- Changed: Updated Instructions

v1.0.1 - Monday 1st October 2007
-- Fixed: Template edit

v1.0.0 - Thursday 13th September 2007
-- Initial Release


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.

Show Your Support

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

Comments
  #62  
Old 04-10-2008, 09:54 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WoodPusher View Post
Installed, not showing on a 3.6.9 VB Forum.
If you have done everything and rechecked the work, then I can not see what is wrong without taking a look at your site.

[s]So, if want me to take a look, firstly click Mark as Installed and after that you have done that, feel free to PM me your site address, an temp admin user (with admin permissions - Can Administer Users for editing User Profile Fields and Can Administer Styles for editing templates) without these I cannot help you. I will look when I have time, and even if I have a look, I can not guarantee that I will be able to fix it, if your site is not in English (I only read/write in English), so it is up to you what you want to do.[/s]
Reply With Quote
  #63  
Old 04-11-2008, 12:14 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by anoob View Post
I am having problems, and can not get this to work, can you help me please?
I got your admin details and have had a look at your installation of this hack, and it works fine.

I could not find any problems at all, and did not have to make any alterations.

The hack works as advertised
Reply With Quote
  #64  
Old 05-07-2008, 12:05 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Panic Button (TMS Compatible) for v3.7.x is now available here.
Reply With Quote
  #65  
Old 05-16-2008, 05:43 PM
sweptwingnut sweptwingnut is offline
 
Join Date: May 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and working.

One area of possible correction for me regarding changing the fields.

You said that in
"Step 4:
******

In postbit (and/or postbit_legacy) template, find:

<if condition="$post['editlink']">

Above it, paste:

<!-- panic button v1.0.4 by Mosh Shigdar -->
<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
<!-- end of panic button -->

NOTE: Replacing field5 with the Field ID from Step 2, and field6 with the Field ID from Step 3.

You are all done "


This confused me a bit trying to figure out where the heck field 5 and 6 were located. I figured out that you meant to say replace the code [field7] with the Field ID from Step 2 and [field8] with the Field ID from step 3 and it worked. In my case, the code now reads [field21] and [field22] respectively.

Hope that helps the next guy.
Reply With Quote
  #66  
Old 05-20-2008, 02:29 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sweptwingnut View Post
Installed and working.

One area of possible correction for me regarding changing the fields.

You said that in
"Step 4:
******

In postbit (and/or postbit_legacy) template, find:

<if condition="$post['editlink']">

Above it, paste:

<!-- panic button v1.0.4 by Mosh Shigdar -->
<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
<!-- end of panic button -->

NOTE: Replacing field5 with the Field ID from Step 2, and field6 with the Field ID from Step 3.

You are all done "


This confused me a bit trying to figure out where the heck field 5 and 6 were located. I figured out that you meant to say replace the code [field7] with the Field ID from Step 2 and [field8] with the Field ID from step 3 and it worked. In my case, the code now reads [field21] and [field22] respectively.

Hope that helps the next guy.
You are correct, I actually amended the intructions in v1.0.4, from notes I took when fixing up mblb's installation, I acidentally left in the field IDs used with his installation in the instructions...... but that is now rectified

Update: v1.0.5
  • Fixed typos
  • Clarified the instructions even more

NOTE: If you have this installed and working, then no need to update at all !!!
Reply With Quote
  #67  
Old 05-23-2008, 01:37 PM
Vinyljunky's Avatar
Vinyljunky Vinyljunky is offline
 
Join Date: Feb 2007
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I have this installed on VB3.7 postbit_legacy with TMS

It doesnt seem to be picking up the default value of http://www.google.com

It works fine if I enter it manually?

Ok Ive just realised that it doesnt use the default value for existing users. is there anyway around this?

Thanks

VinylJunky
Reply With Quote
  #68  
Old 05-25-2008, 01:54 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vinyljunky View Post
Hello,

I have this installed on VB3.7 postbit_legacy with TMS

It doesnt seem to be picking up the default value of http://www.google.com

It works fine if I enter it manually?

Ok Ive just realised that it doesnt use the default value for existing users. is there anyway around this?

Thanks

VinylJunky
I can confirm that it does not display the default value (it should but it does not, don't know why), but it should work fine when members enter it manually when activating it in their profile.
Reply With Quote
  #69  
Old 05-25-2008, 04:00 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got it to display a default value but I had to do a conditional in the template to get it to do it.
Reply With Quote
  #70  
Old 05-25-2008, 08:38 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo View Post
I got it to display a default value but I had to do a conditional in the template to get it to do it.
Hey Bob,

Do you mind PMing me the code? If you don't, then will then add it to the main code
Reply With Quote
  #71  
Old 05-25-2008, 08:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PM on the way.
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:06 AM.


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.07845 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (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
  • (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
  • (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