Anything you like wrote: I would think editing the existing BBcode for quote - as it already has usename recognition in it.
Rocketeer wrote:Anything you like wrote: I would think editing the existing BBcode for quote - as it already has usename recognition in it.
Sadly, there's no actual username lookup for quotes - you can put absolutely anything between the "" marks.
This is a really clever idea for a mod though... the place to start would be any of the (well written) new BBCode mods - I remember installing about a dozen of them, and there were some very well written ones that made adding another couple a piece of cake.
Then it's just converting a username to userid. The code for this definitely exists - have a look at the code for sending private messages.
Finally, as you say, there's a simple if statement that checks the userid and displays the text as necessary. I guess you'll also need a language pack string for " whispers to you: "
Hmm... now all I need is a reason to include this on a non-roleplay board... let me think...
Code: Select all
[privmsg='Steel Rat', 'Sithlord', 'Wyzzer']Only three of us can see this part of the message.[/privmsg]