I had to add an else to the final check because the registered template wouldnt show up when it was placed under the registered users check
PHP Code:
elseif ( $chk['usegroupid'] == 2 ) :
elseif ( $chk['usergroupid'] == 9 ) :
$DB_site->query ( "UPDATE user SET usergroupid=2 WHERE userid=$chk[userid]" ) ;
eval("standarderror(\"".gettemplate("error_youcanpostnow")."\");");//redirect here
else :
eval("standarderror(\"".gettemplate("error_sorrynoposting")."\");"); //already registered error
other than that it works perfectly.
Thanks again.
Now to add the post check, which will be harder since it cant be checked by the usergroupid