Press Release: xtradbrowusers Plugin Update to Version 1.2.9

"Extrafields Users Custom" — now equipped with a full-fledged administration panel with three tabs and advanced multilingual support. Large-scale plug-in update for Cotonti CMF

Rating based on reviews:
Total stars received: 0
Total reviews: 0
Average rating: 0
Filed under: User Blog

📢 Press Release: xtradbrowusers Plugin Update to Version 1.2.9

Date: August 14, 2026
Version: 1.2.9
Author: webitproff

“Extrafields Users Custom” — now with a full-featured admin panel and advanced multilingual support

We are excited to announce a major update to the xtradbrowusers plugin for Cotonti CMF. The new version introduces a dedicated administration panel with three tabs, significantly extends multilingual capabilities, fixes mass‑saving bugs, and adds support for user categories with a convenient Select2 interface.

🚀 Key New Features

1. Full-featured Admin Panel (xtradbrowusers.admin.php)

Previously, user extra fields were managed only through the common “Extensions → Extra Fields” section. Now the plugin provides its own interface, accessible via the “Administration” button in the extension card or via the URL admin.php?m=other&p=xtradbrowusers.

The admin panel consists of three tabs:

📊 “Statistics” Tab

  • Displays the total number of users, the number of records in the xtradbrowusers table, and the number of filled profiles.
  • Shows a table of all registered extra fields with their parameters: name, type, description, options, default values, required flag, and active status.

✏️ “Editing” Tab

  • Allows bulk editing of extra fields for all users.
  • Implements filters:
    • text search (by name, email, or both),
    • filter by ID,
    • filter by user group,
    • filter by user category (Select2 with nesting indentation) – if the usercategories plugin is active.
  • Correctly saves only changed fields – no more false updates and “Updated 12” counters when nothing was changed.
  • For new records, initial values are properly set:
    • checkbox0,
    • datetime0,
    • select → the default value from the field settings,
    • other types → empty string.
  • For checklistbox, selected values are sorted before comparison, and for datetime, values are normalised to the Y-m-d H:i format to avoid time‑zone issues.

🌐 “Editing + Translations (i18n)” Tab

  • Appears only when multilingual support is enabled.
  • Only text fields (input and textarea) can be edited – translations are saved for them.
  • Other field types are displayed in read‑only mode in a user‑friendly format:
    • select, radio, range – localised via the $L language array,
    • checklistbox – displayed as a comma‑separated list of localised values,
    • country – shows the country name from countries.lang.php,
    • datetime – formatted date, zero dates are hidden,
    • checkbox – shows “Yes”/“No”.
  • For textarea, the translation field is also multi‑line, not single‑line.

2. Improved Multilingual Support (i18n)

In the new version, the translation mechanism has become more transparent and reliable:

  • Which field types are translatable?
    • input and textarea – via the xtradbrowusers_i18n table; translations are edited in the admin panel.
    • select, radio, checklistbox – via language keys $L['fieldname_value'], without using the translation table.
    • checkbox – stores 1/0, localisation is done in the template.
    • country – the country name is taken from the standard countries.lang.php file.
    • Other types (inputint, double, datetime, range, file) – translations are not saved at this time; the original value is displayed.
  • The fallback logic on public pages now takes into account the main site language and additional languages. If the main language is not filled, the plugin tries to use the first non‑empty translation from the active additional languages.

3. Integration with User Categories (Select2)

For convenient filtering by user categories, a new function has been added:

  • cot_xtradbrowusers_usercategories_selectcat2() – generates a category select with Select2 support, a “All categories” placeholder, and nesting indentation via data-depth.
  • The admin template includes a Select2 initialisation script with custom option display (root categories bold, children indented with spaces).
  • An empty option <option value="">All categories</option> ensures that the category filter is not applied if no category is selected.

4. Fixes and Improvements

  • Array handling in xtradbrowusers_save() – any arrays (e.g., from checklistbox) are now automatically converted to a comma‑separated string before saving.
  • Table registration in the extra fields registry – added a call to cot_extrafields_register_table('xtradbrowusers') to ensure that the key exists in Cot::$extrafields even when no fields are active.
  • Safe loading of the countries file – the path is now built from $_SERVER['DOCUMENT_ROOT'] to avoid errors under different server configurations.
  • Fixed a bug in $formatValue – for datetime, a return was added after the zero‑check to prevent falling through to the next case.
  • Category integration – code related to usercategories is now wrapped in checks for plugin activity and function existence to avoid fatal errors when the plugin is absent.

📄 New/Updated Files

FilePurpose
xtradbrowusers.admin.phpNew admin panel
tpl/xtradbrowusers.admin.tplAdmin panel template
inc/xtradbrowusers.functions.phpAdded category functions, improved multilingual support
lang/xtradbrowusers.ru.lang.phpAdded new language strings (Russian)
lang/xtradbrowusers.en.lang.phpAdded English translations
setup/xtradbrowusers.install.phpDemo fields updated and expanded
xtradbrowusers.setup.phpAdded configuration settings (i18n, perpage, showallitems)

🎯 Who Is This Update For?

  • Administrators get a convenient bulk‑editing tool with filters and correct change counting.
  • Developers can leverage the improved hook and localisation system to build complex user profiles.
  • Owners of multilingual sites – now extra field translations are managed centrally and displayed on all pages.

📥 How to Update

  1. Download the new version from GitHub.
  2. Upload the files to the plugins/xtradbrowusers folder, overwriting the old ones.
  3. Reinstall the plugin or perform the update through the admin panel.
  4. Clear the cache.

Full documentation and usage examples are available in the repository.

🔗 Feedback

Your feedback, bug reports, and suggestions will help make the plugin even better.

Back to top



Reviews

No reviews yet


Comments (0)

No comments yet
Only registered users can post new comments

Recommended Products and Services

Extrafields Users Custom

Extrafields Users Custom

Extrafields Users Custom (code xtradbrowusers) is a Cotonti CMF plugin that allows adding an

Page Discussion in Telegram

Content author

webitproff

Offline

Sodium Carbonate

Last logged: 2026-08-14 14:08

  • Чем могу помочь?

    Оказываю весь спектр услуг по CMF Cotonti. Разработка открытых и закрытых корпоративных интернет порталов, небольших социальных сетей, торговые площадки, маркетплейсы, биржи фриланса, каталоги товаров оптовых поставщиков, интернет-магазин под заказ, чтобы делать совместные покупки и групповые совместные продажи от имени нескольких продавцов.

  • Разработки на GitHub бесплатно
    • Page published: 2026-08-14 13:39
    • Last update: 2026-08-14 13:41
    • Language: