Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ZH - Restrict A Browser Details »»
ZH - Restrict A Browser
Version: 1.0.0, by Ziki Ziki is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.3 Rating:
Released: 12-18-2007 Last Update: Never Installs: 23
Uses Plugins
 
No support by the author.

This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Modification name
Restrict A Browser

~Modification description
This plugin restricts a certain browser from accessing your site.When that browser tries to access your site an alert will say that the browser is not supported and will close the window.

~Modification options
  • On/Off
  • Choose Browser type

~Modification info
File uploads: 0
Template edits: 0
Templates: 1
File edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 5
Settings: 2

Install time: 3 sec
Install level: Easy]

~Modification installation

Step 1: Import Product



~Modification screenshots
None


~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-19-2007, 06:58 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

~Reserved~
Reply With Quote
  #3  
Old 12-19-2007, 07:08 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Instead of closing down the broswer, is it possible it redirects it to a page where you can download the browser at?
Reply With Quote
  #4  
Old 12-20-2007, 08:58 AM
Ba$im Ba$im is offline
 
Join Date: Apr 2007
Location: Saudi Arabia
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanx.
Reply With Quote
  #5  
Old 12-20-2007, 03:11 PM
cosy cosy is offline
 
Join Date: Jul 2007
Posts: 207
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can we get a option for custom message and a redirect url ?
Reply With Quote
  #6  
Old 12-20-2007, 05:27 PM
TCooper TCooper is offline
 
Join Date: Mar 2004
Location: Virginia Beach, VA
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cosy View Post
can we get a option for custom message and a redirect url ?
it should be pretty easy to redirect to a particular page if needed. You would have to edit his javascript to redirect to url instead of using
Code:
window.close()
I would try javascripts window location like
Code:
window.location = "http://www.siteyouwanthere.com"
unless he decides to make it a feature in his hack.
I personally havent tried using this yet or even his hack at that. I will as soon as I get around to upgrading my board but trying to hold of til gold... not wanting to deal with beta version at the moment.
Reply With Quote
  #7  
Old 12-20-2007, 07:20 PM
360junkie 360junkie is offline
 
Join Date: Dec 2007
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm all they have to to to get by this is click

ok

no

then there on the site
Reply With Quote
  #8  
Old 12-21-2007, 02:28 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent!
Reply With Quote
  #9  
Old 12-21-2007, 09:17 PM
ninjamaster's Avatar
ninjamaster ninjamaster is offline
 
Join Date: Oct 2006
Posts: 213
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank this will come in handy
Reply With Quote
  #10  
Old 06-25-2008, 11:29 AM
Kzyl-orda Kzyl-orda is offline
 
Join Date: Jun 2008
Location: Venice
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, and i installed it, but i can choose just 1 browser, i want to kick both IE and Safari. Can you change it to multiple choise?
I was just able to make safari and IE blocked in the same script, so i'm ok, this is just a suggestion to improve your addon

This is how i modified the code to ban both the browser:
from:
Quote:
<if condition="$vboptions[zh_restrict_type]==1">
<if condition="is_browser(ie)">
<script type="text/javascript">
alert("Internet Explorer is not welcome here, than your browser type has been blocked from our site. Please a supported one. We suggest you Firefox or Opera")
window.location = "http://www.url.com"
</script>
</if> </if>
To:
Quote:
<if condition="$vboptions[zh_restrict_type]==1">
<if condition="is_browser(ie)">
<script type="text/javascript">
alert("Your browser type has been blocked from our site.Please a supported one.")
window.location = "http://www.url.com"
</script>
</if>
<if condition="is_browser(safari)">
<script type="text/javascript">
alert("Your browser type has been blocked from our site.Please a supported one.")
window.location = "http://www.url.com"
</script>
</if>
</if>
And
From:
Quote:
<option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Internet Explorer</option>
To:
Quote:
<option value=\"1\" " . iif($setting['value']==1,'selected="selected"') . ">Internet Explorer and Safari</option>
Hope it helps
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04612 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete