vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Panic Button 1.01 (https://vborg.vbsupport.ru/showthread.php?t=91779)

dsboyce8624 07-07-2005 04:53 PM

Quote:

Originally Posted by Biker_GA
Who sets the URL? User or Admin? I can see some awesome possibilities with this (like setting the panic button to playboy.com). **GRIN**

The field you add is for the user to fill in the url.

Biker_GA 07-07-2005 04:54 PM

Drat! LOL

yinyang 07-07-2005 05:58 PM

Quote:

Originally Posted by Biker_GA
Drat! LOL

the URL defaults to whatever you set. but you can disable it (i.e. not add the Profile Part) and point it to any URL you want. I've seen some point it to a fake Excel spreadsheet, etc. or a dummy html page you set up.

Quote:

Originally Posted by dsboyce8624
You can use the button from my zip if you want.

And let me know when you add the conditional based on a second user field.

Some users don't want to use it.

Thanks.

1. I've gone ahead and changed out the button and added yours.
2. I've changed the placement of the script from Footer to Header
3. I've also added the On/Off conditional which is a template conditional and controlled via another Profile Field.

In the ACP, go to User Profile Fields > Add New User Profile Field

Profile Field Type: Single-Selection Radio Buttons
Title: Turn "Panic Button" on?
Description: The Panic Button is an icon that resides in a fixed place of your choosing on your screen on your screen. Clicking the icon immediately sends you to another URL of your choice.
Options: Yes (carriage-return)
No
Set default: Yes (thus Panic Button is automatically "on" until the user changes the option to "no")
Display Order: (Fills in automatically)
Field Required: Yes
Filed Editable by User: Yes
Private Field: Yes
Field Searchable on Members list: No
Show on Members List: No

Don't touch anything else and save.
!! Remember the field ID number. In my example, the field number is 6 !!

dsboyce8624 07-07-2005 07:29 PM

Okay, I'm not sure why, but when I put the piece in the header it open the page the first time, then goes 404 error over and over.

Continuous refresh. Of course I have so much crap it could just be placement.

Tried it in headinclude and same result.

yinyang 07-07-2005 07:53 PM

Quote:

Originally Posted by dsboyce8624
Okay, I'm not sure why, but when I put the piece in the header it open the page the first time, then goes 404 error over and over.

Continuous refresh. Of course I have so much crap it could just be placement.

Tried it in headinclude and same result.

well that sucks. try in the footer.

also, try checking in FireFox. for some reason, it works better in firefox as dean edwards is a firefox fanatic.

I put up a test board on my server. You can demo it here. Please don't register. Thanks.

dsboyce8624 07-08-2005 11:55 AM

Maybe so, but 98% of the world uses IE. I will try it in the footer later today.

yinyang 07-08-2005 04:13 PM

Quote:

Originally Posted by dsboyce8624
Maybe so, but 98% of the world uses IE. I will try it in the footer later today.

personally, i'm with you. i don't use FF. if it still doesn't work, you may want to look into the panicbutton.js. i am positive the scripting that allows the panic button to remain absolute/fixed on your screen may be interfering with the rest of your custom coding.

the panic button works on my test site, but i have no hacks added in except for a few true plug ins.

dsboyce8624 07-08-2005 06:29 PM

Hrm, okay I have the custom 404, 403, etc error hack installed.

If I set the 404 error back to default, everything is fine.

Otherwise I get the constant 404 page reload.

Must be a windows thing. I changed the custom 404 from file to URL and now I'm fine.

Somehow I don't think this will be a big problem, not many windows servers combined with that hack.

But you may wanna make a note.

yinyang 07-08-2005 08:43 PM

Quote:

Originally Posted by dsboyce8624
Hrm, okay I have the custom 404, 403, etc error hack installed.

If I set the 404 error back to default, everything is fine.

Otherwise I get the constant 404 page reload.

Must be a windows thing. I changed the custom 404 from file to URL and now I'm fine.

Somehow I don't think this will be a big problem, not many windows servers combined with that hack.

But you may wanna make a note.

will do.

i'll put it in the opening notes that it may, for some reason, conflict with the Custom 404 Error Hack.

AquilaEagle 12-26-2005 08:55 PM

I'm going to try this at th0ng.org :D


All times are GMT. The time now is 10:01 PM.

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.02148 seconds
  • Memory Usage 1,739KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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