Photospheric and chromospheric activity on the young solar-type star HD 171488