Well, first, if you waited all this time to have an answer and you didn't have any - it is clairly that no one has an answer for you (or either the solution is much too complex to be posted on the forum).
However, to answer your last question above, the file you should edit is : member.php. Then, you need to find the right "$action" string according to the routine you wish to modify in order to accomplish this.
