← Back to Archives

How to turn off Smilies in b2evolution...

system

Have I mentioned lately that I love my blog tool, b2evo? It's bad ass.

However, it is shipped by default to render smilies within the text of the post... and, in some cases, you'll want to be turning off smilies. For example, to say "C&D" b2evo automatically replaces the "&" with &``amp; to produce, C&``amp;D. The ";D" in there is an animated smily, stupid ;D smily, and it will make your post look stupid.

Here's how you turn off smilies in b2evolution:

  1. Open up the admin view (where you edit posts, etc.)
  2. Go to "settings"
  3. Click on "plug-ins"
  4. 4. Note under "renderers" that "smilies" is "always". This means that you can never turn smilies off in the edit view of the post.
  5. Now to turn it off. Go to the plugins/renderers/ directory of your b2evo install.
  6. Open the file _smilies.renderer.php in a text editor.
  7. Find the line that says: var $apply_when = 'always';
  8. Change this line to one of the following:
    var $apply_when = 'opt-in';
    or
    var $apply_when = 'opt-out';.
    (Changing it to "opt-in" will mean that you have to check the smilies check box in the edit post view to get smilies; "opt-out" will mean that you have to uncheck it to turn them off.)
  9. Save the file.
  10. Reload the page mentioned above in 4. Smilies should now be set to what you specified in the php file.