[XTR] 2FA Verified Users

Paid [XTR] 2FA Verified Users 1.0.4

📌 Release Notes​

In this update, we have introduced two important improvements based on your valuable feedback to help you manage your community's security and user experience with greater precision:
  • Enhanced Access Control: Users who do not have permission to view the two-step verification (2FA) help page will now no longer see the page link in the help menus. This prevents confusion for unauthorized users.
  • Customizable Notices: You can now choose exactly which user groups should see the notification encouraging members to enable two-step verification. Combined with the overall enable/disable toggle, this new group permission gives you complete control!
You can upgrade your add-on right away to start enjoying these new features. Happy forum building!

📝 Changelog​

  • New Feature: Added a user group permission setting to control the visibility of the verification notice.
  • Improvement: The "Verification criteria" help page link is now fully hidden from the help menus for unauthorized users.
  • Improvement: Enforced strict permission checks on direct address access to the verification criteria page.
  • System: Applied minor system updates for seamless compatibility with XenForo 2.3 standards.
  • Icon System Update: Integrated XenForo 2.3's new SVG icon system (IconRepository). Badges are now rendered directly as SVG data instead of icon fonts.
  • Fixed Color Application: Resolved the issue where the badge color from admin options was being overridden by global CSS rules. This was fixed using high-priority (!important) inline styles.
  • Dynamic FA Support: The "Verified users' badge" option is now fully functional. Font Awesome classes (e.g., fas fa-badge-check) are now automatically parsed and converted to the correct SVG data.
  • Code Optimization: Removed redundant inline CSS positioning styles from the badge wrapper (<span>); layout management is now handled by the XenForo core for a cleaner HTML output.
This update has been released to ensure full compatibility with the revamped icon architecture (SVG sprite system) introduced in XenForo 2.3 and to enhance the stability of color configurations in the options. Visual bugs have been resolved, and the code structure has been modernized.
  • Fixed: Verified user badge was not visible in sidebar widgets (Staff Online, Members Online) and the member list.
  • Fixed: The str_ireplace-based badge injection was incompatible with XenForo 2.3's nested HTML structure. Replaced with a reliable strrpos-based injection method.
  • Fixed: $this->em() method call in SessionActivityRepository was undefined in the XF 2.3 Repository architecture. Corrected to $this->em property access.
  • Improved: N+1 database queries for the UserOption relation in sidebar widget online user listings were optimized via batch pre-loading with findByIds.
  • Improved: Tooltip and color values are now escaped via htmlspecialchars to strengthen XSS protection.
This update resolves a critical issue where the verified user badge was not visible in XenForo 2.3.x environments.

Additionally, XenForo 2.3 introduced a new nested HTML structure for username links that prevented the previous text replacement method from working.

With this release, the badge system has been completely rewritten. The badge now uses an inline SVG, making it fully independent of the FontAwesome library. This ensures reliable visibility across all environments regardless of FA Pro license availability. The color value configured in your add-on settings continues to be applied automatically.

Additionally, unnecessary database queries in sidebar widget online user listings have been optimized, and a compatibility issue in the Repository layer has been resolved.
Version string 1.0.1
  • Added new phrases
  • Updated public templates
  • Updated reject of verification badge action

XenForo 2.2.x and PHP 8.1+ Compatibility
  • Confirm XF 2.2.12+ Support
  • PHP 8.1 compatibility
Version string 1.0.0
  • Exclude from the member list if user verified status is rejected
  • Easy to reject verification badge any users
  • Create your rules and descriptions
  • Help page
  • Verified Member List
  • User group permissions
  • Notice for unverified users
Recommended
  • PHP 8.0+

XenForo 2.2.x and PHP 8.1+ Compatibility
  • Confirm XF 2.2.11+ Support
  • PHP 8.1 compatibility
Back
Top