Users settings

‹ back to Settings

Users groups

  • Users groups are a very powerful tool in MyPortal 2.3, where you can add, edit or delete different categories for users. Each category can be created separately with it's own custom user's fields (name, surname, phone, avatar, country, etc...), system settings and detailed permissions. There already exits category Admin, which was created by installer. Use ADD GROUP button to create new categories or use edit and delete icons to manage existing ones.

  • After clicking on ADD GROUP button (or edit icon) you enter into category's settings with category name on top and three tabs: Category, System settings and Permissions. Users category

Category {#category}

  • required fields: Every user has to have it's username, which has to be a unique string (max 15 characters length. Therefore you can not find this field in users settings, because it is obligatory.

  • pre-defined fields: In editing section of category there are several pre-defined fields, which are represented with checkboxes: password, email, gender, name, surname, company, job, address, zip, city, country, language, phone, webpage, description and text. Every checkbox enables or disables it's own text field when adding or editing each user into this category.

  • images fields: There are two images fields in users categories: each user can have one image and one avatar. You just have to use a dropdown field and select the name of the images category with users images (images categories for users images and avatars have to be created first). All images from selected category will be available in the Users module when managing a single user.

  • optional fields: Every users category has 10 optional fields for custom use of any purpose. Their names (in MyPortal and DB) are field1, field2, field2, ..., field10. Each optional field is represented with a text field, where you may specify the field's alias. The optional field is not active if it's alias is empty. When managing a single user, each of optional fields will be shown as text editing field with it's alias. For example: you can use field1 for the user's birthday, because there is no such field among the pre-defined fields.

  • tag: The tag field is used to write down a list of items, which can be tagged on or off when managing a single user. Items have to be separated by commas.

  • selectbox: Another powerful tool in users categories is the selectbox. You can insert an items list into it very similar as in the tag field. Items will be available for selection through the dropdown field when managing a single user. If you choose the selectbox to be multiselect, then you will get all items as checkboxes when managing a single user. Tip: Instead of writing the items list into selectbox field, you can write a DB query which has to have columns value and name (for example SELECT id AS value, company AS name FROM users WHERE cid = 4). Every user from this category will have a dropdown menu with companies names from the users category with id = 4.

System settings {#systemsettings}

  • subscription: Subscription (if checked) adds checkbox subscribed to each user from this category. Subscribed users receive e-messages which are sent through Mailing module.

  • limit language: You can limit users from this category to see and work only in custom assigned languages.

  • user limit: User with this limitation can see and edit only those records (articles, images, files) which were created by him.

Permissions {#permissions}

  • For each users category you can set some custom and very detailed permissions. Permissions are separated into settings permissions and module permissions. Therefore you can allow user to see and access Images module, but you don't allow him to access the Images settings! Every module is separated into root categories (as you have created them) and every category can be permitted to null, view, edit or confirm.

  • users example:

Users category

null: no permission
view: READ
  • other modules: Permissions settings for other modules (articles, images, files, etc.) are just the same. For each module you can set settings and module access and set the type of permission for each root category inside that module.

  • tip: When you create new (articles, images, files, etc.) categories you get permissions to those categories as well. But you have to set permissions for other users categories otherwise they won't be able to access new categories.

‹ back to Settings

Try myPortal 2: