PHP Browser Detection
[resolved] Parse error, Syntax error (2 posts)

  1. Chukwudi Emmanuel Udegbunam
    Posted 2 years ago #

    Hi, I'm trying to get the plugin to work on localhost before deploying on my site but it keeps giving me a parse error

    Parse error: syntax error, unexpected '}' in C:\wamp\www\wordpress\wp-content\mobilepress\themes\default\single.php on line 68

    This is the code I added

    <?php if ( is_firefox($version) ) { do stuff }; ?>

    Do I need to make modifications to the code?



  2. Mindshare Studios, Inc.
    Plugin Author

    Posted 2 years ago #

    You need to replace "do stuff" with whatever code you want to execute.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • PHP Browser Detection
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic