Announcement: New plug-in browsertools

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
JeremyBASS

Announcement: New plug-in browsertools

Post by JeremyBASS »

Hello, thou this is not a "new" plug-in

http://dev.cmsmadesimple.org/projects/browsertools
as it's had a few release already. but here is the new version and this is the pre-release...

So some information on it?  Detecting the user’s browser type and version is helpful in web applications that can help harness some of the newer tricks in web development. With the browser type and version you can notify users about challenges they may experience and suggest they upgrade before using such application. What you want is to redirect if they are a mobile device? What you want is to have some browser specific CSS without have to hack your file?  This plug-in, browsertools is what you need.

One of the strongest browser detection scripts for cms made simple, you can hook in to almost anything.  Use in ScriptDeploy directly in a CSS script get bullet proof scripts.

So to the question "what if the user is masked?" Well I would say this, if the user’s browser and browser version is hidden and if your visitor is echoing a false user agent,  then they have the where about’s to use a browser you don’t need browsertools to overcome.  They know the risks and they are a .% of your target market.  So with that, I say to heck with them :D ..


Try it out.. it'll let you get a very accurate outputs.. unlike the older version you can do very powerful mobi test..


EX:

Code: Select all

{browsertools output="browser"}<br/>
{browsertools output="version"}<br/>
{browsertools output="full"}<br/>
{browsertools output="platform"}<br/>
{browsertools output="full" dot_replace='-' strip_space=true}<br/>
{browsertools output="full" strip_space=true strip_dot=true}<br/>
{browsertools action="isMobile"}<br/>
Firefox
3.6.7
Firefox 3.6.7
Windows
Firefox3-6-7
Firefox367
false

Also you can test  with action=test and the param against=foo

Please test and let me know.. I'll be releasing the new version here shortly.. Cheers -Jeremy
Attachments

[The extension txt has been deactivated and can no longer be displayed.]

Last edited by JeremyBASS on Thu Jul 22, 2010 9:37 pm, edited 1 time in total.
JeremyBASS

Re: Announcement: New plug-in browsertools

Post by JeremyBASS »

So the update version is out..

http://dev.cmsmadesimple.org/project/files/765

Let me know if there is any issues.. excited to hear back on all the mobi deployments and css fixes you all can do it this :D... Cheers and enjoy -Jeremy
mox
Forum Members
Forum Members
Posts: 113
Joined: Wed Feb 08, 2006 2:32 pm

Re: Announcement: New plug-in browsertools

Post by mox »

Hi Jeremy,
from my HTC Android 2.x
{browsertools output="full" strip_space=true strip_dot=true}
{browsertools output="platform"}
{browsertools action="isMobile"}

output

Safari312
Linux
false

Can I catch an Android mobile?

Thanks
Maurizio
JeremyBASS

Re: Announcement: New plug-in browsertools

Post by JeremyBASS »

Hmm.. yes.. .. try this for the time being.. I should have had thought of this first.. move Line ~256 - 263 above Line 246

so from

Code: Select all

				$this->checkBrowserWebTv() ||
				$this->checkBrowserInternetExplorer() ||
				$this->checkBrowserOpera() ||
				$this->checkBrowserGaleon() ||
				$this->checkBrowserNetscapeNavigator9Plus() ||
				$this->checkBrowserFirefox() ||
				$this->checkBrowserChrome() ||
				$this->checkBrowserOmniWeb() ||
				$this->checkBrowserSafari() ||

				// common mobile
				$this->checkBrowserAndroid() ||
				$this->checkBrowseriPad() ||
				$this->checkBrowseriPod() ||
				$this->checkBrowseriPhone() ||
				$this->checkBrowserBlackBerry() ||
				$this->checkBrowserNokia() ||
to

Code: Select all

				// common mobile
				$this->checkBrowserAndroid() ||
				$this->checkBrowseriPad() ||
				$this->checkBrowseriPod() ||
				$this->checkBrowseriPhone() ||
				$this->checkBrowserBlackBerry() ||
				$this->checkBrowserNokia() ||


				$this->checkBrowserWebTv() ||
				$this->checkBrowserInternetExplorer() ||
				$this->checkBrowserOpera() ||
				$this->checkBrowserGaleon() ||
				$this->checkBrowserNetscapeNavigator9Plus() ||
				$this->checkBrowserFirefox() ||
				$this->checkBrowserChrome() ||
				$this->checkBrowserOmniWeb() ||
				$this->checkBrowserSafari() ||


That should right it.. but I'll make a change later cause one may want to know if it's Opera on Android or Safari on Android etc.  If you can get back to me on that change that will help.  Sorry I don't have a HTC yet to test for another month.

Cheers -Jeremy
mox
Forum Members
Forum Members
Posts: 113
Joined: Wed Feb 08, 2006 2:32 pm

Re: Announcement: New plug-in browsertools

Post by mox »

Hi Jeremy,
you'r really fast! Thanks.
I follow your guide and the result, from my HTC, is
Android312
Linux
true
Firefox

the value of my interest is true/false on mobile device, and now is correct.
Many thank

Ciao
Maurizio
JeremyBASS

Re: Announcement: New plug-in browsertools

Post by JeremyBASS »

I aim to be fast ;) , it's my job.  Question.. did you really get Firefox?  That seems odd. 

I'll release the fix when I get back from vaca in a week or so.  Also now I added 'agent' so now if this happens again you can just go {browsertools output='agent'} and double check to see if there is an issue.

Glad I was able to right it for you, good karam.  Hope your holidays are well.
Cheers -Jeremy
mox
Forum Members
Forum Members
Posts: 113
Joined: Wed Feb 08, 2006 2:32 pm

Re: Announcement: New plug-in browsertools

Post by mox »

Good job!
And for your holidays too

Ciao
Maurizio
Locked

Return to “Modules/Add-Ons”