I was going to rewrite this from scratch so I could add some usergroup permissions to it but can't find a way to make it work without doing pretty much the same thing. The original code is sound though, just need to make one change to get it to work on vB4
I wanted it to display in the additional options box though so instead of editing the newpost_usernamecode template I edited
newpost_disablesmiliesoption
After
Code:
<li><label for="cb_disablesmilies"><input type="checkbox" name="disablesmilies" value="1" id="cb_disablesmilies" {vb:raw checked.disablesmilies} tabindex="1" /> {vb:rawphrase disable_smilies_in_text}</label></li>
I added
Code:
<vb:if condition="$show['anonymous']"><div><input type="checkbox" id="cb_anonymous" class="bginput" name="anonymous" value="1" /> {vb:rawphrase zointsanony_anonymous_post}</div></vb:if>
That's it, should see a checkbox to post anonymously in the additional options of the editor under the option to disable smilies. The rest of the code worked fine for me on 4.0.8 and 4.1.1
Dylan