Đăng ký nhận RSS Feed

<?php echo 'Welcome to my blog!' ?>

one true brace

viết về những thứ tớ quan tâm, thế là đủ

Custom Smilies 1.2

Custom Smilies has been taken over by Crazy Loong and a WP 2.5-compatible version could be found at his blog: http://goto8848.net/2008/05/custom-smilies-20/

What it does

Custom Smilies (previously named Custom Smileys) is a plugin for WordPress 2.0+. This plugin gives you a chance to personalize your posts and comments using smilies of your choice instead of default ones.Custom Smilies was selected as one of 30+ plugins for WordPress comments and 300+ tools for running your WordPress blog. These lists were conducted by Mashable, as of July 24th, 2007 and August 16th, 2007.This plugin was first released in 2005 and it is now updated to be compatible with WordPress 2.3.3. It might not work with WordPress 2.5, though.

The lastest version is 1.2 [released on 19.01.2008]. It is also the very last version released under my name, as I have decided to halt the development of this plugin.If you want to take over this project, feel free to leave a comment here, or send me an email to quanganhdo@onetruebrace.com.

Credits

Custom Smilies is written by me, QAD. Great thanks to Mastermnd, Evolver, and countless number of commenters for their great contribution.

How it works

After installing Custom Smilies, you can start adding your own smilies by putting all image files in WordPress’s smilies folder (wp-includes/images/smilies/), then navigate to Manage > Smilies in your Admin Panel and customize which emoticon is associated with which smilie. Believe me, it’s as easy as 1, 2, 3.

Manage Smilies

The smilies can then be added to any posts and comment by typing emoticons such as :D, :), :|, you name it. Or, by clicking any of them in the docking box within your Write page:

Docking box

You can also add these clickable smilies to your comment form, so that your visitors could know exactly which smilies can be used in the comment. This list could be customized to suit your need:

Comment form

Where to get this plugin

You can grab the lastest version of Custom Smilies here. See above ↑

How to install

  1. Download and extract custom-smilies.zip; then, upload init.php and custom-smilies.php to the /wp-content/plugins/custom-smilies directory. Upload smilies folder to the /wp-includes/images directory..
  2. Activate Custom Smilies in your Admin Panel
  3. Put your smilies in smilies folder (wp-includes/images/smilies/)
  4. Change the emoticons by navigating to Manage > Smilies and complete the form
  5. If you want to add clickable smilies to your comment form, append these lines to your current theme’s comments.php file, just before the form begins:
<?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?>

For ‘Paged Comments’ plugin’s users: Please place that code in wp-content/plugins/paged-comments/themes/your-theme-name/comments-paged.php to enable those clickable smilies.Please note that you can customize this list by going to Options > Smilies.Wanna play with the smilies yourself? A function called cs_all_smilies() has been added, which return all the smilies you’ve got in this format: Array (’Smilie’ => ‘Path to smilie’)

How to upgrade

For Custom Smilies 1.0 and 1.1 users, simply replace the file custom-smilies.php in your plugins folder with the newer one. Do NOT overwrite init.php, as it contains your smilies’ definitions.

For those who are still using Custom Smileys version 2.4 (which was released more than 1 year ago!), you can upgrade it to the lastest version by following this procedure:

  1. Backup your database! (better safe than sorry - i’m not responsible for any data loss caused by this plugin)
  2. Move all of your smilies to your smilies folder (wp-includes/images/smilies/)
  3. Deactivate Custom Smileys 2.4 without uninstalling it
  4. Download, extract, then upload Custom Smilies 1.0 to your blog
  5. Activate Custom Smilies 1.0 in your Admin Panel
  6. Delete custom-smileys.php if you wish

Changelog

Version 1.0

Version 1.1

Version 1.2

Troubleshooting

In case Custom Smilies doesn’t work well with your blog, follow these steps:

  1. Make sure that none of your smilie files has an underscore (_) in its name.
  2. Make sure the wp-plugins/custom-smilies/init.php file is writable. CHMOD it to 777 or something like that.

If none of them fixes your problem, let me know by leaving a comment here. Support is no longer provided. Use this plugin at your own risk! (though I don’t think it will ever have a chance to screw up your blog)

Bài viết được gửi hôm 28.11.07 · Mang các từ khóa , , ,

WP-AVIM
Tumblelog &rarr

Bài viết liên quan:


175 phản hồi

  1. de_so gửi hôm 29.11.07 lúc 1:31 pm #

    Identical ơi, nó không hiện hết các emotion tớ chọn ở cái phần bên phải khi viết bài mới

  2. de_so gửi hôm 29.11.07 lúc 1:38 pm #

    Mấy cái emotion như là :”> (Mặt ngượng) ý vẫn ko đc, cái nào có dấu ” đều k đc hết

  3. QAD gửi hôm 29.11.07 lúc 1:48 pm #

    @de_so: nó chỉ hiện những emo đã có shortcut đi kèm thôi (kiểu như : D ấy)

    Mấy cái có dấu ” ‘ hoặc \ đều bị strip.

  4. de_so gửi hôm 30.11.07 lúc 2:37 pm #

    Sao tớ thấy trogn hình minh họa của cậu vẫn hiện ra đầy đủ mà

  5. QAD gửi hôm 30.11.07 lúc 3:51 pm #

    Hiện lên là vì tớ set cho nó ký hiệu khác, ko phải :-” :P

  6. Saudi Wanderer gửi hôm 05.12.07 lúc 10:05 pm #

    Hi

    thanks for the great plugin

    can I have your email please ?

  7. token gửi hôm 11.12.07 lúc 12:31 am #

    :)

  8. kleuphorizm kodormashnew gửi hôm 12.12.07 lúc 12:09 am #

    Cool! Cool! Cooooooool!!! Thanks! Works good, WP 2.31, but it needs to be work with my theme.

  9. Gemma gửi hôm 13.12.07 lúc 8:23 pm #

    When I typed in a search for smilies and emoticons, I was dreading getting to many results and having to test all the plugins to see which one actually did what it was meant to!

    But thankfully I came across yours first and I didn’t need to look any further as it was exactly what I was looking for.

    Thank you for making this plugin, it simply makes customizing smilies so much easier.

    Gemma :-) [Emoticon Junkie]

  10. QAD gửi hôm 13.12.07 lúc 8:36 pm #

    Thanks for your nice words, Gemma :)

    You are welcome.

  11. Steve gửi hôm 15.12.07 lúc 4:36 am #

    When I go to manage the smilies and change the text for them and hit Update, it doesn’t update and the changes don’t stick. Can this be fixed?

  12. QAD gửi hôm 15.12.07 lúc 5:16 am #

    @Steve: Make sure your wp-content/plugins/custom-smilies/init.php file is writable.

  13. Steve gửi hôm 15.12.07 lúc 5:31 am #

    It is writable. Nothing changes. I also uploaded many other Yahoo Messenger smilies and gave them my own names, and yet the only thing that comes up by the comment box area is empty image boxes, like it will only accept smilies labeled 1.gif thru 5.gif. Nothing else works. How do I fix this?

  14. Steve gửi hôm 15.12.07 lúc 6:07 am #

    Okay, it only works after you CHMOD the init.php file to 777. You should have this in your installation instructions. The only other thing is is there a way to put the smilies in a specific order above the comment form?

  15. QAD gửi hôm 15.12.07 lúc 6:11 am #

    Glad to know that it works. I’d add this to the installation instructions.

    The ability to put the smilies in a specific order would be added to the next version. Thanks for your suggestion.

  16. Steve gửi hôm 15.12.07 lúc 6:15 am #

    Any idea when that version might be available?

  17. Steve gửi hôm 15.12.07 lúc 6:16 pm #

    Okay, for some reason this is not working again. Everything seems to be fine except when you click on a smilie and submit a comment, the text version of it comes up, not the graphic. What do I do to fix this?

  18. Hennes gửi hôm 16.12.07 lúc 1:09 am #

    Hi,

    when i managed the smilies, i get two error messages.

    Fatal error: Call to undefined function sanitize_file_name() in …\wp-content\plugins\custom-smilies\custom-smilies.php on line 204

    and

    Parse error: syntax error, unexpected $end, expecting ‘)’ in …\wp-content\plugins\custom-smilies\init.php on line 3

    What can i do?

    I use the WP Version 2.07

  19. Krish gửi hôm 16.12.07 lúc 8:34 pm #

    wow thanks alot for the custom similies plugin.

    i am having a small problem inby blog.

    when i put two smilies beside each other its not coming. exp :):) the codeit self is appearing;

    but when i put space inbetween the smilie it works. so how can make it so that everytime i select a smilie it put a space in the front. or how to make it work withour putting space. thanks

  20. QAD gửi hôm 17.12.07 lúc 9:14 am #

    @Steve: Does it work when you add the smilies to your posts?

    @Hennes: I think you might have to upgrade your installation of WordPress to the lastest version. It doesn’t only include bug fixes and new features but also security fixes as well.

    @Krish: The smilies could work only if you put at least a space between them. If you want Custom Smilies to add a space automatically when you select them, you might need to edit the plugin file.

    Just change the line that says:

    var myField;

    to

    var myField;
    tag = ' ' + tag;

    Hope it helps.

  21. Micha gửi hôm 17.12.07 lúc 7:02 pm #

    Hi,

    i have the same problem.

    Only the text version of the smilies come it up.
    (comment and post area)

  22. QAD gửi hôm 17.12.07 lúc 7:19 pm #

    @Micha: If this problem occurs in both your posts and comments, check your Smilies option (under Options > Writing).

    Make sure the box is ticked.

  23. Micha gửi hôm 17.12.07 lúc 9:58 pm #

    Hi,

    i checked the options and the smilie option was ticked.

    The standard smilies from wordpress working fine.
    ( :) = a smilie picture )

    Just this plugin give me only the text version. :(

  24. QAD gửi hôm 17.12.07 lúc 10:10 pm #

    I think I figured that out. Your init.php file isn’t CHMODded correctly. Change its permission to 777 and it should work properly.

    Hope that helps.

  25. Micha gửi hôm 18.12.07 lúc 10:57 am #

    Hi,

    the init.php file have the permission 777.

    The Plugin is not working.

  26. Steve gửi hôm 19.12.07 lúc 1:23 am #

    Okay, I’ve messed around this and this is what happens. The only way the smilies show up is if a) you only put one smiley in a post and b) there is a space between the smiley and whatever text the smiley comes after in the post. This is ridiculous, as many people who comment like to use more than one smiley and some may not know to put a space before using one. I’m sure this can be worked out in the code somehow, so please tell me (and everyone else) how to fix this, or release a new version that works properly. Thank you.

  27. Francisco gửi hôm 19.12.07 lúc 4:59 am #

    hi
    i use this great plugin, and i also had that problem, so i modify the code

    find the line:

    function grin(tag) {

    then add this just below:

    tag = tag + ‘ ‘;

    this solves the half of the problem
    ;)

  28. QAD gửi hôm 19.12.07 lúc 9:16 am #

    @all: Thanks for your comments.

    @Micha: Well, I’m confused. Not sure what your problem is. :(

    @Steve: If you spend time reading my code, you might find out that it actually uses WordPress’s built-in convert_smilies function. That means, what my plugin does is changing the smilies array, nothing more, nothing less. If you face those 2 problems while using Custom Smilies, it’s likely that the same thing happens when you disable the plugin.

    @Francisco: Yes, I’d add this to the next version.

  29. Steve gửi hôm 19.12.07 lúc 5:05 pm #

    @Franciso: Where EXACTLY do you put this line? Meaning, what other code is around it to make sure I add this in the right place?

    @QAD: I have not spent time looking at your code, just messing around with the text and the smilies themselves to see what the results would be when a comment was submitted. It doesn’t make sense how this plugin is not working, since at the top of this page you can see how you are able to put smilies next to each other. Why is it not working with mine? My website is included in my name if you want to view my source code to see if there is anything I need to change. Otherwise, I have not messed with the plugin code, so that shouldn’t be the problem unless the plugin code you created is wrong. If there aren’t any problems you can see, is there something I would need to change in WP’s convert_smilies function that you mentioned for it to work?

    I just want to say too I’m sorry for creating such a fuss. I just like this plugin and it doesn’t seem as though there are any other good smiley plugins out there. Just wish I could get this to work. :)

  30. nisti2 gửi hôm 21.12.07 lúc 4:55 am #

    great plugin works very well thanks :D!

  31. Gemma gửi hôm 21.12.07 lúc 7:08 pm #

    Yes I have this very same problem when trying to edit smilies.

    I have one set where they are just called angry, blush, cheer, sad, ect and these save absolutely fine and appear in posts and in the right hand side when writing a post.

    I then have a set that are called panda_angry, panda_blush, panda_cheer, panda_sad, ect and these are the ones that I cannot edit, nor do they show up in posts or in the right hand side when writing a post.

    Any ideas what the problem might be?

  32. Leanne gửi hôm 22.12.07 lúc 1:48 pm #

    Could you update this in the Wordpress plugin database so that users are made aware of the plugin (as well as being able to use the one-click-plugin updater to update it)?

    That would be really great!!

  33. Duy gửi hôm 23.12.07 lúc 6:37 am #

    Bác có biết làm thế nào để hạn chế số Emoticons hiện lên ở khung Comment không ?

  34. QAD gửi hôm 23.12.07 lúc 9:02 pm #

    @Gemma & Steve: It’d be easier if any of you could provide me access to your blog’s back-end, so that I could track the problem down. If it’s possible, feel free to send me an email at quanganhdo (at) onetruebrace.com.

    @Leanne: I’d add this plugin to the plugin repository as soon as all problems are solved.

    @Duy: Phiên bản hiện tại tớ chưa làm tính năng hạn chế số emoticon, nên bạn phải tự edit plugin theo ý muốn.

  35. Fox gửi hôm 24.12.07 lúc 4:13 pm #

    Is it possible to edit this plugin, so only certain smilies get shown when adding a comment?

  36. QAD gửi hôm 24.12.07 lúc 4:19 pm #

    @Fox: it’s possible. Just open the plugin file and make changes to the cs_print_smilies() function.

  37. Aja gửi hôm 28.12.07 lúc 3:50 pm #

    Thanks hun, this plug-in saved my smiley horrors.

  38. Evolver gửi hôm 29.12.07 lúc 2:05 pm #

    I’ve had the same problem as many…
    But I’ve found out why!

    Smiliesfiles with underscores are not working.

    Example:
    icon_biggrin.gif
    The plugin tries to read it as icon-biggrin.gif

    _ becomes -

    The problem starts in the configuration,
    because those wrong filenames are already written to init.php

    It might have something to do with the function: sanitize_file_name()

  39. QAD gửi hôm 30.12.07 lúc 1:03 am #

    @Evolver: Great find! Thanks for pointing me out what really causes this annoying problem. :D

    I’ll go ahead and fix it asap. ;)

  40. Evolver gửi hôm 30.12.07 lúc 9:39 am #

    No problem.
    This is a great plugin.

    Maybe a tip for those who do not want to have smilies everywhere, like me (I hate smilies in code-examples):

    Avoid using simple smilie-tags like
    :) :( ;(

    Tags like
    ::smile:: ::sad:: ::wink::
    will less likely replace anything you don’t want to see as smilies.

  41. Evolver gửi hôm 30.12.07 lúc 10:26 pm #

    In addition to point 5 in:


    How to install

    1. Download and extract custom-smilies.zip; then, upload the content to its corresponding directory.
    2. Activate Custom Smilies in your Admin Panel
    3. Put your smilies in smilies folder (wp-includes/images/smilies/)
    4. Change the emoticons by navigating to Manage > Smilies and complete the form
    5. If you want to add clickable smilies to your comment form, append these lines to your current theme’s comments.php file, just before the form begins:


    5b. If you use the ‘Paged Comments’ plugin, you’ll need to place that code in
    /wp-content/plugins/paged-comments/themes/default/comments-paged.php
    (or your theme if it uses a separate paged-comments template)
    to enable those clickable smilies.

  42. Sheilla gửi hôm 30.12.07 lúc 11:29 pm #

    Thank you so much for this plugin, it has helped me managing my smilies, it works well in my blog and also it works well with the “recent-comments” plugin.

  43. QAD gửi hôm 30.12.07 lúc 11:54 pm #

    @Evolver: I’ve just put these instructions in the main post. Thanks a lot.

    @Sheilla: You are welcome. :)

  44. Evolver gửi hôm 03.01.08 lúc 8:37 pm #

    @QAD: Maybe this can help to find a solution about the underscore problem:
    Sanitize with underscores
    ;)

    I just stumbled upon it while looking for other plugins.

  45. Ash Haque gửi hôm 04.01.08 lúc 8:37 am #

    Hey thanks for the great plugin, really easy to setup and was basically exactly what I was looking for.

    One thing I noticed is if you add the smileys to the comment form they don’t show up properly unless you add a space after it has been added. I’m not sure if you want to add this to future releases but changing line 262 fixes the problem:

    echo "<img src='{$url}/{$k}' alt='{$v}' onclick='grin(\"{$v}&nbsp;\")' class='wp-smiley-select' /> ";

  46. QAD gửi hôm 05.01.08 lúc 6:44 pm #

    @Evolver: Thank for letting me know about this. I’d have a look at this post.

    @Ash Haque: I myself don’t consider it a bug. However, as it’d be more convenient for users to add a space automatically, i’d change this in future releases.

  47. dk gửi hôm 06.01.08 lúc 4:46 pm #

    Is there any way to limit the number of smilies that can be used in a comment?

    I had one comment that had over 3000 smilies and the page would barely load. Funny, but not good.

  48. Angela gửi hôm 08.01.08 lúc 8:28 am #

    Awesome plugin! But is there any way we can arrange the smilies into rows of a certain number?

  49. JTPRATT's Blogging Mistakes gửi hôm 08.01.08 lúc 11:16 pm #

    I use your plugin regularly, and I wanted you to know that you are part of my Rock Star Comments in Wordpress tutorial!

  50. Grneyez gửi hôm 09.01.08 lúc 6:32 am #

    Hi. I love the plugin but its driving me nuts! LOL. I was using the old version and today it just stopped working. I uninstalled and then reinstalled the new version, spent hours reloading my icons and titling them and it STILL does not work. The icons show in my comment submit box area however if clicked they dont show in the actual comment nor within my blog, It only shows what text I have listed as the code for it. Ive read thru the comments and have tried everything that everyone listed…CHMOD to 777 for everything, insert the lines in the code. Nothing works! What next? Im an smilie junkie so please help!! If you need access to my site, lemme know. You can register and I can approve you to admin so u can check the code.

  51. Jennifer gửi hôm 09.01.08 lúc 7:05 pm #

    Hey, I just wanna say I love the plugin! I’m having a bit of a problem, though. I managed to get most things working with it on my site, the smilies show up fine when typed in a post or comment (I didn’t want to enable the list of smilies to show in the comment box though), but they do not seem to be appearing on the “write” page in the admin controls. They’re being listed on the side, but only as red X’s where the icons should be. I changed the init.php file to 777 like what was suggested but for some reason they still dont show up on this page. Any ideas what could possibly be going wrong?

    I also cannot seem to add the “tag = tag + ‘ ‘;” to get the space automatically added, perhaps I’m putting it in the wrong place. Any help would really be appreciated, thanks!

    Also, I seemed to get a small bug when I went to add the custom code for each of my smilies. Some of them would not accept my changes which later learned was because they had an uppercase letter in teir filename. Once I changed the filename to lowercase letters only I was able to then edit their custom codes. Just thought I’d let anyone know who might run into the same thing!

  52. QAD gửi hôm 09.01.08 lúc 9:24 pm #

    @Angela: Currently there’s no way to do that, I’m afraid.

    @JTPRATT: Thanks for your nice words ;)

    @Grneyez: I’d try to help you solve your problem this weekend.

    @Jennifer: Yeah, many of Custom Smilies’ problems are caused by file names and I’d fix this in the next version.

    @all: I’m really busy right now at uni, so the next version will not be released soon. Please bear with me. :)

  53. Evolver gửi hôm 09.01.08 lúc 10:01 pm #

    OK, allow me to help you out a little…The underscore problem is caused by this function:

    function sanitize_file_name( $name ) { // Like sanitize_title, but with periods $name = strtolower( $name ); $name = preg_replace(’/&.+?;/’, ”, $name); // kill entities $name = str_replace( ‘_’, ‘-’, $name ); $name = preg_replace(’/[^a-z0-9\s-.]/’, ”, $name); $name = preg_replace(’/\s+/’, ‘-’, $name); $name = preg_replace(’|-+|’, ‘-’, $name); $name = trim($name, ‘-’); return $name;}
    This part of it clearly replaces the underscore:

    $name = str_replace( ‘_’, ‘-’, $name );
    This function is being used by the custom-smilies plugin, but is no part of it.It’s a function of Wordpress itself to deal with the permalinks.It resides in wp-includes/formatting.php
    However, I WOULD NOT CHANGE THAT if I were you!!
    I have no idea why this function is used by the custom-smilies plugin,but if it has to be so, then I would suggest to create a new function in the custom-smilies.php code, with the same code but a different function-name, without the part that changes the underscore and use that function instead.

  54. Evolver gửi hôm 09.01.08 lúc 10:19 pm #

    Aaahh, the code formatting in my previous message didn’t make it :(
    Sorry about that…

    Second attempt:

    OK, allow me to help you out a little…The underscore problem is caused by this function:

    function sanitize_file_name( $name ) { // Like sanitize_title, but with periods
    $name = strtolower( $name );
    $name = preg_replace(’/&.+?;/’, ”, $name); // kill entities
    $name = str_replace( ‘_’, ‘-’, $name );
    $name = preg_replace(’/[^a-z0-9\s-.]/’, ”, $name);
    $name = preg_replace(’/\s+/’, ‘-’, $name);
    $name = preg_replace(’|-+|’, ‘-’, $name);
    $name = trim($name, ‘-’);
    return $name;
    }

    This part of it clearly replaces the underscore:

    $name = str_replace( ‘_’, ‘-’, $name );

    This function is being used by the custom-smilies plugin, but is no part of it.
    It’s a function of Wordpress itself to deal with the permalinks.
    It resides in wp-includes/formatting.php

    However, I WOULD NOT CHANGE THAT if I were you!!

    I have no idea why this function is used by the custom-smilies plugin,
    but if it has to be so, then I would suggest to create a new function in the custom-smilies.php code, with the same code but a different function-name, without the part that changes the underscore and use that function instead. ;)

  55. Evolver gửi hôm 10.01.08 lúc 12:16 am #

    I have done some testing, it didn’t work straight away by removing the replacement.
    So I’ve played a little bit more with the code…

    This seems to have solved the underscore problem for me:

    // Like sanitize_file_name, but without underscore replacement
    function sanitize_smilie_name( $name ) {
    $name = strtolower( $name );
    $name = preg_replace(’/&.+?;/’, ”, $name); // kill entities
    $name = str_replace( ‘_’, ‘–underscore–’, $name );
    $name = preg_replace(’/[^a-z0-9\s-.]/’, ”, $name);
    $name = preg_replace(’/\s+/’, ‘-’, $name);
    $name = preg_replace(’|-+|’, ‘-’, $name);
    $name = trim($name, ‘-’);
    $name = str_replace( ‘–underscore–’, ‘_’, $name );
    return $name;
    }

    (I use this new function instead of sanitize_file_name)

  56. QAD gửi hôm 10.01.08 lúc 12:25 am #

    @Evolver: Thanks a bunch. I’ve just released Custom Smilies 1.1 and remove the sanitize_file_name function from the code. It would work correctly now.

  57. Evolver gửi hôm 10.01.08 lúc 1:11 am #

    @Angela: That’s easy…

    Change this:

    $smilies = cs_load_existing_smilies();
    $url = get_bloginfo(’url’).’/wp-includes/images/smilies’;
    foreach ($smilies as $k => $v) {
    echo “<img src=’{$url}/{$k}’ alt=’{$v}’ onclick=’grin(\”{$v}\”)’ class=’wp-smiley-select’ /> “;
    }
    }

    To this:

    $smilies = cs_load_existing_smilies();
    $url = get_bloginfo(’url’).’/wp-includes/images/smilies’;
    $smilierows=4;
    $smilienumber=0;
    $line = $smilierows;
    foreach ($smilies as $k => $v) {
    if ($smilienumber == $smilierows) {
    echo “<br>”;
    $smilierows = $smilierows + $line;
    }
    $smilienumber = $smilienumber+1;
    echo “<img src=’{$url}/{$k}’ alt=’{$v}’ onclick=’grin(\”{$v}\”)’ class=’wp-smiley-select’ /> “;
    }
    }

    (Then change the value of $smilierows to the amount of smilies/line you like):D

  58. Jennifer gửi hôm 10.01.08 lúc 1:31 am #

    Well, I figured out why they were not displaying in the “write” page. The plugin was trying to get the .gifs from blahblah/wp-includes/etc.. but my install is located at blahblah/blog/wp-includes/etc.. so I just changed each instance in the plugin code that had that URL and now its working beautifully, thank you!!

  59. htl gửi hôm 14.01.08 lúc 2:13 am #

    hic sao cái này viết trong mục Pages nó ko hiện à :(

  60. htl gửi hôm 14.01.08 lúc 2:16 am #

    à có hiện :”> nhg mà phải có dấu cách ở 2 đầu :-s

  61. Evolver gửi hôm 15.01.08 lúc 10:49 pm #

    QAD, I’m working on an add-in regaring the smilies/row.
    I have experimented with some ‘dynamic content’-javascript to make those smilies appear like this:
    :D :) :( :(( >>
    Clicking on >> shows the next row of smilies like this:
    <>
    I have already made it that far.

    Now, I’m just trying to figure out the best way to add the row-amount (amount of smilies/view) to the configuration.

    Interested?

  62. Evolver gửi hôm 15.01.08 lúc 11:49 pm #

    Here is my cs_print_smilies() function:
    cs_print_smilies()
    :D

  63. Evolver gửi hôm 16.01.08 lúc 1:18 am #

    But like I said:
    I’m still looking for a way to add the row amount to the configuration.

    I have started playing with php since only a few years, with WordPress only a few months :D
    WordPress has it’s own methods for working with the database:
    Writing a Plugin User Interfaces
    …I am learning, always learning…
    …and experimenting, experience is the greatest teacher ;)

  64. QAD gửi hôm 16.01.08 lúc 1:42 am #

    @Evolver: Thanks for your great effort :D

    You can have a look at my plugin, which creates both management and option pages for the back end. It’s not rocket science, you know ;)

    You are more than welcome to play around with Custom Smilies!

  65. Evolver gửi hôm 16.01.08 lúc 11:28 pm #

    OK QAD…

    I have added my modifications.
    You can download it here:
    custom-smilies.rar
    It’s the complete file with all my modifications.

    Added:
    - dynamic smilie rows
    - dynamic smilie row configuration

    Fixed:
    - PHP ending ?> written to init.php

    Changed:
    - Now adds a space BEFORE and after smilies

    Just give it a try, change whatever you like… :D

  66. Diane gửi hôm 17.01.08 lúc 10:52 am #

    The code is great!!!
    Can’t live without it.

    Thanks…perfectly working

  67. Evolver gửi hôm 17.01.08 lúc 2:32 pm #

    I just changed something in my modificated file (and uploaded it to replace the download)

    $displaysmilies was only there for the first smilierow.
    However, after further development there’s was no need for $displaysmilies anymore, because the dynamic javascript took care that the first smilierow too.
    It’s the last javascript in the cs_print_smilies() function with
    var http = dq(’1′);
    that brings up the first smilierow when the page opens.

    BTW: I have commented every modification I did.

  68. Cross gửi hôm 17.01.08 lúc 8:30 pm #

    Hello!
    I am live in Belarusia and i don’t good know English language.
    This plugin very good!
    At me has arisen two questions:
    1) How to make, what all smiles would be in one number, and that they at me now in two columns are located? (it is a question about comment box)
    2) Why when you insert in one message two identical smile, one is displayed only smile. And the second smile is written by a code? How it to correct?

  69. Grneyez gửi hôm 18.01.08 lúc 10:30 am #

    Hello. I still am not able to get the custom smilies working. Ive deleted, reinstalled, modified and everything else I could think of…nothing is working.

  70. Adam Hearn gửi hôm 18.01.08 lúc 2:54 pm #

    Thanks for a great plugin. I had a small problem where no images appeared in the smilies box when managing posts. Looking at the code, you use:

    $url = get_bloginfo(’url’).’/wp-includes/images/smilies’;

    to get the path of the images which works fine if your Blog address (URL) matches the WordPress address (URL) but in my case it doesn’t :((

    Changing the line to be

    $url = get_bloginfo(’wpurl’).’/wp-includes/images/smilies’;

    will correct this and should work for all configurations.

    Thanks again!

  71. mr kop gửi hôm 18.01.08 lúc 3:17 pm #

    không hiểu sao khi mình update smile mới thì nó luôn báo

    Warning: fopen(../wp-content/plugins/custom-smilies/init.php) [function.fopen]: failed to open stream: Permission denied in /custom-smilies.php on line 261

    Warning: fwrite(): supplied argument is not a valid stream resource in /custom-smilies.php on line 273

    Warning: fclose(): supplied argument is not a valid stream resource in /custom-smilies.php on line 288

    đã CHMOD 777 wp-plugins/custom-smilies

  72. Coleen gửi hôm 18.01.08 lúc 8:41 pm #

    Firstly, what a wonderful plugin! Thank you so very much.

    I actually followed this link because I had a bit of trouble. I don’t know if anyone else has had this issue but I thought I’d mention it just in case. :)

    I could not update the smilies without getting an error. I decided to take a look at the code line referenced and noticed that it reads:

    wp-content/plugins/custom-smilies/init.php

    Well, the instructions in the readme file of this plugin specifically ask that you isolate the two files (custom-smilies.php & init.php) and upload them directly into the plugin folder. This of course causes an issue because the code names “wp-content/plugins/custom-smilies/init.php” and not “wp-content/plugins/init.php”.

    I made a subfolder with the init.php file and everything works beautifully.

    Please forgive me if this is the most ridiculous post ever. I am a complete n00b when it comes to these things and I thought perhaps it might help someone with the same issue I had.

    Thank you again for the wonderful plugin!!

  73. Coleen gửi hôm 18.01.08 lúc 8:43 pm #

    Ooops, nevermind. I have since determined I am not only a n00b when it comes to uploading plugins, I am a complete moron when it comes to following simple directions!!! I am hoping you will spare me the embarrassment of posting my discovery publicly. Ha! ;;)

  74. QAD gửi hôm 19.01.08 lúc 12:41 am #

    @Evolver: Thanks for your ideas. As you could see, I made some changes to Custom Smilies to display a link to show/hide extra smilies. I’d publish this version as soon as I make sure it doesn’t break any existing code. :D

    @Cross: I’m not sure I understand your first question. About the two smilies: you need to put at least one space before and after each smilies. The next version of Custom Smilies would do this automatically for you. ;)

    @Adam Hearn: Thanks for letting me know about that. Prior to your comment, I know nothing about the difference between Blog URL and WordPress URL. :-@

    @mr kop: Cậu thử check lại file init.php xem. File đó cũng cần CHMOD 777. :-?

    @Coleen: Never mind. Nobody is perfect. :P

  75. Cristobal gửi hôm 19.01.08 lúc 10:00 am #

    Hi, in your plugin there is only five smileys, how can I get the other smileys, please?
    Thanks

  76. QAD gửi hôm 19.01.08 lúc 10:04 am #

    @Cristobal: Well, you could upload any smilies you want to the ’smilies’ folder and they will be recognized by Custom Smilies automatically.

  77. Cristobal gửi hôm 19.01.08 lúc 10:09 am #

    Oh well yes, but i want your smilleys collection ;)
    Please, give me a link to download these smilleys ;)
    Very thanks for all, and excuse me my poor english

  78. Lioness gửi hôm 19.01.08 lúc 7:49 pm #

    Okay, I want to try to make this as clear as possible so I apologize in advance if this is too long.
    Custom Smilies ver 1.2

    I installed your plugin- exactly as your directions stated- in the folders as stated.
    I chmod’ the init permissions to 777

    When I go to Manage ~ Smilies - ( I can view a link that says view all smilies & I am also am able to view all the new smilies I already added into the folder.)
    Then when I give them an attribute to “make” a smiley- I receive the following error message:

    Warning: fwrite(): supplied argument is not a valid stream resource (and then lists appropriate folders)

    HOWEVER, if, when I go to: Manage ~ Smilies ~ click on the link that says Display Undefined Smilies Only

    It will open only the undefined smilies- then when I give them an attribute to type and view them, it writes fine. Strangest darn thing.
    But I wondered if maybe it was due to other plug-ins I am running, or if you have encountered others with the same issues. Anyways, thought I would drop you a line and let you know of my experiences.

    (Thank you for your plug-in)

    Lioness

  79. dkaye gửi hôm 20.01.08 lúc 1:05 am #

    Love the plugin but reticent about upgrading to the newest version. Last time, I had to redo all of the selection/naming - it didn’t retain the ones I had selected when originally installed. Will I encounter the same situation again?

    dKaye

  80. Adam Hearn gửi hôm 20.01.08 lúc 1:18 am #

    @dKaye

    I expect you uploaded all files including “init.php”. It should be fairly obvious that this contains your custom smilie definitions and uploading an the empty file as supplied in the download would wipe out your previous work!

    For this latest drop at least, you need only upload ‘custom-smilies.php’

  81. benny gửi hôm 20.01.08 lúc 9:58 pm #

    i have a problem, when I have firefox running you can´t see the smilies :(

  82. Evolver gửi hôm 22.01.08 lúc 5:14 pm #

    @benny:

    Do you mean that you can’t see any smilies at all, or just the ones to choose from?
    Can you see them on this blog or not, or is it just on your blog that you can’t see them.

    What version of Firefox are you using?
    (I can see them perfectly with Firefox 2.0.0.11)

    If you can not even see the smilies to choose from here, maybe your firefox-browser has javascript disabled. :-?

  83. nisti2 gửi hôm 23.01.08 lúc 1:06 am #

    :D great :D

  84. Cross gửi hôm 23.01.08 lúc 5:16 pm #

    “@Cross: I’m not sure I understand your first question”
    Look a screenshot:
    http://img217.imageshack.us/img217/8529/scryx0.jpg

    I would want that smiles settled down in some columns (instead of in two), or in one line.

  85. Ariel gửi hôm 23.01.08 lúc 10:01 pm #

    Great plugin and works very nicely for me! Thanks!

    One thing I’ve noticed is that a smiley at the end of the line gets broken and added to the subsequent line. For example, this is what I type in:

    Line 1 ;;)
    Line 2

    and this is what appears:

    Line 1
    ;;) Line 2

    Do you know what causes this or how to fix it?

    Thanks!

  86. QAD gửi hôm 24.01.08 lúc 9:25 am #

    @Cristobal: You could download them all from this page: http://messenger.yahoo.com/emoticons.php

    @Lioness: It’s quite strange, I’m not sure what causes these problems.

    @benny: As I have emailed you, I see nothing wrong with your smilies. I can’t reproduce this problem; therefore could not investigate it further.

    @Cross: You put your smilies in a table column, that’s why they show up in multiple lines instead of one.

    @Ariel: Could you give me more details?

  87. Ariel gửi hôm 24.01.08 lúc 9:34 am #

    @QAD: I did a little more experimentation and it seems as though the smileys literally drop below the line they’re supposed to be on.

    For example, if you tried to enter the following:

    test :D test :D test :D test :D

    Instead, you would see this:

    test test test test
    :D :D :D :D

  88. Ariel gửi hôm 24.01.08 lúc 9:35 am #

    Whoops, that last row of smilies was supposed to be composed of all 4 in image form.

  89. Cristobal gửi hôm 24.01.08 lúc 9:45 am #

    Thank you very much cat :)

  90. Kaz gửi hôm 24.01.08 lúc 5:22 pm #

    Hey

    I can get the comments to display directly above the form, however I cant click the comments, in the source code it shows that the javascript is in the code, but the smilies are not clickable

    What version of Firefox are you using?
    (I can see them perfectly with Firefox 2.0.0.11)

  91. Dunn gửi hôm 26.01.08 lúc 2:14 pm #

    Hello! It’s a great plugin. But however, after I installed the plugin and I activated it, ALL my post will turn to some code, example :

    Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/dunn/public_html/wp-includes/formatting.php on line 666

    But when I deactivated it, all turned back to normal. Could you please tell me where I did wrong?!

    Thx in advance.

  92. htl gửi hôm 27.01.08 lúc 8:48 am #

    Sao khi write post mà click 1 cái đằng trước, rồi type 1 cái đằng sau giống nó, thì nó ko parse cái đằng trước mà lại parse cái đằng sau nhỉ :D

  93. QAD gửi hôm 27.01.08 lúc 11:28 am #

    @Ariel: Do you face that problem when deactivate Custom Smilies and use WordPress’s default smilies? If yes, I think it’s caused by your stylesheets.

    About the four smilies in a row: you need a space BEFORE and AFTER a smilie. I would fix this soon. :D :D :D

    @Dunn: Try reupload formatting.php and overwrite the old one. Tell me if the problem still exists or not.

    @htl: Em trả lời ku Ariel rồi ^^

  94. Cristobal gửi hôm 27.01.08 lúc 11:37 am #

    Hi, I want to add the smiles in my comment form but my theme doesn’t have got a normal php code and i don’t know add them. I nearly don’t know php :D
    Can you help me? I’ve asked to the creator of the theme but he hasn’t answered to myself :((
    My theme is 1 Blog Theme spanish version, the link it’s situated in the bottom of my blog ;)

    Thank you very much :)

  95. QAD gửi hôm 27.01.08 lúc 11:54 am #

    @Kaz: Please make sure that your comment’s textarea has the id “comment”. The grin() function use document.getElementById(’comment’) to append the smilies, so it would not work if this id cann’t be found.

  96. QAD gửi hôm 27.01.08 lúc 11:54 am #

    @Cristobal: Ok. I’d have a look at this and let you know soon.

  97. htl gửi hôm 27.01.08 lúc 11:55 am #

    Đâu, bấm 4 cái liên tiếp thì cái cuối cùng ko có khoảng trắng nó vẫn hiện mà :-??

  98. QAD gửi hôm 27.01.08 lúc 11:58 am #

    @htl: :-@ :-@ :-@ :-@

    Bác ơi cái này em dùng hàm có sẵn của WordPress mà. Bực mình version sau viết lại từ đầu bây giờ :-t

  99. htl gửi hôm 27.01.08 lúc 1:03 pm #

    viết đi :”> qad_grin() nhỉ ;))

  100. arend gửi hôm 28.01.08 lúc 8:17 am #

    On my (windows)laptop i have firefox 2.0.0.11 and on my (linux)pc i have firefox 3.0b2. Both are showing the smileys but on both they are not clickable… :(

  101. QAD gửi hôm 28.01.08 lúc 8:19 am #

    @arend: make sure that your comment’s textarea has the id “comment”.

  102. arend gửi hôm 28.01.08 lúc 8:46 am #

    The comment’s textarea was in a div so i removed the div and added id=”comment” in the textarea line. It’s working now.
    Thanks for the quick response :)

  103. Bierfles gửi hôm 30.01.08 lúc 1:35 pm #

    Great plugin! Thnx!

    When i try http://validator.w3.org/ on my site (or yours), i get some errors:
    ————
    Line 1622, Column 47: character "&" is the first character of a delimiter but occurred as data .

    … (document.getElementById('comment') && document.getElementById('comment').ty

    I changed the && to %26%26 so it is xhtml valid

    —–
    Line 1653, Column 96: document type does not allow element "a" here .

    …= '« less‘;

    i’m not able to solve this one, any ideas?

  104. htl gửi hôm 30.01.08 lúc 2:47 pm #

    @Bierfles: I think “<” is “&#61″ :D
    @QAD: sao thằng này nó quan trọng cái valid html thế nhỉ :D mỗi cái & thôi mà :-??

  105. htl gửi hôm 30.01.08 lúc 2:48 pm #

    @Bierfles: “&#60″ —> “<” :”>

  106. Bierfles gửi hôm 30.01.08 lúc 3:20 pm #

    Hi, ik just saw that my code tags didnt do so well, so i made you a screenshot.
    or if that isn’t enough, just click here

  107. Diego gửi hôm 30.01.08 lúc 7:47 pm #

    Hi,
    I think I would love your plugin, if I only could get it to work :-B I have your latest version and wp 2.3.2. I can configure it from the admin interface. I’m trying to get it to show smilies in the comment form, so I added the necessary code, but nothing. The init.php is chmoded 777…
    Any hints? Thanks, and congrats for the plugin!
    Diego
    http://www.miguiagamer.com

  108. Evolver gửi hôm 31.01.08 lúc 9:21 pm #

    @Bierfles:
    http://www.htmlhelp.com/tools/validator/problems.html
    (read the note about ampersands there)

    Javascript ain’t HTML you know, there is a big difference.
    However, maybe wrapping the content of all javascripts within CDATA marked sections can can avoid things like that:
    http://www.w3.org/TR/xhtml1/#C_4
    The only other alternative would be to use all javascripts as external scripts. That, on the other hand, would make javascript manipulation by PHP impossible.

  109. Cristobal gửi hôm 01.02.08 lúc 6:48 pm #

    I’ve yet solved my problem, thanks for all <:-P

  110. sherry gửi hôm 02.02.08 lúc 1:47 pm #

    thank you for the excellent plugin!!!
    I shall be waiting for your further update of this plugin so that there will be “more >>” ~~~

    Thanks!!!

  111. QAD gửi hôm 02.02.08 lúc 2:37 pm #

    @Bierfles: As Evolver has already pointed out, JavaScript is different from HTML. In order to make your code valid XHTML, you need to change the javascript to something like this:

    <script type="text/javascript">
    //<![CDATA[
    code here
    //]]>
    </script>

    More info: Including Javascript in XHTML: external, DOM created, CDATA & comments

    @htl: Yep, các bác ấy quan trọng cái valid xhtml.

    @Cristobal, sherry: you are welcome.

    @Diego: Does your comment textarea has the id “comment”? That’s a must.

  112. Joker gửi hôm 03.02.08 lúc 1:03 pm #

    my proplem with comment i add the code in comments.php

    and the textarea id is comment but the smililes dosnt appear ? :((

  113. Joker gửi hôm 03.02.08 lúc 2:01 pm #

    done :D thanx for this plugin

  114. matteo gửi hôm 03.02.08 lúc 5:21 pm #

    hi!
    i’d grab yourt plugin, it seems all works, but can’t see any smiley next to me ‘comment’ area, i got only the ? blue box for the missing images
    i have to name every image in order to display it in the comment page?

  115. Millie gửi hôm 04.02.08 lúc 8:36 pm #

    i have the same problem like Diego & Joker? how to solve it?

  116. Alex gửi hôm 05.02.08 lúc 9:23 pm #

    Hi,

    I installed the plugin and when I try to edit the smilies from teh admin page I get a set of errors, all similar to:

    Warning: fopen(../wp-content/plugins/custom-smilies/init.php): failed to open stream: Permission denied in /var/www/virtual/anasialex.ro/htdocs/blog/wp-content/plugins/custom-smilies/custom-smilies.php on line 264

    Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/virtual/anasialex.ro/htdocs/blog/wp-content/plugins/custom-smilies/custom-smilies.php on line 276

    The files are write-enabled. The only way to add smilies is to manually do it in the init.php file, but that takes ages. Coudl anybody please send me a copy of their init.php file?

    THX, Alex

  117. Bierfles gửi hôm 07.02.08 lúc 12:15 pm #

    @Evolver & @CAD.

    Thanx for your reaction. I modified your plugin, now my site has valid XHTML again.

  118. Riri Audiya gửi hôm 07.02.08 lúc 2:16 pm #

    realy nice plugin. I used it!

    i want to ask, how to add “more »” ?

    thanks

  119. QAD gửi hôm 08.02.08 lúc 12:45 am #

    @Riri: Just add some smilies to your Options > Smilies page, then the rest will be hidden by default.

    @Bierfles: Glad to know that you solve this problem.

    @Alex: Is your init.php file writable or it’s just custom-smilies.php?

    @matteo: That’s right; you need to “name” each smilies so that it can be available to use.

    @Mille: I see no problem with your comment textarea. Have you added the code to your comments.php file?

  120. Karen gửi hôm 09.02.08 lúc 1:02 pm #

    Super plugin, thank you! :D

  121. EL gửi hôm 11.02.08 lúc 6:01 am #

    I successfully install it. but… i put my own smilies, means i deleted your images, and put my own gif smilies.

    when i go to Manage > Smilies

    Under “What to type”, i arrange everything like :smile:, :angry:, :lol:, etc… then click update…

    when i click on Manage > Smilies again, all of the “What to type” gone.

    in WRITE.. i see :) :D :| :( = without anything just that symbol?

    why?

  122. joan gửi hôm 11.02.08 lúc 6:25 am #

    help! my smilies are working perfectly but it seems that the clickable smilies are showing twice before the comment form, one on the top after the site form and the other is after the riffly audio comment plug-in. how can i get rid of the other smilies?

  123. joan gửi hôm 11.02.08 lúc 6:59 am #

    oh no the smilies were great but when i try to submit the comment, it’s just won’t submit and yes im still having a problem with the smilies twice appearing im using the latest version of worpress help please T_T

  124. Japgalaxy gửi hôm 12.02.08 lúc 1:18 am #

    Hi,
    I have a problem: if I post one or more smilies with an administrator’s account the smilies are displayed while if I post one or more smilies with an other account the text isn’t trasformed in a smile…
    I have the 1.2 version, I have setted the permission 777 to the file init.php…
    How can I resolve?

    P.s.: excuse me for my english but I am italian.

  125. Japgalaxy gửi hôm 12.02.08 lúc 8:33 am #

    P.S.: My Wordpress version is the 2.3.1

  126. Alex gửi hôm 13.02.08 lúc 10:32 pm #

    Hi! For a pure windows user, can you please advise how to set value or parameter 777 with CHMOD?

    Thank you,
    Alex

  127. Japgalaxy gửi hôm 13.02.08 lúc 10:41 pm #

    I have setted the parameter 777 with the program ftp FileZilla…

  128. Japgalaxy gửi hôm 14.02.08 lúc 11:11 am #

    I don’t understand. My site is on linux server not on windows server…

  129. Alex gửi hôm 15.02.08 lúc 9:07 am #

    I found it. I am using Total Commander on WinXP and the command is “SITE CHMOD [code] [filename]. It is explained in the Help pages.

    This way I managed to make it work, but now another question came up: how can I make my smilies to appear on the same row as the text, and not few pixels higher, affecting the way the entire paragraph looks like? On Page phttp://www.anasialex.ro/blog/2008/02/14/sahara-taramul-infinitului-1/ you can see what I mean…

    Cheers,

  130. Adam Hearn gửi hôm 15.02.08 lúc 9:15 am #

    @Alex

    You must change your template style and ensure the class wp-smiley has the correct margin/padding values

  131. Riri Audiya gửi hôm 16.02.08 lúc 11:48 am #

    hello. I’ve added some new smilies, but the “More” tag not show.

    please check to my blog

  132. Japgalaxy gửi hôm 16.02.08 lúc 12:13 pm #

    Excuse me but isn’t any solution for my problem?

  133. QAD gửi hôm 16.02.08 lúc 12:23 pm #

    @Riri: Have you add the smilies to the Options page? It’s not the Manage one.

    @Japgalaxy: Try opening init.php, do you see your defined smilies there? If yes, there might be some problems with the way WordPress handles smilies, as I use it built-in function in my plugin. Consider upgrading your copy of WordPress to the lastest version also.

    @Alex: As Adam said, the way your smilies look depends on your style sheet.

  134. Riri Audiya gửi hôm 16.02.08 lúc 2:12 pm #

    oh, got it.
    thanks..

  135. Alex gửi hôm 17.02.08 lúc 8:47 pm #

    Thanks for the reply. I went through all the comments and did not find an answer (or one I could work with). I found the rows where “wp-smiley” is referred to inside the custom-smilies.php, but I have to admit that I have no idea what I should do next. I am able to understand HTML code, but PHP or functions are not my ace in the sleeve :)

    My theme is ElegantBlue (http://www.nathanrice.net/themes/elegantblue/), I don’t know if this is related to the template style or style sheet.

    Can you please advise me further, with some more details, on how to make smilies appear in the same line with the text?

    Cheers,
    Alex

  136. QAD gửi hôm 17.02.08 lúc 9:21 pm #

    @Alex: Put these lines at the end of your theme’s style sheet (it would normally be style.css):

    .wp-smiley {
    padding:0;
    vertical-align:middle;
    }

    Hope it helps :D

  137. Misty gửi hôm 18.02.08 lúc 10:14 pm #

    Hi there. I added this plugin to a friends website and cannot seem to get it working. The smilies show up above the comment box and in the “write” area in the control panel, but after the post or comment is published, only the text for the smilie shows up and not the image.

    I have added the smilies to the init.php file, the functions.php file in wp-includes and to the wp-config.php file. I am not sure why this is still not working. The text input box id IS comment and the files have been set to “777″. Also, convert emoticons is checked under Options/Write.

    You can see the problem here.

    Any help would be greatly appreciated.

  138. QAD gửi hôm 18.02.08 lúc 11:04 pm #

    @Misty: You have placed your graphics in the wrong directory. All of them should be located in /wp-includes/images/smilies folder.

    You should be able to access a particular image using URL like this: http://www.whatchutawkinbout.net/wp-includes/images/smilies/shrug.gif

  139. Alex gửi hôm 18.02.08 lúc 11:15 pm #

    I tried the solution proposed and it made things worse, meaning that now there is a greater difference. Even when I copied back the original file this did not change at all.
    Please have a look and advise. Isn’t there a common fix that might be incorporated in an update?

  140. Misty gửi hôm 18.02.08 lúc 11:54 pm #

    Thanks for getting back to me. I changed the location of the smilies file in the plugin file so that it would pull from the other file. It is recognizing that file, because they are showing up above the comment form and in the “write” panel. Right? They would not show up at all anywhere, if it did not know which file to pull the images from.

    It is only after posting the comment or submitting the blog post that they do not show up.

  141. Alex gửi hôm 21.02.08 lúc 11:32 am #

    I’ve got it!

    A friend helped me out with debugging and it seems that the code above needed just small adjustment:

    .wp-smiley {
    padding:0 !important;
    vertical-align:middle;
    }

    The padding for smilies was not really 0, so with the small fix now everything works great! :) I hope this will help others too…

  142. Kitty gửi hôm 21.02.08 lúc 2:18 pm #

    Hi!

    Thanks for your plugin!!!

    But I’ve got the same problem as Misty, the smilies don’t show up… Please help!

  143. Kitty gửi hôm 21.02.08 lúc 2:28 pm #

    OK I found out why it was not working, My Wordpress version is 2.0 and the vars are in vars.php not functions.php.
    So I tried to copy init.php in vars.php and it works ^^

  144. Vikki gửi hôm 21.02.08 lúc 4:37 pm #

    Hi! I love your plugin. It’s great… BUT while the smilies show up above my comment box, they are NOT clickable. Any suggestions??? I can enter the text for them to show up, but clicking does not work to add them.

  145. Pat gửi hôm 22.02.08 lúc 2:08 am #

    Hello. the smilies are working but I wonder why they are showing up twice on my comment area..

    please help. :)

    http://my-promises.net/?p=3#respond

  146. Vikki gửi hôm 22.02.08 lúc 4:02 pm #

    Guess I should have put my link! D’oh!

    http://www.viciousvikki.com

    PS. Thanks!

  147. rubeina gửi hôm 22.02.08 lúc 5:29 pm #

    I love this plugin, added it recently and am using skype smiles with it, really cool I posted about it here

  148. Isis' Insights gửi hôm 26.02.08 lúc 2:13 pm #

    wow i have been long waiting for this instructions bout smileys ^_^ thank you so much for this post

  149. Vitayalin gửi hôm 27.02.08 lúc 11:11 am #

    works very good on 2.3.3 and many thanks

  150. QAD gửi hôm 04.03.08 lúc 11:27 pm #

    @all: Sorry for the delay.

    It has come to the point that I didn’t want to maintain this plugin anymore. Basically it does exactly what it’s supposed to do - helping you replace the default ugly smilies without much effort. Recent versions have added some nice features, but they also introduces more and more bugs. Ensuring that Custom Smilies works on different setups is a painful task.

    Custom Smilies used to be a hobby project for me, but now I need more time to focus on different stuff. That’s why I decide to halt the development of this plugin.

    If you want to take over this project, feel free to leave a comment here, or send me an email to quanganhdo@onetruebrace.com.

  151. Adam Hearn gửi hôm 05.03.08 lúc 8:19 am #

    Thanks for the plugin and good luck with your future projects!

  152. dayer gửi hôm 07.03.08 lúc 4:53 pm #

    Hi. Very thanks for the plugin, is very useful and simple :)

    do you know if is possible use for comments with a pop-up window? So the smilies only appear when the user wants see it, and the blog load faster

  153. Mr Lonely gửi hôm 16.03.08 lúc 8:49 am #

    I have insert the code

    to my comments.php and these smilies appeared at comments box but it cannot be clickable. Hope you can help me. Thank you!

  154. Nuna gửi hôm 16.03.08 lúc 2:46 pm #

    thank u for this great plug in
    I have a problems :$ in 2 wordpress when I tried to Manage Smilies this comes

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/ff/public_html/wp-content/plugins/custom-smilies.php on line 276

    and a lot of lines like this but with numbers
    285
    289
    291

    could I get some help plz!
    =) thanx

  155. absolut-desing gửi hôm 21.03.08 lúc 8:41 am #

    fantastic this plugin thank you so much

  156. Najib Hassan gửi hôm 21.03.08 lúc 10:04 am #

    Hai! thanks for your ur smilies plug! it work great! easy to use for newcomer. if you dont mind i just added funny icon + with ur plug in. so it not default smilies you can see in wordpress.

    here the link you can download

    http://www.ariyako.org/wp-content/uploads/2008/03/custom-smilies.zip

  157. Melati Taman gửi hôm 22.03.08 lúc 12:52 pm #

    Please help me, when I finish configure setting from Manage > Smilies, I click Update>> but show this message:
    Warning: fopen(../wp-content/plugins/custom-smilies/init.php) [function.fopen]: failed to open stream: Permission denied in /home/a3033820/public_html/wp-content/plugins/custom-smilies/custom-smilies.php on line 265

    PHP Error Message

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/a3033820/public_html/wp-content/plugins/custom-smilies/custom-smilies.php on line 277

    PHP Error Message

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/a3033820/public_html/wp-content/plugins/custom-smilies/custom-smilies.php on line 286

    PHP Error Message

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/a3033820/public_html/wp-content/plugins/custom-smilies/custom-smilies.php on line 290

    PHP Error Message

    Warning: fclose(): supplied argument is not a valid stream resource in /home/a3033820/public_html/wp-content/plugins/custom-smilies/custom-smilies.php on line 292

    what should I do? :(

  158. Mr Lonely gửi hôm 24.03.08 lúc 3:50 am #

    Chèn vào giữa mà nó cứ nhảy xuống tận phía dưới cùng bài viết thì làm sao hả bạn T__T

  159. Emma gửi hôm 24.03.08 lúc 9:02 am #

    where exactly do I put the code in comments.php? I put it before the textarea for comments, but I get an error. Other than that it works perfectly fine. I would just like to place it in comments.

  160. VM gửi hôm 24.03.08 lúc 10:53 am #

    Tớ đã cài custom Smilies nhưng không có các icon giống như Yahoo. Theo tớ hiểu là phải upload các file image lên đúng không? Thế kiếm các image đấy ở đâu?

    Cảm ơn bạn.

  161. QAD gửi hôm 24.03.08 lúc 11:43 am #

    @Adam Hearn: Thanks for your wishes!

    @dayer: You’d need to edit the plugin’s source code, I guess.

    @Nuna, Melati Taman: Make sure your init.php file is CHMODded correctly.

    @Emma: Which error did you get? Just put the code before your comment form starts.

    @Mr Lonely: Đấy là do CSS của bạn thôi, check lại nhé.

    @VM: Tớ không đóng gói mấy icon ấy kèm plugin bạn ạ. Bạn thử search google với từ khóa yahoo emoticon nhé.

  162. coffee gửi hôm 28.03.08 lúc 2:40 pm #

    Your instructions on how to install says:

    3. Put your smilies in smilies folder (wp-includes/images/smilies/)

    Where are the smileys?? Do I have to download from somewhere else? Its not there in the download package.

  163. clem gửi hôm 31.03.08 lúc 11:43 am #

    @coffee: You have to download it elsewhere yourself.

    I have a problem that I encountered with this plugin. After installing it, I go to the page “Manage Smilies” and edit the ‘What to type’ fields accordingly, such as /shy, /ke, etc according to the smilies.

    I have posted the appropriate code into my comments.php file, and the smilies do load. Clicking on them also generate the appropriate text (like the ones I have defined, such as /shy, /ke, etc).

    However, after clicking Add Comment, the comment does not automatically include the image of the smiley. Assuming that I have used the /shy smiley, what is in the comment was literally just the text /shy without the image concerned.

    Any ideas how to rectify this?

  164. Claire gửi hôm 31.03.08 lúc 7:44 pm #

    Wonderful plug in! It works beautifully!

  165. Scyfox gửi hôm 01.04.08 lúc 9:45 pm #

    Hello.

    Now that Wordpress 2.5 is out and you decided not to continue developing your plugin, do you have in mind who will?

    It is a really kickass plugin and surely will be missed when i had to update my blog to 2.5

    Hope you can get this.

    SIlla!

  166. VM gửi hôm 02.04.08 lúc 5:04 am #

    Tớ bị 2 lỗi như sau:

    1. Tại sao tớ chèn đoạn code này

    vào như sau:

    ………………

    Thế là mất luôn phần comments.

    2. Tớ vào manage/smilies để update ký tự cho smiley rồi ấn nút update nhưng nó không lưu lại những ký tự đã quy định.

  167. VM gửi hôm 02.04.08 lúc 9:59 am #

    Tớ bị 2 lỗi như sau:

    1. Tại sao tớ chèn đoạn code này
    ——phpif ( function_exists(cs_print_smilies) ) {cs_print_smilies();}?——

    vào như sau:

    !– You can start editing here. –>
    —?phpif ( function_exists(cs_print_smilies) ) {cs_print_smilies();}?-
    -?php if ($comments) : ?-

    <?php foreach ($comments as $comment) : ?—
    ………………

    Thế là mất luôn phần comments.

    2. Tớ vào manage/smilies để update ký tự cho smiley rồi ấn nút update nhưng nó không lưu lại những ký tự đã quy định.

  168. Dimitri gửi hôm 03.04.08 lúc 7:54 am #

    I can only see 5 smileys.. what happened with the rest?

  169. Maggie gửi hôm 03.04.08 lúc 12:16 pm #

    What code would I add to comments.php to get the smiles inserted there please?

  170. coffee gửi hôm 03.04.08 lúc 2:40 pm #

    How to: CHMOD it to 777 ??

    i get an error like this when I give some attribute to the smileys manage>>smileys:

    Warning: fopen(../wp-content/plugins/custom-smilies/init.php) [function.fopen]: failed to open stream: No such file or directory in /home/thesp2/public_html/wp-content/plugins/custom-smilies.php on line 264

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/thesp2/public_html/wp-content/plugins/custom-smilies.php on line 276

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/thesp2/public_html/wp-content/plugins/custom-smilies.php on line 285

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/thesp2/public_html/wp-content/plugins/custom-smilies.php on line 285

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/thesp2/public_html/wp-content/plugins/custom-smilies.php on line 285

  171. Saz gửi hôm 04.04.08 lúc 11:27 pm #

    I get the following error from the comment.php code.

    Parse error: syntax error, unexpected ‘{’ in …/htdocs/blog/wp-content/themes/current/comments.php on line 76

    I’m using Wordpress 2.3.3 which should be fine with this plugin, right? I don’t think this is an issue with upgrading before you suggest it!

    Any help would be appreciated.

  172. latita gửi hôm 05.04.08 lúc 3:10 pm #

    Nooooo, you can’t do that. Wordpress 2.5 comes and the plugin doesn’t work anymore. Please one more time…. I would take over your project but i think i don’t have enough knowledge in this… :(
    Maybe with your help =)

  173. Lucy gửi hôm 06.04.08 lúc 2:36 pm #

    the code before comment form cannot be used for 2.5, pity….

  174. Nazgulled gửi hôm 06.04.08 lúc 6:15 pm #

    Please, do one little more update to make it compatible with 2.5… There’s no other plugin that do what this one does the way it does…

    Please… :(