Force Custom User Field Completion after Registration or Login

Force Custom User Field Completion after Registration or Login v2.3.2

No permission to buy ($15.00)
  • Remove meaningless route logError from code (oops)
  • Add: Guards at preSave and postSave
  • Add: Ignore states between guest and registered (not valid, email confirm)
  • Fix: Skip two-step authentication + registration
  • Add: Improved UI experience with native Html validation
  • Add: Use XenForo Html validation to all required fields (much more user-friendly user interface)
  • Add: Use server-side validation as fall-back
  • Fix: Don’t trap users when the format is wrong (ignore ->isPost() to allow validation)
  • Fix: Include all required fields and skip non-required fields during validation (performant)
  • Fix: Use proper method to validate avatar
  • Fix: Skip user validation for any admin areas (fixes issue with bulk user update)
  • Fix: Skip user validation on any Cli updates
  • Like
Reactions: GameNet
  • Remove listener method not being used
  • Remove any reliance on $user finder and reuse $visitor object for improved performance
  • Cast all checkboxes to boolean instead of comparing strings
  • ADD: Clear errors immediately upon postSave() to ensure errors aren't visible after user correctly completes required fields
  • FIX: Type Error with req_fields, fix using is_array()
  • FIX: Incorrect Use of break Instead of continue
  • FIX: Skip validation during _preSave(), specifically during password reset
  • Like
Reactions: GameNet
Tested with XF 2.3.6
  • FIX: Skip validation if not in a public app context (e.g., CLI or job rebuilds)
  • FIX: Ensure all validation is user-centric
Tested with XF 2.3.4
  • FIX: Add phrase for missing field title: user_field_title.about_you
  • FIX: verifyAvatarCropX() for XF < 2.2.x
  • ADD: Add session exclusion logic for efficiency
  • ADD: XF:Index, but exclude instanceof isAdmin()
  • ADD: Build.json to exclude unnecessary files from release package
  • REMOVE: Unnecessary html comments from test build
** XF 2.3 Compliant - Forwards/Backwards Compatible **

XF 2.3
  • Resolved issues with XF 2.3 (redirections and fails)
  • Resolved issue with admins being forced from admin.php
  • Extended _preSave on UserProfile and integrated with verify fields system where possible
    • System now prompts with overlay similar to default fields for most fields
  • Attempts to clear fields that are required fail
  • Avatar required will still require additional page load (no change)
XF 2.0+
  • Moved "wait after X days" to the top
  • Cleaned up the options language for brevity
  • Date of Birth Removed [select here instead: admin.php?options/groups/usersAndRegistration/]
    • may re-add at a later date
  • Added current icon
  • Updated <requirements> for installs to XF 2.0 - XF 2.3.x
  • Love
Reactions: GameNet
  • php 8.x deprecation fix (added null coalescing)
  • resolve E_WARNING
  • Updated to session.remove() to save a round trip after the user updates required fields
  • Allows the user to immediately leave account update page after completing all required fields
  • Removed a deprecated/unused function
Back
Top Bottom