vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Nice Floating Panic button with javascript (https://vborg.vbsupport.ru/showthread.php?t=236975)

elenh 02-25-2010 10:00 PM

Nice Floating Panic button with javascript
 
1 Attachment(s)
A nice floating button with image for every page.

I have added default redirect link Google.com with search keywords "meteo" because google is fast site.If you click the button at the panic moment the other will see that you look the weather in your country.

You can change the redirect url with the url of your choice.

I proposed you this small addon if you have adult pages.

Install:
1. Upload the content of the panic folder in to your forum root
i.e.:
panicbutton.js --> clientscript/panicbutton.js
panic.png --------> images/misc/panic.png


Open of every style you are using the FOOTER template end at the very end add:

Code:

<!-- Start Panic Button Code -->
<script type="text/javascript" src="clientscript/panicbutton.js"> </script>
<div id="panic" style="position:absolute; width:48; height:48;">
<a href="http://www.google.com/#hl=en&source=hp&q=meteo&aq=f&aqi=g10&aql=&oq=&fp=c26c79a56c95bda8"><img src="images/misc/panic.png" width="48" height="48" border=0></a>
</div>
<!-- / End Panic Button Code -->

Save click install done.

Demo: For demo download the demo.zip, unzip it and open Demo html file with your browser to see how its looking and working.

oddmud 02-26-2010 08:35 PM

No Screenshots or demos?

elenh 02-26-2010 08:39 PM

sorry forget.Demo added.

New Joe 02-27-2010 12:38 AM

Quote:

Demo at Sexomanis.com (Look left bottom)
I found it hard to look at the bottom left on the Demo site, there were other distractions.
I also clicked it with my 6 year old daughter sat on my lap, not really the kind of thing I wanted her to see, I guess I should have read the Demo link words better.

stl7997 02-27-2010 02:21 AM

WOW! I think you need to display a warning to let folks know that they are about to enter a porn site.

elenh 02-27-2010 08:51 AM

Sorry guys i dont want to happend this.(new joe).My mistake.

I added a demo zip and inside is a demo html file.You can download it and open it with your browser to see how its works and look the button.

Again sorry for the mistake.

markwein 02-27-2010 04:45 PM

installed on my site (www.mwglforums.com) no porn (music lesson site) if you want to see it in action - I have it set to a specific forum page but it works :)

UPDATE: I took it down...it was causing the pages to scroll poorly..

Bouncer222 03-04-2010 08:35 PM

When I add this... I get invalid steam community data error on everyone's post.. its supposed to instead display some statistics there... seems that whenever I add some javascript file to my site to show up like an overlay like the panic button...

it disables my other javascript overlays... how to fix this?

elenh 03-06-2010 10:31 PM

remove the code off panic button and read excactly what to do.

biggeorge 03-10-2010 01:25 AM

Installed and working perfectly with 3.8... you can demo here: http://www.extremebusa.com/extreme


All times are GMT. The time now is 12:22 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.00990 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (1)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
  • (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