Module Users

The Users module is a small registration and login function for visitors to the homepage. The first step is to activate the variable "userlogs" in globalvars.php.

$webutler_config['userlogs'] = "1";

Next, the module is installed and configured in the administration, System => Users. The installation is only possible if the server supports SQLite3. After the message "Database has been created" the basic settings should be made under the menu item Settings.

In the module user groups can be created and users are sorted into this group. This offers the possibility pages for "normal" visitors to lock and release only for individual user groups. Also, single side parts are made visible in the source code using the group ID for a group:

<?PHP if(in_array('GROUPID', $showpartfor)) { ?>
locked region are visible to GROUPID
<?PHP } ?>

Further explanations are in the Administration window.

Loginblock

Login As option the file "loginblock.php" can be a cross-page includiert as a block:

<?PHP include "includes/users/loginblock.php"; ?>

The appearance can be changed in the "loginblock.css".

User pages

For the user pages, a new page must be created and the file "userspage.php" are includiert:

<?PHP include "includes/users/userspage.php"; ?>

The design can be adapted during the "userspage.css".

Templates for the login block and user pages can be found in the directory / TPLS.