Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Wiki Markup
    \[You should be still logged into the back end (Administration) part of your Joomla site\]
  • Choose menu item "Modules", then "Site Modules"
  • Make sure mod_jstats_activate is published (if there is an x in the row then click on it) 
  • Module mod_jstats_activate should be activated as first (or as last if performance is required)

2. By adding some lines into the site template

...

  • Wiki Markup
    \[You should be still logged into the back end (Administration) part of your Joomla site\]
  • Choose menu item "Site", then "Template Manager", then "Site Templates"
  • Mark your default template and select "Edit HTML"
  • Insert following text directly after/under the '<body>' statement: (or after </body> tag if performance is required)
    For Joomla 1.0.x:
        <?php
        if (file_exists($mosConfig_absolute_path.'/components/com_joomlastats/joomlastats.inc.php'))
            include_once($mosConfig_absolute_path.'/components/com_joomlastats/joomlastats.inc.php');
        ?>
    For Joomla 1.5.x:
        <?php
        if (file_exists(JPATH_SITE.DS.'components'.DS.'com_joomlastats'.DS.'joomlastats.inc.php'))
            include_once(JPATH_SITE.DS.'components'.DS.'com_joomlastats'.DS.'joomlastats.inc.php');
        ?>
  • Use the "Save" button 

...