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

Updating denormalised usernames in an addon

Teapot

Well-known member
#1
My apologies if this has been asked before - the search engine didn't reveal anything helpful.

Mimicking the way XenForo does it, my add-on's content tables have a "username" field alongside the "user_id" field so it doesn't have to query the database for every entry. However, I'm wondering how I would hook into XenForo's "change username" routine in order to make it update the denormalised usernames in my add-on as well as in XenForo itself.

How might I go about doing that?

As always, thanks for your time :)