Top
New to MailBeez? Start learning the basics
Advanced Module - Version 3.3 updated 30. Sep. 2016

Run MailBeez automatically


Get this Module as part of following plans:

Start Up

Business

Enterprise


A "real" Cronjob is the most reliable way to automize MailBeez. This module is a simple alternative solution.

 

About This Module

With this simple Mailbeez add-on, you can do away with the need to configure a cronjob to activate your Mailbeez installed modules. Instead, the plugin cleverly utilizes your store’s traffic to trigger Mailbeez as often as you have configured it to run. For site owners looking to get up and running quickly, or who do not wish to enter the server environment to setup a Cronjob, this is a very handy feature.

Lightweight and fast

Thanks to time stamp based caching technology, the additional load added to your store’s pages by the add-on is extremely small. In fact, with the aid of modern AJAX technology, visitors to your store will not feel or notice any difference, as the add-on only triggers MailBeez after a page has loaded completely.

Installation

The Store Systems Gambio Version 2.3 and Modified-Shop 2.0 are pre-integrated with MailBeez so following steps are not necessary.

osCommerce

Edit <store-root>/includes/footer.php as follows: At the end of the file, but before the closing ?> tag, insert the following code:

// MailBeez
if (defined('MAILBEEZ_CRON_SIMPLE_STATUS') && MAILBEEZ_CRON_SIMPLE_STATUS == 'True') {
    require_once(DIR_FS_CATALOG . 'mailhive/configbeez/config_cron_simple/includes/cron_simple_inc.php');
}
// - MailBeez

To avoid "/mailhive.php?cron_simple=1" page calls in the 'who is online' table, edit <store-root>/includes/functions/whos_online.php as follows:

find

$wo_last_page_url = getenv('REQUEST_URI');

after the above code is located, insert this after it:

// MailBeez
// avoid /mailhive.php?cron_simple=1 in who is online table
if (preg_match("/mailhive.php/", $wo_last_page_url)) {
   return false;
}
// - MailBeez

Zencart

Edit <store-root>/includes/modules/footer.php as follows: At the end of the file, but before the closing ?> tag, insert the following code:

// MailBeez
if (defined('MAILBEEZ_CRON_SIMPLE_STATUS') && MAILBEEZ_CRON_SIMPLE_STATUS == 'True') {
    require_once(DIR_FS_CATALOG . 'mailhive/configbeez/config_cron_simple/includes/cron_simple_inc.php');
}
// - MailBeez

To avoid "/mailhive.php?cron_simple=1" page calls in the 'who is online' table, edit <store-root>/includes/functions/whos_online.php as follows:

Find the line containing

$wo_last_page_url = (...)');

after the above code is located, insert this after it:

// MailBeez
// avoid /mailhive.php?cron_simple=1 in who is online table
if (preg_match("/mailhive.php/", $wo_last_page_url)) {
   return false;
}
// - MailBeez

Gambio 2.x, Modified-Shop 1.x

Edit includes/application_bottom.php as follows: Find the line contain

echo '</body></html>';

and above this line insert following code:

// MailBeez
if (defined('MAILBEEZ_CRON_SIMPLE_STATUS') && MAILBEEZ_CRON_SIMPLE_STATUS == 'True') {
    require_once(DIR_FS_CATALOG . 'mailhive/configbeez/config_cron_simple/includes/cron_simple_inc.php');
}
// - MailBeez

To avoid "/mailhive.php?cron_simple=1" page calls in the 'who is online' table, edit inc/xtc_update_whos_online.inc.php as follows:

Find

$wo_last_page_url = addslashes(getenv('REQUEST_URI'));

and insert after this line:

// MailBeez
// avoid /mailhive.php?cron_simple=1 in who is online table
if (preg_match("/mailhive.php/", $wo_last_page_url)) {
   return false;
}
// - MailBeez


Compatibility
This module is compatible with following shop systems

Gambio GX1

Gambio GX2/GX3

Modified-Shop 1.x

Modified-Shop 2.x

Commerce:SEO

xt:commerce 3

ZenCart 1.3.x

ZenCart 1.5.x

osCommerce 2.x

CRE Loaded 6.x


Changelog

v3.3

13.09.2016

    • PHP7 compatibility
    • framework updates

v3.22

02.11.2015

    • Gambio 2.5 integration support

v3.0

03.11.2014

    • ready for MailBeez V3.0
    • changelog started

Found errors? Think you can improve this documentation?   edit this page