User talk:Jossmart

RequestContext
Jossmart, you really don't want to use. It's a pointless and counterproductive thing to do. In that callback you defined you had an OutputPage in the $out parameter. An OutputPage is a context source so you can make your get{User,Request} calls directly on $out. Daniel Friesen (Dantman) (talk) 11:25, 30 July 2012 (UTC)
 * Thanks for your advice, I appreciate it. I'll make some changes. --Jossmart (talk) 11:40, 30 July 2012 (UTC)

Oh Jossmart. msg is actually part of a context source as well. So you don't need to drop right to wfMessage.

Though I do have two other notes. You shouldn't string concatenate message like that directly. You should explicitly use the right method for what kind of output you want. Primarily ->text for plaintext and ->parse for parsed WikiText (See Manual:Messages API). Also please avoid concatenating raw html, it's really risky and you can easily introduce an XSS vector into your wiki. We have a really nice Html class that lets you do things like. Daniel Friesen (Dantman) (talk) 12:42, 30 July 2012 (UTC)
 * Thanks, I'm working on it. Mediawiki offers lots of manuals and information, but it's sometimes hard to understand. Some place with simple self-explanatory programming examples (how to do things the right way) would be great. --Jossmart (talk) 14:11, 30 July 2012 (UTC)
 * Heh... ;) that's . Daniel Friesen (Dantman) (talk) 14:16, 30 July 2012 (UTC)