SimpleSmileyReplace
Replaces standard smilies with ones from a theme folder
SimpleSmileyReplace is a plugin that checks for the existence of a images/smilies/ folder in a theme. If that folder exists, WordPress uses the smiley files in that folder instead. The plugin assumes that the smilies have the usual filenames (icon_rolleyes.gif, etc).
It has no extra requirements and has been tested with modified versions of the twentyten, twentyeleven, and twentytwelve themes.
Feedback, positive or negative, is highly appreciated as this plugin is in an early stage. Emails or comments are welcome.
http://brokenlibrarian.org/tinyplugins/
brokenlibrarian@gmail.com
12/16/2012
| Author | Christian Wagner Profile |
| Contributors | brokenlibrarian |
| Tags | comments, smilies |
None.
- Create a folder named /wp-content/themes/[ThemeName]/images/smilies/ and put a complete set of custom smilies in it, with the standard WordPress filenames.
- Upload the SimpleSmileyReplace folder to your /wp-content/plugins/ folder and activate it.
- No further configuration is required. The smiley codes and filenames are unaltered, only the location of the files is changed.
0.5
- update for WordPress 3.5 compatibility testing
0.4
- readme and source code cleanup, no other changes
0.3
- initial release
What are the standard WordPress filenames?
An up-to-date list of smilies and filenames can be found in /wp-includes/functions.php by searching for the $wpsmiliestrans variable. As of WordPress version 3.5, this is the list (cut-and-pasted):
':mrgreen:' => 'icon_mrgreen.gif',
':neutral:' => 'icon_neutral.gif',
':twisted:' => 'icon_twisted.gif',
':arrow:' => 'icon_arrow.gif',
':shock:' => 'icon_eek.gif',
':smile:' => 'icon_smile.gif',
':???:' => 'icon_confused.gif',
':cool:' => 'icon_cool.gif',
':evil:' => 'icon_evil.gif',
':grin:' => 'icon_biggrin.gif',
':idea:' => 'icon_idea.gif',
':oops:' => 'icon_redface.gif',
':razz:' => 'icon_razz.gif',
':roll:' => 'icon_rolleyes.gif',
':wink:' => 'icon_wink.gif',
':cry:' => 'icon_cry.gif',
':eek:' => 'icon_surprised.gif',
':lol:' => 'icon_lol.gif',
':mad:' => 'icon_mad.gif',
':sad:' => 'icon_sad.gif',
'8-)' => 'icon_cool.gif',
'8-O' => 'icon_eek.gif',
':-(' => 'icon_sad.gif',
':-)' => 'icon_smile.gif',
':-?' => 'icon_confused.gif',
':-D' => 'icon_biggrin.gif',
':-P' => 'icon_razz.gif',
':-o' => 'icon_surprised.gif',
':-x' => 'icon_mad.gif',
':-|' => 'icon_neutral.gif',
';-)' => 'icon_wink.gif',
'8O' => 'icon_eek.gif',
':(' => 'icon_sad.gif',
':)' => 'icon_smile.gif',
':?' => 'icon_confused.gif',
':D' => 'icon_biggrin.gif',
':P' => 'icon_razz.gif',
':o' => 'icon_surprised.gif',
':x' => 'icon_mad.gif',
':|' => 'icon_neutral.gif',
';)' => 'icon_wink.gif',
':!:' => 'icon_exclaim.gif',
':?:' => 'icon_question.gif',
License
Copyright 2012 Christian Wagner
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

