Here is my code for defining the topic.
client
Topic(href,href_list[],hsrc)
switch(href_list["action"])
if("showprofile")
usr.ShowNewProfile(M)
and here is the code to display it in the chat
world << {"<b>\icon[new/obj/active]([time2text(world.realtime,"hh:mm")]) <font color =#F6F613><a href='?src=\ref[m];action=showprofile;var=[m]'>@[m.nickname]</a></font> >> [t]</b>"}
The more specific part of the code is
<a href='?src=\ref[m];action=showprofile;var=[m]'>@[m.nickname]</a>
What actually happens when I click it though, is my own profile appears and not the person I am clicking. I am losing my mind trying to figure this out so any help would be greatly appreciated.
For simplicity, instead of overriding client's Topic(), you could override the mob's, showing src's profile to usr.
Just in case, can you confirm that ShowNewProfile is actually capable of showing profiles of mobs other than src?