• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Replacing All Instances of a User Name

James

Well-known member
#1
I originally thought replacing all instances of a user name would be as simple as just overriding the userNameHtml function - however that doesn't suffice.

When overriding the userNameHtml function, it doesn't replace all instances of a user name. How would I go about replacing all instances?

By all instances I don't mean text in quotes etc, just things such as thread username, member card, etc.
 

James

Well-known member
#4
Just to add, I've overwritten the {xen:helper username} which replaces areas such as the user block and the thread listing (when the thread is soft deleted). I'll need template edits to override the {$user.username} or {$username} - I just need to work out how to override the XenForo_Template_Compiler_Tag_Username::compile() function.