Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

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

Category: End-User Options - Version: 4.x.x Rating:
Released: 11-25-2009 Last Update: 08-12-2011 Installs: 90
Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

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


What Does This Hack Do?[hr]Silver[/hr]
This is an update to my 3.8.x version of this hack, designed to work with vBulletin v4.0.x.

Do your members ever view your site from work when they should not be doing so? Will they get in to trouble if they do get caught by their boss? If the answer is yes to both questions, then this hack is for you.

This hack gives your members their own vBulletin Boss Key (i.e. Panic button), which is displayed at the bottom of the postbit in each post (and each PM), so your members can quickly click themselves to the safety of legitimate url if the boss turns up, while your members are at work.

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.


Limitation with this hack[hr]Silver[/hr]
People keep asking for usergroup permissions for this hack.

While this would easy to implement, what people fail to realise is that User Profile Fields are not controlled by usergroup permissions at all, and even if usergroup permissions were added to this hack, the User Profile Fields would still be viewable by members even if they do not have permissions to use them.

User Profile Fields are either viewable by all or viewable by none, this is how they were implemented in vBulletin by design, there is no in between with User Profile Fields.

So, I will not be adding usergroup permissions to this hack.


vBulletin Version Compatibility[hr]Silver[/hr]
This hack can be used with vBulletin versions 4.0.0 - 4.1.11.

For the v3.8.x version of this hack, which will also work with v3.7.x and v3.6.x - check here.



Hack Support/Feature Requests[hr]Silver[/hr]
IMPORTANT: This hack is no longer supported.



Install/Uninstall Instructions[hr]Silver[/hr]
The Panic Button Installation Instructions 4.0.x.pdf instructions file is included in attached .zip (includes instructions and pictures)


Version History[hr]Silver[/hr]
v4.0.5 - Saturday 13th August 2011
-- Fixed: panic button image, as "report.gif" was removed from versions of vBulletin starting at v4.0.8

v4.0.4 - Sunday 24th April 2011
-- Fixed: "maxversion" so product can be installed on vBulletin 4.1.0 and above
-- Changed: version number formatting

v4.0.003 - Saturday 9th January 2010
-- Fixed: 1 plugin (compatibility with "Post Thanks" hack, and stops "Blog This Post" issue)

v4.0.002 - Saturday 26th December 2009
-- Now works in vBulletin 4.0.0 Gold
-- Fixed: 1 plugin (to stop incremental display of panic buttons in the postbit)

v4.0.001 - Friday 27th November 2009
-- Initial v4.0.x Release


Thanks[hr]Silver[/hr]
Thanks go out to Paul M who gave me permission to use some of his install code. Thanks also goes to Boofo for pointing out the removal of "report.gif" from the vBulletin installation base.


Show Your Appreciation [hr]Silver[/hr]
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.

Download Now

File Type: zip ms_panic_button_40.zip (387.1 KB, 152 views)

Screenshots

File Type: png screenshot1.png (37.6 KB, 0 views)
File Type: png screenshot2.png (11.7 KB, 0 views)
File Type: png screenshot3.png (17.1 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
vicking74

Comments
  #52  
Old 01-15-2012, 12:55 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Front Range 4x4 View Post
Installed, thank you! My users are liking this version much more than the floating javascript version.



Search in Postbit for this:

</vb:if>
<vb:if condition="$show['multiquote_post']">
<a class='multiquote' href="{vb:raw post.replylink}" rel="nofollow" onclick="return false;" id="mq_{vb:raw post.postid}">
<img id="mq_image_{vb:raw post.postid}" src="{vb:raw vboptions.cleargifurl}" alt="{vb:rawphrase multi_quote_this_message}" />
&nbsp;
</a>
</vb:if>

and add this after it:

<vb:if condition="$show['panicbutton']">
<a href="{vb:raw show.panic_button_url}"><img src="{vb:stylevar imgdir_button}/report.gif" border="0" alt="{vb:rawphrase ms_bosskey}" />&nbsp;{vb:rawphrase ms_panic}
</a><span class="seperator">&nbsp;</span>
</vb:if>


This doesnt' work as it gives a broken Icon on the Panic button.
Reply With Quote
  #53  
Old 01-16-2012, 09:37 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not Working.

Install on 4.1.9 and viewing with firefox no Panic Button Displaying in thread display. Also notice button in Usercp/General Settings/Panic Button - ON/OFF Switch: the button stays enabled all the time. Clicking the button does not seem to enable/disable the mod from usercp.
Reply With Quote
  #54  
Old 01-16-2012, 09:58 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 psychobike View Post
Not Working.

Install on 4.1.9 and viewing with firefox no Panic Button Displaying in thread display. Also notice button in Usercp/General Settings/Panic Button - ON/OFF Switch: the button stays enabled all the time. Clicking the button does not seem to enable/disable the mod from usercp.
You have not done Step 4 of the installation instructions yet (and if you have, then have not done so correctly.... remember the fieldids shown in my instructions are examples only, your numbers may be different).
Reply With Quote
  #55  
Old 01-16-2012, 10:06 PM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
You have not done Step 4 of the installation instructions yet (and if you have, then have not done so correctly.... remember the fieldids shown in my instructions are examples only, your numbers may be different).
Yes sir I believe I did do them correctly. My field numbers were 49 & 50. I currently have the mod disabled in hopes that I can find a solution here.

I also noticed in step1 you say "Also ensure that the Options are Off and On (not off and on), as they are case sensitive.". I noticed my options area after saving show "Required,Editable,Hidden". So either something on my end is not set right, or, I have misunderstood your instructions. Btw, your instructions on this are awesome!
Reply With Quote
  #56  
Old 02-26-2012, 06:39 AM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As you can see there was no response to my last post. Both images show the mod is not working on our site which is now version 4.1.10. Also not showing up on default style.



Reply With Quote
  #57  
Old 03-02-2012, 07:57 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 psychobike View Post
As you can see there was no response to my last post. Both images show the mod is not working on our site which is now version 4.1.10. Also not showing up on default style.



The reason it is not working is because you just copied and pasted the Options field in Step 1 from the installation manual instead of following the instruction (see the screenshot on page 2 of the installation manual).

So, instead of being:

Quote:
Off (press Enter followed by) On
It should be:

Quote:
Off
On
Reply With Quote
  #58  
Old 03-02-2012, 03:04 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
This doesnt' work as it gives a broken Icon on the Panic button.
Anything for my post here Mosh?
Reply With Quote
  #59  
Old 03-03-2012, 01: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 New Joe View Post
Anything for my post here Mosh?
Update to the latest version of this hack as it looks like you are using v4.0.003 atm.
Reply With Quote
  #60  
Old 03-03-2012, 04:41 AM
1320Nation 1320Nation is offline
 
Join Date: Sep 2008
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mosh. Of coarse you were exactly right with your advice on why the mod wasn't working for me. Working just fine now. Thanks again!
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 01:29 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.05781 seconds
  • Memory Usage 2,344KB
  • Queries Executed 27 (?)
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
  • (8)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete