Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: Any advise welcome - PLEASE HELP !!!!

Quote Reply
Re: Any advise welcome - PLEASE HELP !!!! In reply to
Are you speaking of a link owner modifying a record and you wanting the original data to be kept for the new fields?

Or are you referring to a record being modified on the admin screen?

If the latter, and the fields were added correctly in links.def, there should be no problem.

If the former, you need to go to sub process_form in modify.cgi find this code:

Code:
# Print out the modified record to a "modified database" where it is stored until
# the admin decides to add it into the real database.

Beneath that code, you need to add statements similar to:

Code:
# Keep original data
$in{$db_cols[$db_newfield1]} = $original{'Newfield1'};
$in{$db_cols[$db_newfield2]} = $original{'Newfield2'};

You would need to change the $db_newfield1 and $db_newfield2 as well as 'Newfield1' and 'Newfield2' to what is defined in links.def.

I hope this helps.
Subject Author Views Date
Thread Any advise welcome - PLEASE HELP !!!! Martin Pitt 4620 May 17, 1999, 10:34 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4587 May 17, 1999, 3:43 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4584 May 18, 1999, 11:24 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4593 May 18, 1999, 12:34 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
TheByrdMan 4584 May 18, 1999, 3:44 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4582 May 18, 1999, 7:01 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4595 May 19, 1999, 10:59 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4586 May 19, 1999, 12:31 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4585 May 19, 1999, 10:22 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4585 May 20, 1999, 6:17 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4586 May 20, 1999, 8:47 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
gotze 4584 May 20, 1999, 8:53 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4591 May 20, 1999, 1:15 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4584 May 21, 1999, 5:13 AM
Post Re: Any advise welcome - PLEASE HELP !!!!
Bobsie 4582 May 21, 1999, 1:46 PM
Post Re: Any advise welcome - PLEASE HELP !!!!
Martin Pitt 4587 May 21, 1999, 11:43 PM