Wait a minute, I think I'm progressing...
I should have selected the "code" type, right?
So I can add a small JS or PHP function to generate a random string. Now I need to figure out how to store it into the user name field...
I've chosen the PHP(eval) method (I'm more at ease with PHP than JS) and added this in it:
Code:
function generateRandomString($length = 10) {
return substr(str_shuffle(implode(array_merge(range(0,9), range('A', 'Z'), range('a', 'z')))), 0, $length);
}
$username=generateRandomString(25);
So I should now have a variable containing my random string... What would the next step be?
Edit: I'll also need to make sure that particular string doesn't match an existing user name of course... I'm probably going to have to call some CB internal functions (verify user name, store user name).