Ticket #213 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 years ago

Smilies should be a plug-in

Reported by: orangenormal Assigned to: matt
Priority: normal Milestone:
Component: General Version: 1.2
Severity: normal Keywords:
Cc:

Description

I like to modify the WP code to add my own smilies, however every time I upgrade, my changes are overridden.

Personally, I think the smiley functionality should be a plugin, and not a built-in feature, making it more adaptable to change.

Change History

08/06/04 05:08:56 changed by orangenormal

08/11/04 01:10:06 changed by rq

Actually, vars.php only provides _default_ smilies. I wanted custom smilies too, so i've set them in my wp-config.php file, which is not updated on upgrades. And it just works, and it's documented in the sources. Here's a strip from my wp-config.php:

=== // to enable German language support. define ('WPLANG', );

/* Custom smilies */ $wpsmiliestrans = array(

' :)' => 'emoticon-face1.png', ' =)' => 'emoticon-face2.png', ' ;)' => 'emoticon-face3.png', ' :(' => 'emoticon-face4.png', ' :O' => 'emoticon-face5.png', ' :D' => 'emoticon-face6.png', ' :-)' => 'emoticon-face7.png', ' :|' => 'emoticon-face8.png', ' :/' => 'emoticon-face9.png', ' :P' => 'emoticon-face10.png', ' :\'(' => 'emoticon-face11.png', ' 8)' => 'emoticon-face12.png',

':mrgreen:' => 'emoticon-face6.png', ':shock:' => 'emoticon-face5.png'

);

/* Stop editing */ ===

It's a pity tho, that setting $wpsmiliestrans in my-hacks.php (instead of wp-config.php) does NOT work. ;/

01/24/05 10:42:19 changed by matt

  • owner changed from anonymous to matt.
  • status changed from new to closed.
  • resolution changed from 10 to 70.

They are able to be overidden