Top
New to MailBeez? Start learning the basics
Advanced Module - Version 4.202 updated 25. Oct. 2024

Run MailBeez automatically


Get this Module as part of following plans:

Start Up

S M L

Business

S M L

Enterprise

S M L

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 GX2/GX3/GX4

Modified-Shop 1.x/2.x/3.x

ZenCart 1.3.x/1.5.x/2.x

osCommerce 2.x

MailBeez.io API V2


Changelog

v4.2.2

15.01.2024

    • PHP8.2 refactoring

v4.2.1

03.11.2022

    • PHP8.1 refactoring

v4.2.0

14.10.2022

    • PHP8 refactoring

v4.0.1

22.05.2020

    • php error on zencart

v4.0.0

21.04.2020

    • PHP7.4 refactoring
    • Support for 4.0 Core Framework

v3.5

24.09.2018

    • PHP7.2 refactoring

v3.41

01.11.2017

    • refactoring

v3.4

05.12.2016

    • optimized frontend runner script

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