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 4.0.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 CMS, blog and your own custom pages (as long as the headinclude_bottom 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 and works with Firefox 3.5+, Chrome 4+, Opera 10+, Safari 4+ and Internet Explorer 7+.

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 4.0.0 - 4.2.1.

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 RequestsSilver
IMPORTANT: This hack is no longer supported.



Install/Uninstall InstructionsSilver
The Panic Button - Global Installation Instructions 4.0.xxx.pdf instructions file is included in attached .zip


Version HistorySilver
v4.0.2 - Saturday 5th February 2011
-- Changed: Version number formatting
-- Added: AdminCP exclude pages option

v4.0.001 - Saturday 20th March 2010
-- Released at Wolfshead Solutions on Saturday 13th March 2010
-- Initial v4.0.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.

elenh
03-20-2010, 12:24 PM
Thanks mate!

Front Range 4x4
03-20-2010, 09:24 PM
*installed!*

Thank you!

The Fuzz
10-02-2010, 03:05 PM
Easy installation due to the very clear cut instructions. :up:

dacho
10-02-2010, 03:41 PM
thanks mate

Inzvestor
10-02-2010, 06:50 PM
Superb product - worked straight away
Thanks!

gpc10347
10-04-2010, 11:37 AM
Knowing there's no support here for us free riders, I still need to ask:
I find that the panic button graphic appears during a pop up that appears on newattachment.php for a photo gallery... and it appears right on top of the 'Done' button.

Not a huge deal, the plug in works perfectly but it's a little confusing for users uploading pics into the gallery.

Thanks!

Trevor Matthews
10-23-2010, 03:55 PM
Hi
Great work. Excellent instructions until the bit about the additional.css, being a vbulletin newbie I struggled to find the file :o

What would I need to edit to make the button higher up so it doesn't clash with my CometChat button?

Would it be this.....

#panic {
position: fixed;
width: 60px;
bottom: 5px;
right: 5px;
z-index: 999;
}

Do I just make the bottom figure larger?

Thanks again.

regards
Trevor

Trevor Matthews
10-23-2010, 04:07 PM
OK, cracked it, they are the position and size of the button....

JohnKF
10-29-2010, 08:27 AM
Here's an alternate button, one blue the other orange...

123228
123229

...don't forget to rename the one you use.

OldSchoolDSL
12-24-2010, 07:15 AM
Installed & works in 4.1 PL2

Mosh
01-08-2011, 12:58 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.

Mosh
01-08-2011, 04:02 AM
Knowing there's no support here for us free riders, I still need to ask:
I find that the panic button graphic appears during a pop up that appears on newattachment.php for a photo gallery... and it appears right on top of the 'Done' button.

Not a huge deal, the plug in works perfectly but it's a little confusing for users uploading pics into the gallery.

Thanks!
mmmmmm...... OK, it is a good idea. I will add an file exclusion list to the next version :)

poita
01-09-2011, 10:06 AM
Just a newbie to forum mods, very easy to setup and install.

Installed and working fine on 4.0.8 :)


Cheers

Mosh
02-04-2011, 11:42 PM
Update: v4.0.2
-- Changed: Version number formatting
-- Added: AdminCP exclude pages option

OldSchoolDSL
02-05-2011, 03:49 AM
Updated (allow overwrite, yes)

Seems to be working

4.1.1

Thank you for continuing this modification :)

Question: Is there away to move the panic button a little higher up? Not to much higher from its current point, but for those of us who may have something like Comet-chat installed... The panic button seems to be a little covered up.

Mosh
02-05-2011, 04:36 AM
Hi
Great work. Excellent instructions until the bit about the additional.css, being a vbulletin newbie I struggled to find the file :o

What would I need to edit to make the button higher up so it doesn't clash with my CometChat button?

Would it be this.....

#panic {
position: fixed;
width: 60px;
bottom: 5px;
right: 5px;
z-index: 999;
}

Do I just make the bottom figure larger?

Thanks again.

regards
Trevor

Updated (allow overwrite, yes)

Seems to be working

4.1.1

Thank you for continuing this modification :)

Question: Is there away to move the panic button a little higher up? Not to much higher from its current point, but for those of us who may have something like Comet-chat installed... The panic button seems to be a little covered up.

You would need to alter the additional.css template in each style:

#panic {
position: fixed;
width: 60px;
bottom: XXpx;
right: YYpx;
z-index: 999;
}

And change the bottom (XXpx) and right (YYpx) settings to alter the location of the panic button.

Merriweather
04-05-2011, 10:44 PM
Just upgraded from my old 3.8 to this one on my new 4.1.2. Excellent! Thank you. :)

JasonP38
04-06-2011, 04:33 PM
I uploaded it and installed it following the instructions word for word but its not working....any suggestions? :)

Mosh
04-07-2011, 09:08 PM
I uploaded it and installed it following the instructions word for word but its not working....any suggestions? :)

If you did all the steps correctly..... especially Step 7, then I am not sure without looking at your site (I would need a test login for that, just a normal user would do for now).

JasonP38
04-08-2011, 02:34 PM
If you did all the steps correctly..... especially Step 7, then I am not sure without looking at your site (I would need a test login for that, just a normal user would do for now).

sure. :)

http://www.suddendeathhockeyforums.ca

username:
Password:

JasonP38
04-08-2011, 02:37 PM
btw, if you need to access my admin control panel I can PM the usename and password to you.

Mosh
04-08-2011, 08:49 PM
btw, if you need to access my admin control panel I can PM the usename and password to you.
I have just had a look, and yes, it looks like I will need that AdminCP access after all.

Mosh
04-08-2011, 09:19 PM
I uploaded it and installed it following the instructions word for word but its not working....any suggestions? :)
I had a look, you had not done Step 7 correctly.

I no longer have need for the AdminCP access. Now it works ;)

JasonP38
04-09-2011, 01:54 AM
I had a look, you had not done Step 7 correctly.

I no longer have need for the AdminCP access. Now it works ;)




thank you :) I really appreciate it.

whitey92lx
05-22-2011, 04:25 PM
Awesome!

Thanks!

Trevor Matthews
06-13-2011, 05:38 PM
I just upgraded to vb 4.1.4 and this mod now stops people registering as when submitting the form it is reported that a Panic Button choice has not been selected correctly.

I have had to un-install this mod that we have been using since last year.

Will there be a version for 4.1.4?

Mosh
06-13-2011, 10:33 PM
I just upgraded to vb 4.1.4 and this mod now stops people registering as when submitting the form it is reported that a Panic Button choice has not been selected correctly.

I have had to un-install this mod that we have been using since last year.

Will there be a version for 4.1.4?

Please post the exact steps someone does to replicate this error and the exact error message so I can look into it further.

Mosh
06-18-2011, 10:53 PM
I just upgraded to vb 4.1.4 and this mod now stops people registering as when submitting the form it is reported that a Panic Button choice has not been selected correctly.

I have had to un-install this mod that we have been using since last year.

Will there be a version for 4.1.4?

Please post the exact steps someone does to replicate this error and the exact error message so I can look into it further.

I have tested this with a test forum that has vBulletin 4.1.4 and this hack installed and can not replicate issue, it allows users to register with no error messages. So, unless you can provide the steps taken to replicate your issue, I cannot help further as it works fine for me.

Trevor Matthews
10-03-2011, 02:57 PM
Sorry not to have got back to you on this issue.
I have uninstalled it and have had no time to reinstall and try it again.
The issue was that when someone tried to register on the forum the warning popped up that the Panic Button options had not been selected correctly even when they had.

They were then unable to register as there was no way around the warning.

scottct1
04-02-2012, 01:20 PM
Does not work in vBullet 4.1.11 in fact it breaks the style chooser when the product is installed.

Mosh
04-08-2012, 07:39 AM
Does not work in vBullet 4.1.11 in fact it breaks the style chooser when the product is installed.

Sorry I did not notice this post earlier. Can you tell me if this happens with vBulletin's default style? As I can not replicate this issue, and it works fine with vBulletin 4.1.11 for me.

CubicWebs
07-23-2012, 05:25 PM
Nice would be better if you can say set the URL to go to when your in Admincp

So if they click it, they are redirected to a private forum where the user and the admin can see it.

justicechick
12-11-2012, 12:07 AM
<i>I've got this installed , my templates edited as instructed and the gif in the forum directory but there is still no button showing up?????</i>

Mosh
12-11-2012, 06:19 AM
I've got this installed , my templates edited as instructed and the gif in the forum directory but there is still no button showing up?????

