![]() |
Add Google Chrome to the is_browser() function
About the is_browser() function
This modification will allow you to insert into templates code specific for Google Chrome (useful for correcting CSS issues that it has with box-shadow and opacity). It obviously needs file edits, as there is no hook in there. Should work for vB versions from 3.7.3 and below, although in very old versions, the code to find might slightly be different. File: includes/functions.php 1. Find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
I think this will eventually be put into an official release, (hopes), but until then thank you for the tweak ;) I will try to update my sites soon so chrome users can enjoy it to the fullest.
|
Thanks.. my site looked wierd.. things at the top were listed at the buttom :)
|
Tagged for later. Thank you!
|
How to block chrome-browser users completly from accessing the site?
|
works nice .... thanks
|
Quote:
PHP Code:
However, imho its an extremely bad idea to do such a thing. If you want to shut a browser out of your site, do it to IE6, you would benefit the web more :P |
just what the doctor ordered thx
i love the new browser... |
Quote:
;) |
thx man installed. :)
|
Thanks!
Was allready searching for this :) |
top mod
|
Installed: But have not noticed any difference with Opacity ( perhaps Chrome just doesnt linke Reflections )
|
Quote:
This mod just lets you detect Chrome, its not a fix for any particular issue with it, but rather something you'll definately need when making such a fix. |
Quote:
Quote:
|
Exactly. It doesn't provide the exact code to insert, just the ability to do so.
|
Quote:
We use opacity on various mods within our sites, with the google chrome fix, you have created, it doesnt in any way make any difference to image opacity. All image reflections, have opacity set as reflective properties. Or perhaps I have missed the ghist of your initial statement... |
Have you actually read the is_browser() documentation that I provided a link to at the first post? Perhaps that will help you understand what this mod does.
|
All times are GMT. The time now is 04:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|