View Full Version : End-User Options - Panic Button (TMS compatible)
NOTE (27/06/2008): I am having real problems making this work, so I have scrapped this hack. I would recommend that you install my v3.7.x version of this hack - here instead (works fine with v3.6.x and v3.7.x). Thus, I have marked this hack as NOT SUPPORTED.
This hack works with vBulletin v3.7.x. This is also a Template Modification System compatible hack.
This is an update of my v3.6.x hack available here, I have not tested this version of the hack out, but I see no reason why it would not work v3.6.x as well.
This hack will not require template modifications if you are using Andreas's Template Modification System (yes, it does work with v3.7.x), and your styles are not too heavily modified (if it shows up in all your styles then no need to worry). Instructions for making the template changes manually have been included.
Have your very own vBulletin Boss Key. A panic button is displayed in the postbit of each, and every post, so you can quickly click yourself to the safety of legitimate url if the boss comes snooping 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.
Having problems?
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). Also ensure that you checked that you have entered the correct user profile field numbers in the AdminCP options.
Instructions
No instructions, as files have been removed.
Version History
v3.7.001 - Initial Release/Final Release [Wed 7th May 2008]
Support
Support is not provided, and the thread is no longer monitored.
COBRAws
05-07-2008, 12:24 AM
A great idea would be adding a shortcut, so for example, if enabled and doing "Ctrl + O" sends you to the target website :D
Black Tiger
05-07-2008, 12:26 AM
Whahahaha, this looks like fun. I'm going to install this, thanks!:)
Typo in instructions, just re-uploaded the .zip.
For those who have already downloaded the hack:
Step 5 should start off as saying: In vBulletin Options > Panic Button.
Black Tiger
05-07-2008, 12:47 AM
Ah I just wanted to report that one.:)
Is that the only change? If yes, I don't need to upgrade.
Ah I just wanted to report that one.:)
Is that the only change? If yes, I don't need to upgrade.
Yes, that is the only change, and no, you do not have to upgrade :)
GoTTi
05-07-2008, 03:22 AM
i am getting a error when i do the template modification:
The following error occurred when attempting to evaluate this template:
Parse error: syntax error, unexpected '{', expecting ']' in /home/SITE/public_html/forums/includes/adminfunctions_template.php(3717) : eval()'d code on line 190
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.
Hornstar
05-07-2008, 05:19 AM
lol great idea, not going to install this one tho, but thanks for sharing it, might come in handy for a future website.
bwize
05-07-2008, 09:21 PM
Parse error: syntax error, unexpected '{', expecting ']' in /home/sites/site/public_html/includes/adminfunctions_template.php(3717) : eval()'d code on line 190
Same problem. Any clues?
xorex
05-07-2008, 10:25 PM
Parse error: syntax error, unexpected '{', expecting ']' in /includes/adminfunctions_template.php(3717) : eval()'d code on line 190
Same problem
not TMS
Black Tiger
05-07-2008, 10:49 PM
Problem: Panic button is not showing.
I installed in 3.7.0 and did no template edits since I've TMS running so it was not needed.
There are 2 entry's in TMS for Panic button, but the button won't show.
However i don't have the problems named by bwize and xorex.
Suggestion: Move the panic.gif (and template edits pointing to it) to the "images/buttons" directory, because all buttons are in there.
i am getting a error when i do the template modification:
Same problem. Any clues?
Same problem
I will have to set up a server without TMS to test this out, so will not be able to look at this until at least Sunday, will get back to you once I have done so and tested this out.
Any one else having the same issue, please reply to this post, so I can see how many people are having the issue.
Problem: Panic button is not showing.
I installed in 3.7.0 and did no template edits since I've TMS running so it was not needed.
There are 2 entry's in TMS for Panic button, but the button won't show.
However i don't have the problems named by bwize and xorex.
Suggestion: Move the panic.gif (and template edits pointing to it) to the "images/buttons" directory, because all buttons are in there.
You having the same issue with all styles or just some?
The reason I have done it this way is so that people with different styles can use a panic button (created by themselves) that matches their styles, and doing it your way will only allow for the possibility of only one button for all styles (so can not possibily match all styles), so will probably not be changed in this hack.
Black Tiger
05-07-2008, 11:17 PM
You having the same issue with all styles or just some?
With all of them, I just have 4 or 5. Even with the default main vbulletin style I've got this problem.
With all of them, I just have 4 or 5. Even with the default main vbulletin style I've got this problem.
I had a quick look at your site that you have in your profile and panic.gif is not uploaded to /bbs/images/misc/panic.gif, as I get an Error 404 when I look for this image.
Not Found
The requested URL /bbs/misc/panic.gif was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
That may be your problem.
maipoman
05-07-2008, 11:41 PM
Any one else having the same issue, please reply to this post, so I can see how many people are having the issue.
I'm having that same issue!
Black Tiger
05-08-2008, 12:06 AM
The requested URL /bbs/misc/panic.gif was not found on this server.
LoL, ofcourse not, there is no /bbs/misc directory, you looked at the wrong place.:)
Use the /bbs/images/misc folder then you will see it's there.:p
LoL, ofcourse not, there is no /bbs/misc directory, you looked at the wrong place.:)
Use the /bbs/images/misc folder then you will see it's there.:p
Dohhh !!!! I am such a plonker :)
i am getting a error when i do the template modification:
Same problem. Any clues?
Same problem
not TMS
I'm having that same issue!
I am trying a different method of installing the hack, if it works then I will post it up for testing, if it does not work then I will setup an installation on Sunday that does not have TMS to test if I can fix this.
GoodKarmaKid
05-10-2008, 04:43 AM
Same issue followed the instructions exactly.
https://vborg.vbsupport.ru/external/2008/05/66.jpg
jilly
05-10-2008, 03:37 PM
same here:
Parse error: syntax error, unexpected '{', expecting ']' in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3717) : eval()'d code on line 787
I was trying to save template postbit_legacy with the panic button code added
I will be looking at this some time today.
Phaedrus
05-11-2008, 05:27 AM
I had to modify the template this way:
<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.
Edit:
If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...
You know...
It works great with this instead of the other...
I had to modify the template this way:
<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.
Edit:
If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...
You know...
It works great with this instead of the other...
Yes I know, I am trying to make this more automated, as I already released this as a template hack for v3.6.x quite some time ago, which works rather well, but trying to put profile field numbers in via vbulletin options is proving to be a bit tiresome (ie, I am banging my head on the wall to make it work).
Phaedrus
05-11-2008, 07:36 AM
Yes I know, I am trying to make this more automated, as I already released this as a template hack for v3.6.x quite some time ago, which works rather well, but trying to put profile field numbers in via vbulletin options is proving to be a bit tiresome (ie, I am banging my head on the wall to make it work).
Yeah, I was attempting to figure out the variables, but I just gave up;
Black Tiger
05-11-2008, 11:53 PM
Well I also edited the TMS templates and changed the code to the 3.6 version code and things are working fine now.
So I just keep this one marked installed because I'm running 3.7, I hope you find out the variables, but no hurry.:)
Good luck!
GoodKarmaKid
05-23-2008, 10:52 AM
What's the status on a fix for this, it's been about two weeks since you said you were going to look into it.
I really like this idea, several of my members would find it useful as they surf the forums at work.
Jason
Vinyljunky
05-23-2008, 12:57 PM
Wairing for VB3.7 TMS version
What's the status on a fix for this, it's been about two weeks since you said you were going to look into it.
I really like this idea, several of my members would find it useful as they surf the forums at work.
Jason
Wairing for VB3.7 TMS version
When there is an update (which there is not), the big notice in red will disappear from the 1st post and it will be supported and not a beta anymore, and I will post that it is fixed.
So, until then I will not be posting anything to this thread from now on, until that point.
Use my v3.6.x version until I can fix this.
khb1st
06-02-2008, 03:02 AM
I had to modify the template this way:
<if condition="$bbuserinfo[field7] == On"><a href="$bbuserinfo[field8]"><img src="$stylevar[imgdir_misc]/panic.gif" border="0" alt="Boss Key" /></a></if>
In order to get it to work. There were a bunch of { in there messing things up and some variables it wouldn't recognize. After using the above lines I was able to make the mod work.
Edit:
If you do use this instead, field7 should be whatever field you wrote down for step 2, field8 for step 3...
You know...
It works great with this instead of the other...
yep, I also had the previously mentioned errors, and this edit made it all go away, well done Phaedrus
I took the liberty of changing your text file, Mosh, I hope you don't mind, and leaving this attachment so others, too, can benefit
I did alter the above line to leave the default field5 and field6 instead of 7 and 8
love this hack
installed for sure !!:D
btw, you know why six is afraid of seven............because 7 8 9 :o
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.