[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: chenlb
自己在custom-smilies目录下建一个init.php的空文件就可以
不能提交到官方插件库啊 可惜了 我本来还想去打个5星的
To: Lucy
http://wordpress.org/extend/plugins/custom-smilies-se/
这个是的
Hai,, i can add the smiley, adn the smiley is appear in my comment form.. But it can’t clicked… Please help me how to make it clickable… Thanks. :dsadasccc:
to see my problem, you can visit my blog at http://www.laziem.com
To: Ongki
I have visit your site, that is Ok now. :sd:
Thx,, but how to make it clickable? what must i add to comment.php?
I’ve add “” but my smiley is not clickable yet..
:dsadasccc:
一起没用表情的..
这个不错
去装个///
Hii, i know why my smiley not clickable.. The ID on comment.php is defferent,, i just change it to ID=”comment” and i’ve done.
Thanks
I seem to be having the same problem others have had — smilies show up in my comments form but are not clickable in Firefox. I tried the fix changing “respond” to “comment” in my comments.php, then tried changing “comment” to “respond” in for25.php — neither fixed the problem but both resulted in an identical problem in IE. Any idea how I can resolve this? I’m using WP 2.6.2. Thanks!
Please ignore my previous comment — I found the issue. Now I’m contacting my theme author to make sure I can make the proper change…
Thanks for this plugin!
Crazy Loong,
Thanks to your lovely Plugin that I have successfully add this to my page on word press 2.6.2. I have also hacked the Ajax Comment-Reply to add the Custom Smileys to it. The only suggestion i have is maybe the leading Space can be removed from the inserted smiley will be good.
You can see how it work out with the Ajax Comment Reply at my page : http://mylovelybluesky.com
谢谢你的插件。
Hi, thanks for taking up this lovely plugin.
Is is possible to further customize the display order of the smileys? I have different sets of smileys that I would like to group together but they show up all mixed up.
To: Helen
The plugin can’t do that at the present time.
为什么提示:
init.php is not writeable or nonexistent, so Custom Smilies is not available. If init.php is nonexistent, please create it in /home/xxx/public_html/wordpress/wp-content/plugins/custom-smilies-se/ and make it writable.
:dsadas:
To: 菜鸟学wp
翻译成中文就是
init.php 不存在或者不可写,所以 Custom Smilies 不能工作。如果 init.php 不存在,请在 /home/xxx/public_html/wordpress/wp-content/plugins/custom-smilies-se/ 里建立这个文件,并使它可写。
表情大小可以随意不?
To: dayx
随便多大都可以
:haha: :dsadsad: ^O^ :ooo: :dsadas: :dsadasccc:
Sorry, but why those smilies didnt appear on my comment box at the bottop of the psot? It only exist in posting areo of the admin.
To: Manusiasuper
You need add the function cs_print_smilies() to your template.
@ CL
Ok, thanks pal, I’ll try it…
多谢!不知贵站用的是哪个评论插件?
To: 虚拟时代
什么评论插件?
Thanks for the quite reply, Loong! I meant the comment plugin.
怎么会有这么外国佬来啊?
To: 沿阶草
外国人也要用插件的啊 :dsadsad:
First of, thanks for a nice plugin.
Just updated to 2.3, but theres a problem. I’m using the function code in my comment-template, after update the smilies shows up twice :dsadas:
To: Mattias
You can edit the file for25.php and delete the line 368.
Hi, I just downloaded this awesome plugin (thanks ^O^ ), but I have a problem. When people go to comment me, the smileys appear below the comment form instead of above it:
http://requiemlove.com/new-web-layout/#comments
Haih~ thanks for 2.3 version!
i got 1 problem. the smilie icon appear on comment box but those smilies are not clickable. ( can’t click at all )
you can see here http://www.ariyako.org/?p=448
all icon are appear but not clickable.. haih :dsadas:
To: Najib Hassan
There are two elements named comment in your page. It is wrong. You can change the
<div id="comment">
to<div id="comments">
.Hi!
After updating to wp 2.7 i can´t get tinymce editor working in ie7. It seems to depend on your plugin (v2.3). If it´s activated the editor don´t load. If it´s deactivated the editor loads without any problems. Maybe you can take a look at this?
To: Michael
Thanks for your response. I have fix it and it can work in IE. You only need to upgrade the plugin to 2.5.
Sorry, but the download containing still v 2.3 and it still doesn´t work in IE7. It seems that you just renamed the zipfile. In my plugin backend still it´s v2.3 and not v2.5. :dsadas:
EDIT: Version Nr. is now correct. But it still doesn´t work.
为什么我的表情在FF下点了没有反应?
他不会自动的把表情代码填入到留言的内容里,但是在IE下就没问题
To: ZeroDream
参考114楼。下一个版本会直接在后台加入这个修改项。你可以使用最新的SVN版。
博主,我想请问你…表情怎么才能放到上面??我不喜欢放到下面的~~~有什么办法吗?… :dsadsad: