01-27-2008, 08:01 PM
This simple modification will allow you to have different smilies for different themes.
Note that, this, being an addition means that old smilies which are common across all themes will work fine.
Okay, firstly, open up /inc/class_parser.php,
Find:
Note that, this, being an addition means that old smilies which are common across all themes will work fine.
Okay, firstly, open up /inc/class_parser.php,
Find:
PHP Code:
|
Replace with:
PHP Code:
|
Also, open up misc.php,
Find: (2 occurances)
PHP Code:
|
Add below: (2 occurances)
PHP Code:
|
Finally, open up inc/functions.php,
Find:
PHP Code:
|
Replace with:
PHP Code:
|
Now, upload smilies that you want to be different for each theme into your /images/<themedir>/smilies/ folder, for each theme.
Finally, go to your AdminCP -> Message Filters -> Smilie Manager and edit the Image Path of the smilies that you want to be different across all themes.
Just replace images with {theme} and update. For example, the default is:
Code:
|
If you want it to be different across themes, just change it to:
Code:
|
(and don't forget to upload all the smilies to the appropriate location)
Edit: Updated