eriche
Member
Hello,
I have to implement a custom Field, which is easy to do with the great Admin Control Panel, but the difficult Thing is, that this custom field has to be unique.
Like the username in the Forum.
Out of the box there doesn`t seem to be a flag to set the field to "unique", so I thought to sove this via the "PHP Callback" function.
But I use Xenforo since yesterday and don`t have the experience.
In words I know what to do
I would be very happy if you could help me
Greets Erich
I have to implement a custom Field, which is easy to do with the great Admin Control Panel, but the difficult Thing is, that this custom field has to be unique.
Like the username in the Forum.
Out of the box there doesn`t seem to be a flag to set the field to "unique", so I thought to sove this via the "PHP Callback" function.
But I use Xenforo since yesterday and don`t have the experience.
In words I know what to do
- Take the Content of the field, and execute a SELECT Query.
- When nothing Comes back --> field is unique.
- Otherwise, bring a message that the field is not unique.
I would be very happy if you could help me
Greets Erich