Implement expCounter in Website Baker
Please see following instructions to implement this counter to a Website Baker installation.
ExpCounter is available as well as a Standalone Product and as a Website Baker Module.
The Website Baker Module can be installed according to the installation of modules and snippets. Additional instructions can be found on the module page at AMASP. If you implement the additional snippet there are some configuration settings available.
During tje install routine all neccesary informations will be requested. Having finished the counter can be found at the backend in the admin tools section.
To implement the counter as a standalone product follow these steps:
Step 1: download expCounter and install
Please dwonload the latest expCounter Release and install the counter following the Installdescription. use the same directory for expcounter files on your webspace as you use for the Website Baker installation. If for example Website Baker is placed in /httpdocs/wb/ please use this directory for expCounter: /httpdocs/wb/expcounter/ . If WB is installed in the root of your webspace install the counter in /httpdocs/expcounter/ .
Step 2: implement expCounter in Website Baker Template
Having installed the expCounter you have to modify the index.php of your installed Website Baker Template.
This can be done online in the templates directory by using the Adddon File Editors.
Please take care to modify the path to your counter.php .
Insert the following Code to that place in your index.php where the counter should appear in the frontend.
If the counter should be invisible you can place this code directly before the closing body tag </body>.
<?php
$chCounter_visible="1";
$chCounter_status="active";
$chCounter_page_title=PAGE_TITLE;
$chCounter_force_new_db_connection="FALSE";
include(WB_PATH."expcounter/counter.php");
$database = new database();
?>
Notice: with the variable
$chCounter_visibleyou can control visibility of the counter independently from the counter settings.
Now you are done.
The counter is ready for use now and can be called via the browser according to the installation.