[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, :), :|(你可以自己定义这些符号)时,就会在文章出现对应的表情。或者,通过在点击相应的图标来插入到文章中。
你还可以添加这些表情列表到你的评论框周围。这样,你就可以进行可视化操作了,并在评论中方便的使用表情。而且,这个列表可以根据你的需要进行调整,以满足你的要求:
下载
i tried updating in the “manage smiles” but the settings did not stay.
Any advice?
To: JC
init.php must be writeable.
Tks bro!
为什么 我装了之后,表情是竖排的不是横排的?
需要改哪个地方?
具体见www.lenwoo.cn
我是说评论框上方的表情是竖排的 ^_^
换模板后 现在好了 o(∩_∩)o…
后台设置和作者说的不同啊,没有出来表情和符号设置界面
你好,我在文章中点击加入表情的时候,在浏览时表情周围会有个方框,请问应该如何消除呢?
谢谢!
Display these smilies above the comment form by default:
这个界面没必要的,直接出来表情设置界面即可的~
58楼的,这个边框应该是当前主题的CSS缘故吧~我这正常的~
Well, this sounds like a wonderful plugin that does just what I want. The only problem is that I can’t update in “manage smilies.” init.php is writeable so that can’t be the problem.
To: Laura
What you only to do is setting permission of init.php to 777.
Hi and thank you very much for upgrading custom smilies to make it work for newer WP versions! Do you think it is possible to somehow move the smilies folder into wp-content? Because when upgrading WP you normally delete wp-includes, so you have to remember to copy your smilies back there. If they were in wp-content you wouldn’t have to worry about that.
To: Barbara
It’s a good idea.I will think over this.
Crazy Loong,
I changed the init.php permissions to 777 and it still won’t let me update in “manage smilies.”
To: Laura
I don’t konw the reason in detail. You can check your error log, and provide me the infomation, so I could kown what happened.
it does not work
it was working before but suddenly it stopped
i tried to remove it and re upload it and it`s the same
it`s unclickable in the comments but in a new post page i can use it well
i don`t know what`s wrong `coz i try it in another blogs and it`s working well
i`m using WP 2.6 and before 2.5 and an older version before
i tried alot of smilies codes and no one is working
Is it possible to gibe one “smilie-picture” more tags/text? For example the smiling smilie “: )” can should also be detect, when it is : – ), or 🙂
… I hope you understand what I mean ^^
:haha: :dsadsad: :ooo: :sd: :dsadasccc: :dsadas:
I can’t get the smilies to work properly. They all show up just above the comment form, but they’re not clickable. I tried changing the id=”comment” to id=”respond” in both the comments.php and the for25.php files you mentioned in the comments. Nothing.
To: Karl
Give me the url, I will check it.
I can’t seem to be able to find that init.php file inside the plugin directory 🙁 All I see is custom-smilies.php, forold.php and for25.php, plus the readme and the 3 screenshots 🙁 Do I have to create this init.php file by myself?
To: Luana
Yes, you can create it and make it writable.
Thank you, Crazy Loong ^^ Does it have to be an empty file or do I need to add code?
To: Luana
A empty file named init.php is sufficient. Please make it writable.
Okay. Thank you very much! 😀
To: Luana
:dsadsad:
大哥你的custom-smilies-se.zip里面根本就没有init.php啊!在WP官方下载的。
噢~看了77~80楼我知道了,还要自己创建一个空文件啊~解决了。
To: 小虎
如果没有init.php的话,后台应该会有警告信息的。
我的WP是2.6
在FIREFOX下回复 :dsadas: 表情无效,是什么原因呢 :dsadas:
To: peng
不知道你是什么错误信息。
出现问题了:
我在所用主题的style.css里加了条:
.wp-smiley {margin:0;background:none;padding:0;border:0 none;}
可是没有任何效果。
症状页见:http://Silvaus.com
To: 小虎
改成 img.wp-smiley 试试
试了img.wp-smiley也不行。
在.wp-smiley之前定义它的就只有img{..}了,可为什么还不行呢..
To: 小虎
改成 #content img.wp-smiley
Is there a way to get the smilies to show up right near the text box on the write page in the admin section? Right now mine is all the way at the bottom which kind of defeats the purpose.
To: Robin
Now I think about the possibility that adding the button to TinyMCE. If I finish it , it will be nice.
为什么表情有时显示不出来呢~
:haha: :dsadsad: :ooo: :sd: :dsadasccc: :dsadas:
:haha: :dsadsad:
To: 傻逼秀
不明白你的意思。
我猜测可能和网速有关
So chinocas 😆
LOOOOOOOOOOOOOOOL
安装后出现init.php找不到,
我的wp是2.6.1