• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Announcement: New plug-in browsertools
PostPosted: Thu Jul 22, 2010 8:46 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Jan 02, 2008 11:39 pm
Posts: 2154
Location: Lewiston-Idaho
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:
{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:
function.browsertools.php.txt [39.21 KiB]
Downloaded 55 times

_________________
Sorry. Too little support in projects, too little reason to not deprioritize. May-be if more attention is needed.
Follow me on Twitter | Follow me on FaceBook


Last edited by JeremyBASS on Thu Jul 22, 2010 9:37 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Sun Aug 01, 2010 12:42 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Jan 02, 2008 11:39 pm
Posts: 2154
Location: Lewiston-Idaho
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

_________________
Sorry. Too little support in projects, too little reason to not deprioritize. May-be if more attention is needed.
Follow me on Twitter | Follow me on FaceBook


Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Tue Dec 21, 2010 10:55 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Feb 08, 2006 2:32 pm
Posts: 113
Location: italy
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


Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Wed Dec 22, 2010 12:25 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Jan 02, 2008 11:39 pm
Posts: 2154
Location: Lewiston-Idaho
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:
            $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:
            // 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

_________________
Sorry. Too little support in projects, too little reason to not deprioritize. May-be if more attention is needed.
Follow me on Twitter | Follow me on FaceBook


Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Wed Dec 22, 2010 9:17 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Feb 08, 2006 2:32 pm
Posts: 113
Location: italy
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


Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Wed Dec 22, 2010 9:57 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Jan 02, 2008 11:39 pm
Posts: 2154
Location: Lewiston-Idaho
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

_________________
Sorry. Too little support in projects, too little reason to not deprioritize. May-be if more attention is needed.
Follow me on Twitter | Follow me on FaceBook


Top
 Profile  
 
 Post subject: Re: Announcement: New plug-in browsertools
PostPosted: Wed Dec 22, 2010 10:21 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Wed Feb 08, 2006 2:32 pm
Posts: 113
Location: italy
Good job!
And for your holidays too

Ciao
Maurizio


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner