Fixed an issue with potential referral link decoding error when invalid ID is provided.
Added a new option called "Enable referrer auto-follow referral" where referrer will auto-follow the referral upon registration. Made some changes to the referral link where it is now displayed in an input field with a copy to clipboard function, for a more compact look. Fixed an issue with the "Encrypt user ID" feature where the hashids script used is no longer compatible with PHP 8.2 or newer and it has been replaced with sqids. If you have been using this feature and running at least PHP 8.1, you have to ask your users to update their referral links because they have different IDs now.
Fixed a potential error on user registration with invalid IPs.
This version is compatible with XF 2.3 only.
Updated to latest version the Hashids script used for generating unique IDs from user id when "Encrypt user ID" admin option is enabled.
Fixed an issue with share links where referral links can result in 404 not found.
Added "top referrers" widget option to display top referrers from certain contests.
Added IP in referrals list in ACP linked to the list of users that might have used the same IP.
Fixed a potential error with referrer custom field.
The code has been cleaned up and important parts have been moved from the Listener to Entity and Repository.
Bugs Fixed
Fixed an issue with a potential error on user registration with referrer auto follow.
Referral link not applied on mobile devices to share buttons.
Referral link not applied to the post share copy link.
Issue with custom referrer user field and manual user approval where some code won't run as it should.
Added option to allow referrals to auto follow referrer upon registration. This can be enabled from admin options.
When using option "Use profile page as referral link" and visitor landed on the page from a search engine, it will not count as a referral so no cookie will be placed.
Fixed an issue when using "Encrypt user ID" where the real user id is showing in the cookie.
Error on duplicate user detectionwhen no referrer is available.
Added a new widget for invitations statistics that will display the number of invitations sent and the remaining number, with links to send and create invitations. Can be enabled from admin options.
Added duplicate account detection for users that use the same IP to register with a referral link. When a user registers with the same IP as the referrer, admins will get an alert notification.
Added support for "Extend Sharing" add-on.
Added option to create user group invitations based on the registration date.
Fixed an error with contest winner alerts.
Added admin option to mass create invitations based on user groups.
Added admin option "Referrer minimum posts" to allow using referral link or invitations. Also added a user group permission to bypass this restriction.
This version contains some changes and you might see some errors in the admin error log, generated by users and it should be fine once the upgrade is complete.
Added user criteria "User has registered using a referral link".
Added option to apply referral link to social media share icons.
Added a "custom" reward type that can be used for digital and physical prizes.
Added native XF support for "Enable copy to clipboard button" option.
Bugs Fixed
Using member profile as a referral link will change the referrer if the visitor views the profile of a different member after viewing the original referrer's profile.
Using the option "Display invitation message to referral" with "Use profile page as referral link" will not display the message on the first page view.
Added spam cleaner options to remove referrer and referrals. Requires the new user group permission "Use the spam cleaner to remove referrer/referrals".
Added admin option to select user groups when creating invitations from ACP. The registered user will be added to those groups upon registration.
Bugs Fixed
Issue with invitation code autocomplete on registration page where the field gets cleared up when you try to manually paste the invitation code.
Contest prizes not being awarded correctly.
Admin option "Display invitation message to referral" working only after page reload.
Referral tools displaying in Guest mode.
Invitation code autocomplete issue when there is a delay in the overlay load.
Added the option for admins to decrypt referrer IDs (ACP > Referral contests > Decrypt referrer ID).
Added alert notifications for referrers when they get trophy points for referrals.
Referrer log has been implemented in ACP (It was there but it didn't display anything).
Added the option to use encrypted user IDs instead of the actual user ID. This will create a short alphanumeric ID of 5 characters or more.
Added invitations sent stats and the number of invitations left for users on invitation section pages.
Added the number of invitations sent and how many left in the visitor menu when "Make board invitation only" is enabled.
This release fixes an issue with DB Credits add-on when the referral registers without having to confirm email address.