Nice idea, and very simple to execute.
In sessions.php, under your admin folder, find
PHP Code:
$bbuserinfo['username']=iif ($loginusername=="","Unregistered",htmlspecialchars($loginusername));
Now. You have basically two options. One is to remove the Unregistered at all, so people will HAVE to enter a new username. If you want this, replace the above line with
PHP Code:
$bbuserinfo['username']=iif ($loginusername=="","",htmlspecialchars($loginusername));
and that's it.
If you still want to do the random number thing, you will need to replace
PHP Code:
if ($session['userid']==0) {
$bbuserinfo = $session;
$bbuserinfo['userid'] = 0;
$bbuserinfo['username']=iif ($loginusername=="","Unregistered",htmlspecialchars($loginusername));
with
PHP Code:
if ($session['userid']==0) {
$unreg = Unregistered;
$unreg .= rand (1000,9999);
$bbuserinfo = $session;
$bbuserinfo['userid'] = 0;
$bbuserinfo['username']=iif ($loginusername=="","$unreg",htmlspecialchars($loginusername));