[XTR] 2FA Verified Users

Paid [XTR] 2FA Verified Users 1.0.3

  • 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