You may not have done Step 3 of the install instructions correctly, as it is a .png file and goes into your /images/misc folder of each style you have.

justicechick
12-11-2012, 08:22 PM
You may not have done Step 3 of the install instructions correctly, as it is a .png file and goes into your /images/misc folder of each style you have.

I have it in public_html/images/Take5/misc
Take 5 is the style I am using.

da prez
12-12-2012, 05:25 AM
Try public_html/images/Take5/images/misc
If the tree doesn't exist, try creating it and puttng the file in there and see if it helps.

justicechick
12-12-2012, 12:30 PM
I have placed the image but still nothing. Nice concept but apparently over this newbs head.

justicechick
12-16-2012, 12:42 AM
Try public_html/images/Take5/images/misc
If the tree doesn't exist, try creating it and puttng the file in there and see if it helps.

This is the exact link I have on my server with the panic.png in it

/public_html/images/Take5/images/misc_

Still nothing. If anyone else has any suggestions or can help let me know plz.

da prez
12-16-2012, 12:54 AM
Try : /public_html/forum/images/Take5/images/misc

Where "forum" = the name of your forum folder.

Somewhere in the tree will make it work, sometimes ya gotta search :D

justicechick
12-16-2012, 11:09 PM
Try : /public_html/forum/images/Take5/images/misc

Where "forum" = the name of your forum folder.

Somewhere in the tree will make it work, sometimes ya gotta search :D

Sorry if I sound a little dense here lol...Im a 2 month newb.

Go into my public_html that is my forum correct...because inside the public_html there is nothing titled forum.

The closest I can get to it is public_html/

/public_html/images/Take5/images/misc_

da prez
12-16-2012, 11:38 PM
Well I tried the address in your signature to visit your site but it don't work.
After a google search I find there is a "the" at the beginning :D

Anyways, I found the picture on your server, it is located here :
http://theflirtingretreat.com/images/misc/panic.png

Does it show in the default skin where it should ?


In your Take5 skin it is located here :
http://theflirtingretreat.com/images/Take5/misc/panic.png

Try
http://theflirtingretreat.com/images/Take5/images/misc/panic.png
If the folder doesn't exist create it.

justicechick
12-17-2012, 04:42 AM
Well I tried the address in your signature to visit your site but it don't work.
After a google search I find there is a "the" at the beginning :D

Anyways, I found the picture on your server, it is located here :
http://theflirtingretreat.com/images/misc/panic.png

Does it show in the default skin where it should ?


In your Take5 skin it is located here :
http://theflirtingretreat.com/images/Take5/misc/panic.png

Try
http://theflirtingretreat.com/images/Take5/images/misc/panic.png
If the folder doesn't exist create it.

OMG! I placed it like you said and it works! You ROCK!!!! Thanks for the help!

justicechick
12-18-2012, 04:25 AM
<i>Im curious now that I have this working is there anyway to make it move as one scrolls up and down the page. Currently mine sits on the left at the very top and if someone needs to hit it they have to scroll all the way back up first...</i>

Mosh
12-18-2012, 09:09 AM
Im curious now that I have this working is there anyway to make it move as one scrolls up and down the page. Currently mine sits on the left at the very top and if someone needs to hit it they have to scroll all the way back up first...

You may not have done Step 4 of the install instructions, as that is the CSS that allows the panic button to hover in the bottom right hand corner of the web browser.

YOODA230
12-22-2012, 05:59 PM
not working dfor me on style tf ideal
i placed the image in the place...
but nothing show up...
i made all the step...

Bubble #5
08-24-2013, 02:28 AM
Does anyone know how to move the panic button on the page?

We just learned that when you try to add an attachment to a post, the panic button also appears on that popup, and covers up the submit button.

Can anyone help?

tbworld
08-24-2013, 03:14 AM
Does anyone know how to move the panic button on the page?

We just learned that when you try to add an attachment to a post, the panic button also appears on that popup, and covers up the submit button.

Can anyone help?

Look at the CSS for the image or the button. They most likely use
position: fixed;
bottom: 10px;
right: 10px;something like that. Then just alter the position of the image or button. If the mod uses javascript it code embed the styling in the javascript.
I do not use the mod so I have not looked at the source. Again a link to your board helps. Otherwise we just have to guess.

Bubble #5
08-24-2013, 03:21 AM
THANKS tbworld, just found it. Moved it up 30px and it works like a charm :up: