Update V3.0 ยป V3.1

Conversion to HTML5

Up to version 3.0 of the Webutler ran under the doctype XHTML Transitional. The entire system was converted to HTML5. In order to prevent problems caused by intermixing of XHTML and HTML5, all HTML pages must be adjusted or switched to HTML5!
The new HTML5 elements <header>, <footer>, <section>, <article>, <nav> and <aside> are supported, but can not be created or edited in CKEditor.

SEO

For search engine optimization, the system automatically generates a sitemap.xml of pages and modules. In all the pages and pages of a module canonical tag is inserted automatically.
ModMaker modules automatically set in addition to the robots meta tag. If a ModMaker module is loaded into a page, the meta tag robots therefore should not be included.

New functions

Update to CKEditor version 4.4.7
Languages can be displayed as a directory in the URL.
In ModMaker modules now copies of topics and records can be created. In addition, the ID of a category can be set as the entry point to use the module on multiple pages.
Grid columns can now be deleted and are also available directly in the editor. The column width is changed to dynamic values (percent).
The size measuring tool is now available in full page editor.

Update from version 3.0 - What to do?

  1. With FTP delete the complete directory /admin.
  2. Upload the new /admin directory.
  3. Upload the files loader.php, wbclass.php and mmclass.php from directory /includes
  4. Conversion to HTML5:
    • Open all pages in the directory /content/pages and all layouts in /content/layouts.
    • Change the DocType to <!DOCTYPE html>.
    • In html tag language must only be specified <html lang="de">.
    • The meta charset specification is simplified in HTML5,
      change: <meta content="text/html; charset=utf-8" http-equiv="content-type" />
      to: <meta charset="utf-8" />
    • The type attribute for javascript files is optional, from all <script> tags type="text/javascript" can be removed.
    • The closing slash of self closing elements (<img />, <br /> etc.) can/should be maintained.
  5. Multilingualism:
    • In the file /settings/globalvars.php complement the variable
      $webutler_config['langfolder'] = "0";
      and set to 1 if the language should be displayed as a URL directory.
    • It may happen that you want to use in various languages the same file name, eg for a page called "service". For that the language code can now be set as a prefix before the file name:
      format: en_filename
      Prefix and underscores are automatically removed from the URL.
      $webutler_config['langfolder'] must be set to 1!
    • Copy the rewrite of the language in the URL to the root .htaccess:
      RewriteRule ^([a-z/]{3})$ index.php [L,NC]
  6. Sitemap:
    • Upload the directory /includes/sitemap.
    • Upload the file /settings/sitemaps.php.
    • Copy this rewrite for the sitemap.xml to the htaccess:
      RewriteRule ^sitemap.xml$ includes/sitemap/index.php [L,NC]
    • If you want to add modules created by the ModMaker to the sitemap:
      • Copy the file sitemap.php from /admin/makemod/draft to the module directory.
      • Open the file and replace the placeholder ###MODULENAME### with the module directory name.
      • The module must be entered in the file /settings/sitemaps.php - more info.
  7. The closing PHP tag ?> At the end of PHP files has been removed.
    • There were problems with empty rows when creating the sitemap.xml
    • Who comes to this phenomenon, one must open all PHP files from the /includes, /modules and /settings and remove the closing PHP tag ?>.
  8. ModMaker:
    • Loading mmclass.php was removed from the loader.php.
      • Open the file admin.php in all ModMaker modules:
      • at the beginning of the file after the line
        require_once dirname(__FILE__).'/includes/loader.php';
        add the following line::
        require_once $webutler_config['server_path'].'/includes/mmclass.php';
      • Open the file view.php in all ModMaker modules:
      • at the beginning of the file after the line
        exit('no access');
        add the following lines:
        if(!class_exists('MMConnectClass'))
        require_once $webutlercouple->config['server_path'].'/includes/mmclass.php';
      • Replace the file /includes/search/search.php with the new one.
      • In all ModMaker modules open the file loader.php in the /media directory:
      • at the beginning of the file after the line
        $webutler->config = $webutler_config;
        add the following line:
        require_once $webutlercouple->config['server_path'].'/includes/mmclass.php';
    • In ModMaker modules copies from topics and data records can be created and categories IDs can be used as entry points for multi-page support.
      • Open the file admin.php in all modules
      • Search for the function getnewtopiclink() and rename it to gettopiclink('new')
      • Search for the function getnewdatalink() and rename it to getdatalink('new')
      • There are new fields in /content/access/makemod.db
      • Who no longer needed his created modules stored in ModMaker can simply delete the makemod.db
      • Or open the DB with a SQLite3 admin tool and expand the admin table with the new fields 'copytopictocat INTEGER', 'copydatatocat INTEGER', 'copydatatotopic INTEGER' and 'basecatids INTEGER'
    • The variable _MMBLOCK was renamed:
      • The variable exists in "category" menus and "newest items" blocks.
      • Open the view.php in all ModMaker modules:
      • - Replace the variable name $_MMBLOCK by $_MMVAR
      • Open all files that load a category menu or newest items block:
      • - Replace the variable name $_MMBLOCK by $_MMVAR
    • The news module is also a ModMaker module
      • Perform the changes for sitemap, loading of mmclass.php and function names in the news module also!
  9. The grid elements were changed to dynamic width.
    • The CSS classes and all the templates have been changed.
    • Secure your own templates from /content/grids/elements and the file /content/grids/mygrids_lang.php.
    • Delete the directory /content/grids from the server.
    • Upload the new directory to the server.
    • In the saved templates and in pages contained grid elements the DIVs and CSS classes have to be adjusted.
      • The DIV with the wb_gridspace class has been removed
      • wb_gridtable was renamed to wb_gridgroup
      • wb_gridcell and wb_gridcell[PERCENT] was renamed to wb_gridcol and wb_gridcol[PERCENT]
    • Load the saved templates, the mygrids_lang.php and the customized pages to the server.
  10. Support for IDNA mail addresses
    • eMail addresses with special characters in the domain will be changed in Punycode. The following files must be updated:
    • /includes/users/user_class.php
    • /includes/forms/sendform.php
    • /includes/modexts/phpmailer/mailer.php
  11. New/revised variables in the globalvars.php
    • $webutler_config['langfolder'] - show language as a URL directory
    • $webutler_config['cssnotineditor'] - CSS files that should not be loaded in the editor
    • $webutler_config['playercolor'] - color for the control elements of the flash player
    • $webutler_htmlsource['page_header'] - converted to HTML5