Man fronts court over alleged attempt to take or detain child in Port Macquarie