Here you go!
https://community.nodebb.org/topic/9447/howto-inject-hidden-data-into-composer/8
This should get you started. You'll need to edit the composer.tpl, or inject html at composer load, checking if the post is a new topic.
Hello, I would like to remove email field to replace it with something other, like a token so I can make only the ones who get one register. The point is, how can I make the email validation to be always valid? I tried to modify register.js then rebuiling and restarting but it didn't work, is there something else I must modify?
@julian I wanted to make token accessible by the use of a webapp, I was also interested in making it use other platform account names, such as Minecraft account name for the forum I was making for my minecraft server, and I want it to be somewhat more rapid than an invitation system, thus making people register using their account as an email.
@julian Basically I replaced the whole validateEmail() function to be only
function validateEmail(email, callback) {
callback = callback || function () {};
var email_notify = $('#email-notify');
socket.emit('user.emailExists', {
email: email,
}, function (err, exists) {
showSuccess(email_notify, successIcon);
callback();
}); }
and I am getting "invalid email" error after accepting forum terms, of course I am not inserting an email but in this case a minecraft username