[ticket/12993] Improve get_user_ranks

https://tracker.phpbb.com/browse/PHPBB3-12993

PHPBB3-12993
3.1.0-RC4?
and add the removal version?