Make WordPress Core

Opened 21 years ago

Closed 21 years ago

#213 closed enhancement (invalid)

Smilies should be a plug-in

Reported by: orangenormal's profile orangenormal Owned by: matt's profile matt
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: General Keywords:
Focuses: 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 (3)

#2 @rq
21 years ago

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. ;/

#3 @matt
21 years ago

  • Owner changed from anonymous to matt
  • Resolution changed from 10 to 70
  • Status changed from new to closed

They are able to be overidden

Note: See TracTickets for help on using tickets.