With a multimeter, test all 3 PCB contacts to determine which are positive, negative and ground. Similarly, ascertain each terminal of your "new" charger port and its corresponding PCB contact. Your "new" port can be a brand-new, identical replacement or a salvaged one of approximate size, post thickness and terminal orientation.
