Update V3.5 ยป V3.6
There are just a few small improvements and bug fixes.
Change column elements
Previously, column elements could only be added and deleted. Now you can change them later. If the number of columns is reduced, the contents of the affected columns are lost. Editing is only possible directly on the page, unfortunately the CKEditor does not support changing - at least not in the version currently used.
Support for images in webp format
In globalvars.php there are 2 new settings, "convert_webp" and "webp_quality". If "convert_webp" is set to 1, images uploaded in the file browser or changed in the image editor are automatically converted to WEBP format. With "webp_quality" The quality is set, similar to JPGs. Animated GIF files are not supported and will not be converted.
File attachment in emails
Upload fields can now be set in forms and file attachments can be sent with the email.
In config.php, the format of the files to be transferred can be restricted using the $forms_mailattachs variable (infos).
ModMaker
Content such as title, heading or description can now be stored for the home page of a module (edited in the frontpage.tpl template). If categories have been activated, the called category is displayed above the record list (edited in the cattop.tpl template).
Update ModMaker database
Anyone who uses ModMaker must update the database. Otherwise there will be error messages. Alternatively, if the data of previously created modules do not play a role, makemod.db can simply be deleted. It will then be recreated the next time it is called.
- Make a copy of the ModMaker database file as a backup in case an error occurs. The makemod.db file can be found in the /content/access directory.
- Create a file update.php in the root of the homepage.
- Copy the following script into the file:
<?PHP
$dbpath = 'content/access';
if(file_exists($dbpath.'/makemod.db') && is_writeable($dbpath)) {
if($makemoddb = new SQLite3($dbpath.'/makemod.db')) {
$makemoddb->query("BEGIN");
$makemoddb->query("ALTER TABLE admin ADD COLUMN front TEXT");
$makemoddb->query("ALTER TABLE admin ADD COLUMN seofront INTEGER");
if($makemoddb->query("COMMIT")) {
echo 'Database makemod.db updated';
}
else {
echo 'Error database <strong>not updated</strong>';
}
}
else {
echo 'Error open database';
}
}
else {
echo 'Error database not writeable';
}
- Save the file and open it in the browser.
- After the update, the file must be deleted again! If everything went well, the backup of the ModMaker database file can also be deleted.
Lightbox
There is a new lightbox, the script from simplelightbox.com has been integrated. Nothing changes in how it works.
LeafLet map
The fact that the map is zoomed on mouseover with the mouse wheel can now be switched on/off.
Lazy loading
The loading="lazy" attribute can now be set for images in the editor. be placed in the IMG tag. Lazy loading may only be set for images outside the viewing area, i.e. images that are only displayed when scrolling.
robots.txt
The sitemap must be specified in the robots.txt including the domain. So that you don't have to enter this separately in the robots.txt, this is now done by PHP.
Meta tag keywords
The keywords meta tag is now ignored by search engines. Therefore the input field was removed from the editor and ModMaker modules.
Update from version 3.5 - what to do?
- Delete the /admin directory and upload the new one.
- Delete the .htaccess and robots.txt files from the root.
- Upload the new .htaccess and the /includes/robots directory.
- Replace the /wbclass.php and /mmclass.php files in the /includes directory with the new files.
- The variables
$webutler_config['convert_webp'] = "1"; (or "0") and
$webutler_config['webp_quality'] = "80";
in the file /settings/globalvars.php.
- The variables must also be added in Modmaker modules.
Open the admin.php and view.php files of a module and search for "class->jpgqual" seek. If it is found, add the following lines before it:
$_MODULNAME_class->convertwebp = $webutlermodadmin->config['convert_webp'];
$_MODULNAME_class->webpqual = $webutlermodadmin->config['webp_quality'];
- Update the Modmaker database with the update script from above. Modmaker modules that have already been created are not affected by the changes.
- If you want to send file attachments in forms, delete the old /includes/forms directory and upload the new one. If necessary, update the /imgs and /tpls directories and the config.php file beforehand. Adjust the new $forms_mailattachs variable for file attachments to be transferred.
- If you want to use the new lightbox, simply upload the /content/javascript/simplelightbox folder and enter the JS and CSS files in the compress.php:
$webutler_compress['css'][] = 'content/javascript/simplelightbox/lightbox.css';
$webutler_compress['js'][] = 'content/javascript/simplelightbox/lightbox.js';
$webutler_compress['js'][] = 'content/javascript/simplelightbox/load.js';
The old lightbox should be removed. Delete the entries:
$webutler_compress['css'][] = 'content/javascript/lightbox/lightbox_plus.css';
$webutler_compress['js'][] = 'content/javascript/lightbox/lightbox_plus.js';
and the /content/javascript/lightbox folder.