I found solution. Just added:
$user = str_replace(“.”, “-“, $user);
Hey,
I hope someone could help me. I used this code from @michent and it works prefectly, except one thing:
When username is just like: tijana, then it works prefectly.
But when username has dot, like tijana.medan, then it does’t work, becuase the link than is:
http://Www.site.com/forums/users/tijana.medan
and the right link is:
http://Www.site.com/forums/users/tijana-medan
Could someone help me, what should I add or change in code so I can reslove this? It means a lot, because all my users have username with dots aka name.lastname
Thank you!!