Display Style Choice 1.0.0

XF 2.3 Display Style Choice 1.0.0

Add-on xenforo 2

Ressources et modules complémentaires pour XenForo 2

Styles xenforo 2

Styles / Thèmes et apparence pour xenforo 2

Templates xenforo 2

Codes pour modifier les templates sur xenforo 2

Section Premium

Add-on et Styles pour membre Premium
Display Style Choice 1.0.0

XF 2.3 Display Style Choice 1.0.0

Catégorie Catégorie Add-Ons
Titre du sujet Titre du sujet Display Style Choice 1.0.0
Auteur de la discussion Auteur de la discussion laurent68
Date de début Date de début
Réponses Réponses 0
Affichages Affichages 1
Réaction Réaction 0
Dernier message par Dernier message par laurent68

laurent68

Fondateur

Staff
fondateur
Réputation: 100%
Discussions
4 885
Messages
12 716
Solutions
85
J'aime
7 956
Points
198

Display Style Choice​

Let your users choose which user group's username color they display. Members with multiple user groups can pick their preferred display style from Account > Preferences, no admin intervention needed.

How It Works​

When a user belongs to multiple user groups, XenForo normally picks the display group based on group priority. This addon gives users control over that choice. A dropdown on the Preferences page lists all their eligible groups with a live color preview, so they can see exactly how their name will appear before saving.

Admins can lock specific groups (e.g., staff groups) to prevent users from selecting them, ensuring visual distinction for moderators and administrators is maintained.

Features​

  • User-facing dropdown - users pick their preferred display group from Account > Preferences
  • Live color preview - username color updates in real time as users browse options
  • Admin lockable groups - prevent users from selecting staff or other protected groups via a simple admin option
  • Zero-query performance - overrides XenForo's display group calculation at the repository level with no additional database queries
  • Lightweight footprint - single column added to the xf_user table; 3 clean class extensions
  • Clean uninstall - all data and schema changes are fully removed on uninstall
  • Respects XF patterns - uses standard XenForo class extensions (XFCP), phrases, and options

Configuration​

After installation, visit Admin CP > Options > Display Style Choice:
  • Locked staff groups - select which user groups should be unavailable for user selection. Users belonging to locked groups will still see them listed but cannot choose them as their display style.
Télécharger V1.0.0 :
 

Pièces jointes

  • 01-admin-options.webp
    01-admin-options.webp
    33.6 KB · Affichages: 0
  • 02-preferences-dropdown.webp
    02-preferences-dropdown.webp
    37.1 KB · Affichages: 1
Contenu similaire Les plus vues Voir plus
Retour
Haut Bas