@S Thomas sorry to bother you again, do you have any idea how to check if there was any error it seems that if you enter a valid code however if you get another error example invalid email or user name too short then it will still run the callback check i'm not too sure how I would check for an...
/* Check if callback is being called from admin controller */
if ($app->container()->__get('app.defaultType') === 'admin' || $app->container()->__get('app.classType') === 'Admin')
{
return true;
}
This worked thank you for all your help you're great
@S Thomas hey again, is there a way to prevent the callback from interfering with editing the user for example when I go to edit a user, also is there a way to create the custom user field on install I've found examples of doing it with Xenforo 1 but not 2
I've tried using the namespace like the way you would setup your controllers, do I have to use file path?
EDIT: I somehow got it to work no clue what happened but it is now working, im actually confused why it is now working, thanks for the help!
@S Thomas Hey, I'm currently having a problem when I'm trying to setup the callback it keeps giving me an error
Callback Voltz\Invitation\InvitationCallback::validate is invalid (error_invalid_class).
I've tried several different things and even though it is installed it keeps saying that it...
Hello everyone,
I'm currently working on an invitation system addon for Xenforo 2 and was wondering how I would be able to modify the registration. Basically so in order to register on the forums you need to input a invitation code generated by an admin / user