Ok, now I've got one last issue regarding this.
I can get the results to show the chosen name format, but I've got a text input to search members by username/full name, whatever the chosen format is and the issue is how to determine what columns to search.
What I need is someway to do an if else or something along those lines to determine what name format is chosen and then set the code to search the username field in jos_user if it's username only, the name fields in cb if it's username only, or both if that's selected.
Using $cbUserResult->getField( 'formatname' ); is fine for pulling out the formatted name, but I need to determine what columns to search according to what format is used.
Hopefully that made sense.
The link to the component demo I'm working on is
extensions.erecoverydev.com/index.php?option=com_cbajaxsearch&Itemid=3
if you want to get a better idea of what I'm talking about.