The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Script to reject browsers Details »» | |||||||||||||||||||||||||
Hello Everyone,
I had like to reject some browsers to enter my site, so first i installed ZH-Restrict A Browser, but blocking javascript on the browser was letting you easly passing through it, then i started to write a more crude, but php, version of the addon, that is different, but with the same target, not enabling some browser to view your page. To do so i simply entered that string on the global.php in the root directory of the vbulletin installation (global.php, so it will work from every page of your vbulletin installation): PHP Code:
PHP Code:
Instead of two you may want to reject just one browser, than: PHP Code:
PHP Code:
PHP Code:
Enjoy. Show Your Support
|
Comments |
#2
|
||||
|
||||
Sounds Awesome, but do you have a screenshot?
Also can you reject certain browser versions for example IE6 ? |
#3
|
||||
|
||||
a demo link would be nice, so we could try different browsers
|
#4
|
||||
|
||||
why would anyone want to do this??? Wouldn't it just restrict users from your forum???
Nice mod, but I definatly can not use this one.... I may be slow, lol, but what are the up-side to restricting a browser from your site? |
#5
|
|||
|
|||
I agree with the above, what's the purpose of completely restricting a browser to use your site? Restricting browsers access to specific sections for incompatibility reasons is more understandable, and is already easily done with conditionals. So, how does anyone benefit from this?
To clarify, I'm not meaning that in a rude way if it seems so, I'm just curious. |
#6
|
|||
|
|||
thank you for the release
|
#7
|
|||
|
|||
And why the heck would you want to do this?
|
#8
|
|||
|
|||
I'm back!
@Loco.M You can see a working demo at my own website if you'll like www.perditionpoetry.com. But the site itself will not be completed untill september, just in time for Left 4 Dead, great new game from Valve and Turtle Rock, with zombie and much more . Then don't troll it too much . @dannykilla To restrict specific browser like IE 6, you can download the browser first (or IE Net Render if you'r using firefox 3.0), than create a clean *.php page, upload it in your website tests directory. In the file (within <body></body> of the basic HTML code)write: PHP Code:
IE 6 is "MSIE 6.0", anyway if you'll like to reject more than 2 browser (more than two IE version for example, and sending people to download the last version) modifing the script is really simple, just ask and I'll help you. @Diffidents The above one is an example of a possible utility for the addon, how to use it's all about you. On my side, I thought this addong while creating a restricted gaming community for my friends, I'm a nerd gamer. There is no incompatibility issues to avoid, i know how to solve them if i need to, if you are a commercial developer you should use it with real care, as others said kicking people from the site is not usually a commercial benefit, in my side I'm not interested in making money, but in choosing who I'm going to play with, so i can kick people from my site, and be selective. In specific, the reason i want to reject other browser is also to force people using firefox, or browser different from IE or safari, and this is a my personal battle. I'm not going to explain the reason here because it's not the right place to, it's a my personal choise, and my personal ideals. Second, as i said not allowing IE i make too young or non nerd users harder to join my community, and that is my target. (I'm not saying that IE is a browser for child or casual users at all. don't misunderstand!) I'm not surprised if you'll find it silly or useless, it's was invented mainly just for some zealots of hardcore gaming and firefox supported, and even if just 2 people installed it, and maybe there will not be many more, this already make me happy, since this is also my first release. After 2 weeks i bought vb. I hope to have answered all your question . |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|