Sorting Smilies
-
Hi everyone,
I’m still on WP 1.5 if you can believe that, but I have a test blog running 2.8. I’m trying to get everything the way I like it before I upgrade my “live” blog.
On my 1.5 blog, I have Alex King’s “WP Grins” plugin and have added a ton of my own custom smilies.
I put the same plugin on 2.8 and it works just fine. I even brought my own custom smilies in. On 1.5 I had to add the new gif files to wp-includes/vars.php, but I figured out that on 2.8 I had o put the code in wp-includes/functions.php.
But the icons sort wrong. They appear to be showing up in reverse-alphabetical order. I want them to show up in the order I have them in functions.php.
In 1.5, I did the following to accomplish this.
I vi’ed vars.php and commented out the following:
// sorts the smilies’ array
//if (!function_exists(‘smiliescmp’)) {
//function smiliescmp ($a, $b) {
// if (strlen($a) == strlen($b)) {
// return strcmp($a, $b);
// }
// return (strlen($a) > strlen($b)) ? -1 : 1;
// }
//}
//uksort($wpsmiliestrans, ‘smiliescmp’);I did some grepping and can’t seem to find the same code to comment out in 2.8.
Anybody know how to control the order of the smilies under 2.8???
Thank you so very much! ??
Mark
- The topic ‘Sorting Smilies’ is closed to new replies.