I'm not sure about a gameshark, but for action replay at the ar ( action replay) screen, go to the little star then select add new code and there you go.?????????
on a homebrew channel-no Go up to the gate between your city and the wi-fi world. In there, talk to the skinny dog on the right and tell him you would like to register a friend code in your friend...