A "real" Cronjob is the most reliable way to automize MailBeez. This module is a simple alternative solution.
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.
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.
The Store Systems Gambio Version 2.3 and Modified-Shop 2.0 are pre-integrated with MailBeez so following steps are not necessary.
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
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
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
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
Found errors? Think you can improve this documentation?
edit this page