vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Panic Button (https://vborg.vbsupport.ru/showthread.php?t=183657)

Mosh 06-26-2008 10:00 PM

Panic Button
 
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. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, 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 v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


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. You can have a different button for each style, as long as each one is named 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

The Panic Button Installation Instructions 3.7.xxx.pdf instructions file is included in attached .zip (includes instructions and pictures)

Uninstall Instructions
  1. In the AdminCP, go to User Profile Fields -> User Profile Field Manager.
    • Delete the Panic Button - ON/OFF Switch profile field.
    • Delete the Panic Button - URL Jump profile field.
  2. Uninstall the product using the AdminCP Product Manager.


Version History

v3.7.004 - Tuesday 29th July 2008
-- Final Release
-- Changed: Now a full product
-- Changed: Instructions altered, there are no more template edits needed

v3.7.003 - Thursday 24th July 2008
-- New: Partially converted to a product

v3.7.002 - Friday 27th June 2008
-- Fixed: Link to this Support thread fixed in the instructions
-- Changed: Highlighted instructions for clearer understanding

v3.7.001 - Friday 27th June 2008
-- 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.

tafreeh 06-27-2008 02:53 AM

what does this button do :( ????????

Mosh 06-27-2008 03:02 AM

Quote:

Originally Posted by tafreeh (Post 1560087)
what does this button do :( ????????

Quote:

Originally Posted by 1st Post
you can quickly click yourself to the safety of legitimate url when the boss turns up, while you are at work.

This is from the first post, screenshots shows the rest.

dreads 06-27-2008 04:26 AM

thanks i sure will see it later :P

Boofo 06-27-2008 04:38 AM

Is this different from the other version?

Mosh 06-27-2008 06:13 AM

Quote:

Originally Posted by Boofo (Post 1560135)
Is this different from the other version?

Template hack, based on v3.6.x version. Instructions are now in .pdf with visual screenshots.

l3it3r 07-05-2008 01:51 PM

ALT-TAB? I'm sorry, I'm sure that this great for some, but I see no use for it.

enginethatcan't 07-10-2008 10:15 PM

Enabled it through my user options - VB Message "A required field called Panic Button - URL Jump is missing or has an invalid value."

Mosh 07-10-2008 10:57 PM

Quote:

Originally Posted by enginethatcan't (Post 1572333)
Enabled it through my user options - VB Message "A required field called Panic Button - URL Jump is missing or has an invalid value."

Is that the Panic Button - URL Jump box is empty ?

If not post a screenshot of the page with the error here.

enginethatcan't 07-11-2008 12:08 AM

...........

enginethatcan't 07-11-2008 12:14 AM

got it working now, I'm dumb lol

Mosh 07-11-2008 12:28 AM

Quote:

Originally Posted by enginethatcan't (Post 1572395)
got it working now, I'm dumb lol

Thats OK, it happens to the best of us sometimes :)

Emmmmrz 07-14-2008 02:08 AM

I laffed; won't be using it; but it tickled my funny bone.

Digital Jedi 07-14-2008 04:02 AM

Quote:

Originally Posted by l3it3r (Post 1567374)
ALT-TAB? I'm sorry, I'm sure that this great for some, but I see no use for it.

Alt/Tab doesn't navigate you away from the page your on. Whatever you were looking at is still showing in the lower toolbar.

Mosh 07-24-2008 03:58 AM

Update: v3.7.003 - Thursday 24th July 2008
-- New: Partially converted to a product

Now a lot easier to install, and no need to remember to change field numbers in each template edit.

Alfa1 07-25-2008 10:16 PM

Please add usergroup permissions. I only want my donating members to be able to use this.

Mosh 07-26-2008 05:51 AM

Quote:

Originally Posted by Alfa1 (Post 1584225)
Please add usergroup permissions. I only want my donating members to be able to use this.

This is a very simple hack, and restricting User Profile Fields (any profile fields including the standard ones that come with vBulletin) is not controlled by Usergroup Permissions as far as I am aware, either everyone sees them or everyone does not (via AdminCP Options).

I will have a quick look into it and see if it is easy enough to add (i.e if it does not take more than an hour to research).

If it is not easy to do, then it will not be added to this hack, as I am not going to overly complicate this hack.

If it is easy enough, then it will possibly be added.

Alfa1 07-26-2008 05:27 PM

The most simple way seems to me to put an conditional around the display of the panic button so that it is only shown to usergroup X. X is a variable that can be defined in the adminCP. Or even more simple: let admins define the usergroup by editing the plugin.

Mosh 07-26-2008 09:00 PM

Quote:

Originally Posted by Alfa1 (Post 1584737)
The most simple way seems to me to put an conditional around the display of the panic button so that it is only shown to usergroup X. X is a variable that can be defined in the adminCP. Or even more simple: let admins define the usergroup by editing the plugin.

Yes, but the User Profile Field will still be visible to all. The usergroup permissions part is very easy (most of my hacks have permissions), the seeing the profile field only if you have permission is the hard bit, what is the point is it being visible, if it does not work because you do not have permission?

Alfa1 07-27-2008 12:25 AM

You've got a point there.

Megatr0n 07-27-2008 11:10 AM

Hello,

I installed this but I can't see the panic button no where. I uploaded the image to all styles and did the template edits properly (I think).

Do you mind taking a look in my adminCP? I'll PM you the details.

Mosh 07-27-2008 08:10 PM

Quote:

Originally Posted by Megatr0n (Post 1585200)
Hello,

I installed this but I can't see the panic button no where. I uploaded the image to all styles and did the template edits properly (I think).

Do you mind taking a look in my adminCP? I'll PM you the details.

No, I don't mind. [s]What I will need is for you to PM me your site address, temp ftp details, a temp admin user (with admin permissions - Can Administer Settings for editing options and Can Administer Plugins for editing products and plugins, Can Administer Users for editing User Profile Fields and Can Administer Styles for editing templates) without this I can not help you. I will look when I have time, I can not guarantee that I will be able to fix it, but I will have a look at it.

You can revoke the temp details once I am done.[/s]

Mosh 07-29-2008 03:48 AM

Update: v3.7.004 - Tuesday 29th July 2008
-- Changed: Now a full product
-- Changed: Instructions altered, there are no more template edits needed

The only thing that manually needs to be done now is adding 2 User Profile Fields.

Mosh 07-29-2008 09:13 PM

Quote:

Originally Posted by Megatr0n (Post 1585200)
Hello,

I installed this but I can't see the panic button no where. I uploaded the image to all styles and did the template edits properly (I think).

Do you mind taking a look in my adminCP? I'll PM you the details.

I have noticed you installed the latest version. Does it work for you? Or do you still need me to take a look?

Megatr0n 07-29-2008 09:25 PM

I got it working now.

For this update do I just import the product file?

Mosh 07-29-2008 09:37 PM

Quote:

Originally Posted by Megatr0n (Post 1586959)
I got it working now.

For this update do I just import the product file?

Yes that is all, but you have to remember that you need to revert the template changes you made, as hack now does it all automatically, and you will end up with 2 panic buttons in each post if you do not remove the manual edit you performed with the previous version.

Megatr0n 07-29-2008 10:24 PM

Someone installed it for me so I'm a bit iffy with reverting the template edits. Mind helping me out?

Or can I just leave it assuming there won't be anymore significant features added to this hack?

Mosh 07-29-2008 11:22 PM

Quote:

Originally Posted by Megatr0n (Post 1587016)
Someone installed it for me so I'm a bit iffy with reverting the template edits. Mind helping me out?

Or can I just leave it assuming there won't be anymore significant features added to this hack?

All you need to do is edit the postbit (and/or postbit_legacy) template (in each style you have).

Find:

HTML Code:

<!-- Panic Button v3.7.003. Copyright Mosh Shigdar 2008 -->
<if condition="$show['panicbutton']"><a href="$show[panic_button_url]"><img
src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" />
</a></if>
<!-- end of Panic Button Hack -->

Delete it !!!

Save the template. That is it :)

Or you can just leave it on the previous version if it works. Just remember if you do so, and Jelsoft issues a version of vBulletin that requires you to do a template revert to add extra functionality or fix a security issue, then you will need to re-do the template edits anyway. So I would recommend updating to this version, and not stick with the previous version, but the choice is up to you.

GoTTi 08-03-2008 02:30 PM

should we upgrade to your latest version for the product release?

Mosh 08-03-2008 08:02 PM

Quote:

Originally Posted by GoTTi (Post 1590564)
should we upgrade to your latest version for the product release?

I would, it will be a lot easier when upgrade vBulletin, as there will be no need to worry about doing the template edit again, if templates need to be reverted as part of the upgrade.

gag girl 09-05-2008 11:55 AM

I did everything I was suppose to and it doesn't show up for me.

gag girl 09-05-2008 01:56 PM

Can anyone help? I have all options there for user options, but it's just not showing up within the thread. The icon/image isn't there for the users to click on. Why not?

shotkey 09-06-2008 12:34 AM

Installed and for me worked correctly. Thanks!

Digital Jedi 09-07-2008 05:53 PM

Quote:

Originally Posted by gag girl (Post 1615169)
Can anyone help? I have all options there for user options, but it's just not showing up within the thread. The icon/image isn't there for the users to click on. Why not?

Not without knowing what you did exactly. Or if you have heavily customized templates. When all else fails, uninstall and start over.

gag girl 09-07-2008 10:56 PM

All I did was create the templates and upload the images. Then I uploaded the product.

The options are there for me to use the panic button (in my edit options field), but nothing shows up within the thread...

I'll uninstall and reinstall and see if that does anything

gag girl 09-07-2008 11:11 PM

and that did nothing. the option is still showing on my User CP under edit options - everything is turned ON yet there is no panic button within the threads.

gag girl 09-07-2008 11:31 PM

ARGH! I'm frustrated. It's a tease to my members, LOL! They have discovered it in the userCP area, but wonder why they can't use it yet.

gag girl 09-08-2008 10:05 AM

Well slap me nakkid! I figured it out. I went back and looked at the older version of this and saw that that one needed a postbit add on. I gave it a shot and added that code and there it is!!

realmr 09-08-2008 11:44 AM

what does this hack do ? What does this panic button serve for ??? Is it similar to post thanks ? raising post count ?

gag girl 09-08-2008 01:25 PM

It gives your members a button within the posts to click on - it redirects them to whatever website they have input in their options.


All times are GMT. The time now is 04:46 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.01515 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete