(03-07-2016, 07:05 PM)Swashbuckler Wrote:(03-07-2016, 02:27 PM)Unnamed Mercenary Wrote:For a moment there, I thought my RPC account got hacked or something because I'm pretty sure I'm not "Unnamed Mercenary" and yet the alert greeted me as if I were him.(03-07-2016, 02:16 PM)Riven Wrote: Um...I got a notification about this in my PM inbox. Â I'm confused, you want my lunatic self to apply for moderator?Â
You probably got an alert (top right corner of the site?). ...but I made a typo with some of the code and the field defaulted to sending everyone my username instead of theirs. It should have had something about the RPC Feedback Survey and the Moderation Application (should you be interested!)
Am I a moderator now?
Naw, unfortunately not (or possibly not yet if you applied and make it).
To go into gritty details, the custom alert I coded up had this special {username} field which I thought was supposed to plug in each person's username like normal alerts. Instead, it decided mine would be duplicated across the board. (A big "oops" on my part was testing the alert only on myself. I'll be sure to drag a couple other people in for testing in the future).
Had I been a bit wiser at the time, I would have either worded it as just "Hello, [text]" or "Hello from {username}, [text]", which woulda made a better alert.
The developer in me wants to mod the plugin to check for sanitized input though, as the "alert all users on the forum regardless of group/status" kinda exploded in my face. All other alerts are working as usual, however. (In the future, we might just try to send alerts to say, registered users. That should get to everyone).