Gossamer Forum
Home : Products : DBMan : Customization :

Question??

Quote Reply
Question??
Is there a way i can have dbman add a field DB: which would say what login added a specific entry so when its viewed you can tell?



Thanks in Advance,

Josh
Quote Reply
Re: [joshdh] Question?? In reply to
Do you mean a field which would record and display the username within the record?

If you setup your database to have permissions set to where only registered users can add records you can set a field for the userid and have it automatically entered into the field when a user adds a records. This does take a few small changes to the script.

In the FAQ noted below under the section "Admin" you will find a thread reference called "How can I get the userid to be displayed in the add form?" which will provide what you need.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/
Quote Reply
Re: [LoisC] Question?? In reply to
LoisC,

I went to the page and registered. I then went to the tread titled "How can I get the userid to be displayed in the add form?". I followed the instructions that it said and there were no changes to my dbman what-so-ever.



Thanks for your help :)



Joshua
Quote Reply
Re: [joshdh] Question?? In reply to
Do you have a userid field defined in your .cfg file?

It would help to see your .cfg file to see how your fields and permissions are setup. Could you save a .txt copy and post the url to where it can be viewed.

Be sure you also have set in your .cfg file:

$auth_user_field = 0;

changing the 0 to match the field number of your userid field. I have this working in several databases with no problems.

Remember this will only work if the user is required to login to add records.

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/

Last edited by:

LoisC: Dec 1, 2002, 10:24 PM
Quote Reply
Re: [LoisC] Question?? In reply to
Dear Lois C,

I didn't edit the html.pl file to have the userid in, so thats why it wasn't working. I added the box and everything is fine now. Thanks so much for your help!! I'm glad GossamerForum's has someone like you to help!! Thanks again and may God bless and prosper you!



Josh
Quote Reply
Re: [joshdh] Question?? In reply to
There are several who help others out, this is a great support forum.

Thanks for the blessing and may God Bless you also :)

Unoffical DBMan FAQ
http://redundantcartridge.com/dbman/