[Update at 2008.11.6] This is not the latest. If you want to get the latest one, please visit http://goto8848.net/projects/custom-smilies/ .
这里不是最新版本。如果你想得到最新版本,请访问 http://goto8848.net/projects/custom-smilies/ 。
文章太长,点击进入浏览(click to see the whole post)。中文在下面。这是一个表情插件。
About It
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 (older than version 2.0) is written by QAD. Thanks for his great contribution.
The lastest version is 2.0. I have upgrade it to let it been compatible with WordPress 2.5 or greater. That’s all I do, but I will perfect it in the future. So the most is written by QAD. Thanks him again.
You can see the English Readme and more here ( new window) .
Download
You can get the latest version of Custom Smilies here. Get it
How to install
- 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..
- Activate Custom Smilies in your Admin Panel
- Put your smilies in smilies folder (wp-includes/images/smilies/)
- Change the emoticons by navigating to Manage > Smilies and complete the form
- 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:
- Backup your database! (better safe than sorry – i’m not responsible for any data loss caused by this plugin)
- Move all of your smilies to your smilies folder (wp-includes/images/smilies/)
- Deactivate Custom Smileys 2.4 without uninstalling it
- Download, extract, then upload Custom Smilies 1.0 to your blog
- Activate Custom Smilies 1.0 in your Admin Panel
- Delete custom-smileys.php if you wish
关于这个插件
Custom Smilies 是一个 WordPress 插件。它可以让你自由地在你的文章和评论中使用表情来代替默认的表情。
Custom Smilies 最新的版本是 2.0。我修改了以前的版本,使它可以工作在 WordPress 2.5 下。
人员名单
Custom Smilies 2.0 是我(Crazy Loong)更新的。2.0以前的版本是由 QAD 编写的。
安装 Custom Smilies 后,你可以把自己需要的表情添加到 WordPress 的表情文件夹里(wp-includes/images/smilies/),然后在 Manage > Smilies 里添加表情对应的字符。非常简单哦。
设置好以后,这些表情就可以在任何文章、页面和评论里使用了。例如,当你输入 :D, :), :|(你可以自己定义这些符号)时,就会在文章出现对应的表情。或者,通过在点击相应的图标来插入到文章中。
你还可以添加这些表情列表到你的评论框周围。这样,你就可以进行可视化操作了,并在评论中方便的使用表情。而且,这个列表可以根据你的需要进行调整,以满足你的要求:
下载
To: cherlin
在后台设置里把其它设置里的勾去掉,然后,自己在cooments.php 适合的位置添加cs_print_smilies()这个函数来调用表情。
谢谢博主 这个插件还不错 就是图片不是太好看哦
To: 纽曼德
哪个图片?
It works on my comments but not on my new post page in the Admin panel. I see a link that says Add smilie and an empty tiny white box is there. No smilies or anything. Not sure?
To: Erica
In common, there are some other plugins stop it run.
I have a problem when I use this plugin.
I click the icons on firefox but nothing happen, can’t add the emotion code to textarea.
But I have no problem on IE.
How can I fix it?
To: okman
I think that the textarea in your theme have a incorrect ID.
喜欢这样的表情!多谢.,
Hi,
I can not use this plugin in my theme, please help ?
Hi,
I’m sorry, please ignore my previous comment.
My wordpress is updated 2.8.5 version. I have a problem with your plugin and I hope you help me !
I can select these milies in admin zone for new posts or for edit reply comments, However in the outside blog, I saw them but they are not clickable.
Athought I Found id=”respond” and replaced it with id=”comment”.
Now, I have to do :dsadas:
Thanks so much and have a nice day !
To: htv7
Hi,
If you can give me a demo or url, I could resolve it.
Hi Crazy Loong,
There is demo theme at http://web2feel.com/chronicle/
Thank you for your support :hehe:
To: htv7
It looks fine. :hehe:
I test it in IE8 and FF3.5
Hi Crazy Loong,
How about it ? Is it ok ?
Hi Carzy Loong,
Thank you so much, I well done ^O^
Good weekend! :hehe:
:dsadas:
很好的插件,支持哈~~~~~~~ :dsadsad:
发现加了这个插件之后,网页无法通过XHTML1.1验证了。主要原因为,在HTML内不恰当的位置加了
img.wp-smiley-select {cursor: pointer;}
望改进 :dsadsad:
很喜欢这个插件,但是怎么我在我的文章中插入表情的发表后,文章中的表情怎么会有灰色背景,请查看我的博客,非常感谢! :ooo: :ooo: :dsadasccc: :dsadasccc:
@V-Ren
FF3.6和IE8下没有发现这个问题。