That's a huge help, thanks!
JoshyPHP I don't know how @replies#123
is supposed to work, can you break it down for me please? I assume that 123 is the ID of the post, but what's the replies part?
The "replies" part is the username. So for example, that reply in the quote just above is @JoshyPHP#18
. Going by the logic in my previous post, the username part is actually useless in parsing/rendering, because the post number would be used to get the post/user/username from the database. But I guess it's good to have there for reference when you're writing a post. Anyway, I think I can adapt the @mentions
example you gave me to work for this too π
Regarding that example, is there a way to have it so that only the user ID is stored in the XML, and then when rendering we sub in the username? This is so that if a user ever changes their username, mentions of their name would stay up-to-date. Or perhaps if we ever had something like a "full name" extension, it would sub in the user's full name instead of their username βΒ but only for logged in users (so guests wouldn't see full names). Could something like that be done?