• Resolved Roger Due

    (@sunshineahead)


    I have tried all the other WP plugins that claim to detect IE8 & older, but each has a fatal problem when trying to use with a fully responsive site. You seem to be the only hope left and it looks like you are still maintaining your plugin. I need some guidance on several questions:

    <?php
    	if(is_desktop() && is_ie() && get_browser_version() <= 20)
    	{
    		echo "Will this work?";
    	}
    ?>

    I am using the Caldera Engine and created a shortcode with the above code. (By the way, My Shortcodes is the free version of Caldera Engine.) For testing purposes, I am just using “20” as the version number above for testing, but will change it to “8” when all is working.

    [1] I want to display an advisory message to the user, essentially saying that they can’t use IE8 or older to view this site.

    [2] I want to do this very early in the WP startup sequence, long before IE6 throws a fatal error, which it currently does on the sites of interest.

    [3] I was expecting that I needed some way for the screen to ‘pause’ to give the user time to read the advisory message. Once the user has done so, I was expecting that they would probably be prompted to click on an ‘Ok’ or something equivalent.

    [4] At this point, what is the recommended way to ‘exit’ from the WP site?

    Hopefully you can point out the right way to integrate the above plugin code so that I have a clean way to warn the users and simply refuse to continue displaying the website after they have had a chance to digest the warning. My objective is to advise the user long before any of the Home page has a chance to display.

    Previously, I was using Browser Rejector 3.0 by Nick Halsey, but he hasn’t upgraded it in a long time. I also found that it has a fatal flaw when viewing some of my client sites on my new Galaxy S5, so had to remove.

    I spent many hours trying to find other solutions and each of the following has a fatal error that I can’t get around when testing under various conditions:
    * WP Outdated Browser 2.0.0 by Deblyn Prado
    * Internet Explorer Alert 3.5 by Md Shariar
    * Advanced Browser Check 3.1.0 by Mattias Hedman
    There were several older plugins that were so out of date that they didn’t warrant checking.

    So I sure hope you can help me understand how to properly solve the above questions so that I can use your PHP Browser Detection to block users from trying to view these websites with IE8 or older.

    — Thanks, Roger

    https://www.ads-software.com/plugins/php-browser-detection/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    This 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.

    Thread Starter Roger Due

    (@sunshineahead)

    Hi,
    I don’t think you understood my question. It has to do with what to put in the “// your advisory here” section so that I can advise the user what the problem is and then exit the website. By showing the “echo” in my example, I was showing that your code is picking up the checks properly. Now I just want to properly advise the user.

    I have done some php coding, but I don’t know how to handle the steps outlined in my question. I have spent hours trying to figure this out and haven’t found the right way to ask Google how to solve this.
    — Thanks, Roger

    Plugin Author Mindshare Labs, Inc.

    (@mindshare)

    It’s totally dependent your theme and specific situation how you’d want to handle that. I’d suggest hiring a developer to help you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress Integration Questions’ is closed to new replies.