Case-insensitive "Logged in links" variable parsing

Changed `str_replace` to `preg_replace` to allow for case-insensitive replacement of `%username%` and `%userid%` variables.

I also added `%profile%` and `%dashboard%` variables with links, for if a user only wants to display only one or the other, or those links in addition to more text.