Gossamer Forum
Home : Products : DBMan : Customization :

Admin, Default, Guest: how do I change field that shows which?

Quote Reply
Admin, Default, Guest: how do I change field that shows which?
I have pipe delineated output where one of the fields that should show a number shows what kind of user submitted the record:
|admin|

How can I change which field shows this or elminate it altogether? I am going to be importing these files into another database so it would be very helpful to not have that field in the way, or at least figure out a way to put it at the end.
Quote Reply
Re: Admin, Default, Guest: how do I change field that shows which? In reply to
To eliminate this, there is a scalar in default.cfg called $auth_user_field. Set this to -1. It should look like this:

$auth_user_field = -1;

------------------
WFMY-TV Webmaster
Quote Reply
Re: Admin, Default, Guest: how do I change field that shows which? In reply to
That worked as far as now the output to app.db does not include the |admin| or |default| but putting -1 in that field has had an unintended side-effect:

Now when I successfully submit the success form comes back blank. The data goes into app.db but you wouldn't know it because the success page comes back without anything in the fields. Is there a way to solve this problem? Thanks.

Neil
Quote Reply
Re: Admin, Default, Guest: how do I change field that shows which? In reply to
 
I solved this. It turns out that for this to work I had to set:

$auth_modify_own = 0;