Force Custom User Field Completion after Registration or Login

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

No permission to buy ($15.00)
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
  • Removed custom and in-line CSS
  • Used built-in XF blockMessage styling to ensure this add-on works well with all custom themes (dark or light)
  • New option to "wait X days after registration" before requiring profile fields be completed
  • Like
Reactions: Sunka
Apologies for the multiple updates, this fixes:
  • Avatar only selection not being captured and forced (when it's the only selection)
  • Like
Reactions: Sunka
  • Bug fix for the edge case that no custom user fields are enforced and instead, only default XF fields are selected to be forced
  • Added support to force users to upload an avatar
  • Added broader support for pages that redirect to force fields
Thanks to @delicatebobster for the request to add Avatar.
Back
Top Bottom