PDA

View Full Version : End-User Options - Panic Button - Global


Mosh
03-19-2010, 10:00 PM
Please click Mark as Installed if you are using this hack.


What Does This Hack Do?Silver
This is a variation to my vBulletin 3.8.x Panic Button - Postbit hack. If you have that hack installed, installing this one, will uninstall that hack.

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 right of every page including the blog and your own custom pages (as long as the headinclude template is being called by the custom page, which it should be), 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: The Panic Button always floats at the bottom right, even when you scroll down the page.

This hack has been tested on Firefox 3.5/3.6/4/5/6/7/8, Chrome 4/5/6/7/8/9/10/11/12/13/14/15, Opera 10/11, Safari 4/5 and Internet Explorer 7/8/9.

This should work with most other browsers and versions, but is not guaranteed, as the positioning is controlled by CSS.

This hack was created because I was inspired by the following two hacks:

Panic Button 1.01 (https://vborg.vbsupport.ru/showthread.php?t=91779) for vBulletin 3.5.x by yingyang.
Panic Button 1.0.1 (https://vborg.vbsupport.ru/showthread.php?t=91852) for vBulletin 3.0.x by dsboyce8624.


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 hackSilver
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 CompatibilitySilver
This hack can be used with vBulletin versions 3.6.0 - 3.8.8. This hack may even work for v3.5.x (but has not been tested).

For the v4.0.x version of this hack - check here.


Hack Support/Feature RequestsSilver
I will provide support for this hack in this thread only, and only for people who have clicked on Marked as Installed. I do not provide support via Private Message, Instant Messenger or Email.

Support for this hack is in its unaltered form, and does not include supporting alterations to this hack, custom code, custom template edits and integration with other third-party hacks.

I will only add features to this hack if I find the request interesting and would find it useful to have on one of my sites.

As with all of the hacks I release for free, I code for fun and code hacks the way I like them, then release them so you can benefit. If I am not interested in adding a feature, do not take offence, it is that is a feature that does not interest me personally.


Install/Uninstall InstructionsSilver
The Panic Button - Global Installation Instructions 3.8.xxx.pdf instructions file is included in attached .zip (includes instructions and pictures)


Version HistorySilver
v3.8.001 - Saturday 20th March 2010
-- Released at Wolfshead Solutions on Tuesday 16th March 2010
-- Initial v3.8.x Release


ThanksSilver
Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation Silver
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.

New Joe
03-20-2010, 05:53 AM
Thanks will give it a go

Rideharder
03-21-2010, 09:53 PM
Thanks will give it a go too

Brandon Sheley
03-21-2010, 10:08 PM
no support here?
bummer

leftwich86
03-22-2010, 04:35 AM
If I install this, you just import the XML and it's good to go or is there more to it then that? I dont feel like doing a lot right now lol

Mosh
03-23-2010, 02:05 AM
If I install this, you just import the XML and it's good to go or is there more to it then that? I dont feel like doing a lot right now lol
There is more to it, but is all in the instructions.

Bill from Cleve
03-23-2010, 03:04 AM
Great Idea, I bet many sites will benefit from it. I will be testing it further myself. Nothing to do with your hack as a whole, just most of my members are whiners, and most will likely not understand what a nice feature this is. But to heck with them!

Rideharder
03-23-2010, 03:30 AM
Mosh , I would like to say as I've been on these forums I'm very impressed with your work is very clean and neat and believe it or not when I install one of your mods I feel extremely confident it is good coding..

Great work and Pat yourself on the back, you deserve it..

http://img260.imageshack.us/img260/7946/58502440.jpg

Rideharder
03-28-2010, 01:21 AM
I've been using this and I can say this is the best panic button out there!

No issues, works excellent on my board.

Thanks again!

Mosh
03-28-2010, 04:06 AM
I've been using this and I can say this is the best panic button out there!

No issues, works excellent on my board.

Thanks again!
Glad to hear it works for you, and for the kind words :)

Mosh
03-28-2010, 04:09 AM
no support here?
bummer
Unfortunately it was unavoidable, but more information as to why is available here - https://vborg.vbsupport.ru/showthread.php?p=1944507

xlegends
03-28-2010, 10:47 AM
installed it works great however for the currently registered members what would be the sql query command to MASS turn on this product so I dont have to annouce it that they should all go into their profile to turn it on.

cckisses
05-13-2010, 11:55 PM
This is the most awesome idea, my community will be relieved to have it!! Many, many thanks!

XXOO,

CC

metalguy639
07-20-2010, 02:08 AM
uninstalled. I'm sure the hack works just fine would be nice to have the code that needs to be placed NOT in a PDF file format! That does nothing for anyone.

slobra
07-26-2010, 10:52 PM
Installed!

vBarsiv
07-29-2010, 02:32 PM
thank you

Mosh
01-08-2011, 01:28 AM
Hi all,

Free support has now been moved back to vBulletin.org.

Please see the first post for more information (and also this thread (http://www.wolfshead-solutions.com/threads/444-Our-quot-vBulletin.org-Hacks-Support-quot-subscription-has-been-scrapped) at Wolfshead Solutions).

Enjoy :)

Regards,

Mosh Shigdar - Wolfshead Solutions.

JasonP38
04-06-2011, 11:32 AM
Every time I try to paste

<style type="text/css" id="panic_css">
#panic {
position: fixed;
width: 60px;
bottom: 5px;
right: 5px;
z-index: 999;
}
</style>
<!-- Panic Button - Global v3.8.001. Copyright 2010. Mosh Shigdar,
Wolfshead Solutions -->
<if condition="$show['panicbutton']">
<a href="$show[panic_button_url]" id="panic"><img
src="$stylevar/panic.png" border="0" alt="Boss Key"
/></a>
</if>
<!-- end of Panic Button - Global -->


into my headinclude template I get the following message;

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3362
[I]The following error occurred when attempting to evaluate this template:
%1$s
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.

when I hit continue I then get this message
This template was changed by someone else while you were editing it. Your changes have not been saved. Please merge your changes from the lower editor into the current version in the upper editor. When you save this page, only what is in the upper editor will be saved.

and it won't let me merge my changes.

Mosh
04-07-2011, 09:06 PM
Every time I try to paste

<style type="text/css" id="panic_css">
#panic {
position: fixed;
width: 60px;
bottom: 5px;
right: 5px;
z-index: 999;
}
</style>
<!-- Panic Button - Global v3.8.001. Copyright 2010. Mosh Shigdar,
Wolfshead Solutions -->
<if condition="$show['panicbutton']">
<a href="$show[panic_button_url]" id="panic"><img
src="$stylevar/panic.png" border="0" alt="Boss Key"
/></a>
</if>
<!-- end of Panic Button - Global -->


into my headinclude template I get the following message;

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3362
[I]The following error occurred when attempting to evaluate this template:
%1$s
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.

when I hit continue I then get this message
This template was changed by someone else while you were editing it. Your changes have not been saved. Please merge your changes from the lower editor into the current version in the upper editor. When you save this page, only what is in the upper editor will be saved.

and it won't let me merge my changes.
It is probably because your site is using vBulletin 4.x.x and this is a vBulletin 3.x.x hack.