Woopra Forums » Troubleshooting » Web Site Installation

SMF forum problems

(5 posts)
  • Started 4 months ago by skafte
  • Latest reply from skafte
  • This topic is not a support question
  • skafte
    Member

    When I insert the tracking code on a SMF version 1.1.4 forum I get the following error when I reload the site:

    Template Parse Error!
    It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

    You can also try refreshing this page.

    I have used Google Analytics until now - which didn't cause any problems, and I just replaced their code with the Woopra one.

    Any help?

    Posted 4 months ago #
  • pmk
    Member

    where did you put in the code? what part of the code and which file?

    Posted 4 months ago #
  • skafte
    Member

    In my theme file, index.template.php, function template_main_below(), right at the end, just before </body></html>

    Posted 4 months ago #
  • pmk
    Member

    Correct place,

    Try replace the single qoutes with backslash in your woopra code.

    Example:

    <script type="text/javascript">
    var woopra_id = \'xx99xx77xx\';
    </script>
    <script src="http://static.woopra.com/js/woopra.js"></script>

    Or check this thread: http://www.simplemachines.org/community/index.php?topic=211633.10

    Posted 4 months ago #
  • skafte
    Member

    Thanks, it worked :)

    btw, wouldn't it be more correct to write
    <script src="http://static.woopra.com/js/woopra.js" type="text/javascript">
    instead of
    <script src="http://static.woopra.com/js/woopra.js">

    at least that makes the W3C verifier shut up

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.