Mindshare Labs, Inc.
Forum Replies Created
-
Forum: Plugins
In reply to: [PHP Browser Detection] Detect Operating System?Yes, so long as the data is in the browscap file you can use it, for example you can use
php_browser_info() to return an array of all the data and then do anything you like with it:php_browser_info() = Array ( [browser_name] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36 [browser_name_regex] => ^mozilla/5\.0 \(.*mac os x 10_(\d).*\) applewebkit/.* \(khtml, like gecko\).*chrome/(\d)(\d)\..*safari/.*$ [browser_name_pattern] => Mozilla/5.0 (*Mac OS X 10_9*) AppleWebKit/* (KHTML, like Gecko)*Chrome/37.*Safari/* [Parent] => Chrome 37.0 [Platform] => MacOSX [Platform_Version] => 10.9 [Win32] => [Comment] => Chrome 37.0 [Browser] => Chrome [Version] => 37.0 [MajorVer] => 37 [Frames] => 1 [IFrames] => 1 [Tables] => 1 [Cookies] => 1 [JavaScript] => 1 [JavaApplets] => 1 [CssVersion] => 3 [MinorVer] => 0 [Alpha] => [Beta] => [Win16] => [Win64] => [BackgroundSounds] => [VBScript] => [ActiveXControls] => [isMobileDevice] => [isTablet] => [isSyndicationReader] => [Crawler] => [AolVersion] => 0 )Forum: Plugins
In reply to: [PHP Browser Detection] WordPress Integration QuestionsThis code works:
<?php if(is_ie() && get_browser_version() <= 8) { // your advisory here }; ?>If you are getting fatal errors or similar problems, the issue is most likely something to do with your web server setup (PHP, memory, etc.) We can’t support your other plugins and theme, so sorry about that. To confirm that our plugin is working correctly you can test the above code using the WP default theme with no other plugins active.
Forum: Plugins
In reply to: [PHP Browser Detection] Unsupported browserIt is unlikely this issue had anything to do with this plugin. I’m closing this thread.
Forum: Plugins
In reply to: [PHP Browser Detection] Unsupported browserTry disabling any other plugins and activating the default theme. We have never seen this before so it’s likely an issue with one of your other plugins or theme. If the issue persists after those steps send us a link so we can see it.
Forum: Plugins
In reply to: [Subscribr] LanguagesI’m not sure. You could try installing the Pig Latin plugin https://wordpress.org/plugins/piglatin/ and let me know the results.
Forum: Reviews
In reply to: [WP Ultimate Search] superior searchThanks!
Forum: Plugins
In reply to: [WP Ultimate Search] Using on existing Backbone siteIn that case it’s pretty hard to test it unless you make it accessible on the web someplace.
Forum: Plugins
In reply to: [WP Ultimate Search] Using on existing Backbone siteDo you know what other plugin is using Backbone? Or theme?
Forum: Plugins
In reply to: [WP Ultimate Search] Using on existing Backbone siteOk. Can you provide a link?
Forum: Plugins
In reply to: [WP Ultimate Search] Using on existing Backbone siteWPUS uses the default backbone bundled with WordPress, so it shouldn’t cause any conflicts unless the plugin or theme you are using is doing something unusual (or maybe not using the default WP backbone.)
You can manually handle any script registrations using WordPress’ enqueuing system, first disable all scripts in WPUS:
global $wp_ultimate_search; remove_action( 'wp_enqueue_scripts', array( $wp_ultimate_search, 'register_scripts' ) );But then you would have to make sure all required scripts are properly enqueued on your own. Look at the code for register_scripts() if you want to do this.
Forum: Plugins
In reply to: [PHP Browser Detection] is_desktop seems to be broken in 3.1Awesome. Thanks reporting it.
Forum: Plugins
In reply to: [PHP Browser Detection] is_desktop seems to be broken in 3.1I just pushed out an update. Would you mind testing to see if the issue is fixed?
Forum: Plugins
In reply to: [PHP Browser Detection] is_desktop seems to be broken in 3.1Investigating…
Forum: Plugins
In reply to: [PHP Browser Detection] Redirect one Page for FirefoxYour PHP syntax is not correct. Please refer to a tutorial on writing PHP code, this isn’t really an issue with the plugin.
Forum: Plugins
In reply to: [PHP Browser Detection] Out of memory errorsCool! I will push it now.