WIKI使用導(dǎo)航
站長百科導(dǎo)航
站長專題
- 網(wǎng)站推廣
- 網(wǎng)站程序
- 網(wǎng)站賺錢
- 虛擬主機(jī)
- cPanel
- 網(wǎng)址導(dǎo)航專題
- 云計(jì)算
- 微博營銷
- 虛擬主機(jī)管理系統(tǒng)
- 開放平臺(tái)
- WIKI程序與應(yīng)用
- 美國十大主機(jī)
編輯“WordPress:Using Smilies”
該編輯可以被撤銷。 請(qǐng)檢查下面的對(duì)比以核實(shí)您想要撤銷的內(nèi)容,然后發(fā)布下面的更改以完成撤銷。
最后版本 | 您的文本 | ||
第128行: | 第128行: | ||
''*在有的情況下,多種文本操作可以用來顯示同一種smiley.'' | ''*在有的情況下,多種文本操作可以用來顯示同一種smiley.'' | ||
[[WordPress:Category:Getting Started]] | |||
[[WordPress:Category:Getting Started|分類:入門]] | [[WordPress:Category:Getting Started|分類:入門]] | ||
== Troubleshooting Smileys == | |||
=== Why Doesn't it Work? === | |||
Smileys may have been disabled by your Wordpress admin. Another possibility is? the smiley image files have been deleted from <tt>/wp-includes/images/smilies</tt>. | |||
== Smiley問題發(fā)現(xiàn)與解決 == | == Smiley問題發(fā)現(xiàn)與解決 == | ||
第135行: | 第143行: | ||
=== 它為什么不好用呢? === | === 它為什么不好用呢? === | ||
Smiley可能在你的Wordpress管理中被禁用了。另外一種可能是Smiley圖片已經(jīng)從<tt>/wp-includes/images/smilies</tt>中刪除了。 | Smiley可能在你的Wordpress管理中被禁用了。另外一種可能是Smiley圖片已經(jīng)從<tt>/wp-includes/images/smilies</tt>中刪除了。 | ||
=== Why Doesn't it Work for Me? === | |||
''If smileys work for others at your site but not for you:'' | |||
Type a space before and after your smiley text. That prevents the smiley being accidentally included in the text around it. [[WordPress:Image:icon_redface.gif|redface emoticon]] | |||
Make sure not to use quotes or other punctuation marks before and after the smiley text. [[WordPress:Image:icon_rolleyes.gif|rolleyes]] | |||
=== 為什么只有我不能正常使用呢?=== | === 為什么只有我不能正常使用呢?=== | ||
第142行: | 第157行: | ||
注意不要在smiley文本之前或之后使用引號(hào)或者別的符號(hào)。[[WordPress:Image:icon_rolleyes.gif|翻白眼]] | 注意不要在smiley文本之前或之后使用引號(hào)或者別的符號(hào)。[[WordPress:Image:icon_rolleyes.gif|翻白眼]] | ||
=== Where Are My Smiley Images Kept? === | |||
The smiley or emoticon image graphics are found in the <tt>/wp-includes/images/smilies</tt> directory. | |||
Note that smileys is spelled 'eys' in this documentation and the directory name for the smiley images is '''smilies'', spelled 'ies'. [[WordPress:Image:icon_eek.gif|eek emoticon]] | |||
=== 我的Smiley圖片保存在什么地方?=== | === 我的Smiley圖片保存在什么地方?=== | ||
第147行: | 第167行: | ||
注意文件中的smileys的拼寫是'eys',目錄名字是'''smilies'', 拼寫為 'ies'. [[WordPress:Image:icon_eek.gif|驚訝]] | 注意文件中的smileys的拼寫是'eys',目錄名字是'''smilies'', 拼寫為 'ies'. [[WordPress:Image:icon_eek.gif|驚訝]] | ||
=== How Can I Have Different Smiley Images Appear? === | |||
''Simplest way:'' | |||
# Find your smiley image files in the <tt>/wp-includes/images/smilies</tt> directory and back them up to another directory | |||
# Note the names of each smiley file. Your files must match these names and should be in the same 'gif' image format. | |||
# For predictable behavior, the image sizes should be similar. | |||
# Upload your new files to the <tt>/wp-includes/images/smilies</tt> directory with an [[WordPress:FTP_Clients|FTP program]]. | |||
=== 我如何才可以讓不同的Smiley圖片顯示出來? === | === 我如何才可以讓不同的Smiley圖片顯示出來? === | ||
第155行: | 第183行: | ||
# 顯而易見的, 圖片的尺寸應(yīng)該比較小才可以。 | # 顯而易見的, 圖片的尺寸應(yīng)該比較小才可以。 | ||
# 使用[[WordPress:FTP_Clients|FTP 程序]]把新文件上傳到<tt>/wp-includes/images/smilies</tt>目錄. | # 使用[[WordPress:FTP_Clients|FTP 程序]]把新文件上傳到<tt>/wp-includes/images/smilies</tt>目錄. | ||
''If you're up to hacking the code:'' | |||
If you really must change the file names of the images, edit the file that refers to these images, ''''vars.php'''' (in WordPress 2.2, they're located in ''''functions.php''''), situated in the <tt>/wp-includes/</tt> directory. Follow all precautions when "hacking code". | |||
You can read a tutorial explaining all this in more detail, as well as how to avoid hacking WP code, at [http://aranea.zuavra.net/index.php/20/ Ars Aranea]. | |||
There are also WordPress Plugins which allow you to customize your smilies in WordPress. | |||
''如果你懂得代碼的話:'' | ''如果你懂得代碼的話:'' | ||
第163行: | 第199行: | ||
還有一些WordPress插件允許你用來在WordPress中自定義smilies。 | 還有一些WordPress插件允許你用來在WordPress中自定義smilies。 | ||
=== Why are my Smiley Images Blank? === | |||
If you recently uploaded the images, it could be that the images have been uploaded in '''''ASCII''''' format by your FTP program. Re-upload the smileys ensuring that they are transferred in '''''BINARY''''' format. | |||
Some FTP programs have an '''auto-detect''' setting which will upload files in the correct format without user intervention. If you have such a setting, turn it on. | |||
=== 我的Smiley圖片為什么是空白? === | === 我的Smiley圖片為什么是空白? === | ||
第168行: | 第209行: | ||
一些FTP軟件有個(gè)'''auto-detect'''設(shè)置,可以在用戶不介入的情況下選擇正確的格式上傳文件,如果你有這個(gè)設(shè)置,打開它。 | 一些FTP軟件有個(gè)'''auto-detect'''設(shè)置,可以在用戶不介入的情況下選擇正確的格式上傳文件,如果你有這個(gè)設(shè)置,打開它。 | ||
== Smiley CSS == | |||
The smiley images in WordPress are automatically given a [[WordPress:Glossary#CSS|CSS]] class of '''wp-smiley''' when they are displayed in a post. You can use this class to style your smileys differently from other post images. | |||
== Smiley CSS == | == Smiley CSS == | ||
當(dāng)它們?cè)谖恼轮酗@示的時(shí)候,WordPress 中的Smiley圖片會(huì)被自動(dòng)賦予一個(gè)[[WordPress:Glossary#CSS|CSS]]的'''wp-smiley'''類。你可以使用這個(gè)類來設(shè)計(jì)你的Smiley,讓它不同于別的文章里的圖片。 | 當(dāng)它們?cè)谖恼轮酗@示的時(shí)候,WordPress 中的Smiley圖片會(huì)被自動(dòng)賦予一個(gè)[[WordPress:Glossary#CSS|CSS]]的'''wp-smiley'''類。你可以使用這個(gè)類來設(shè)計(jì)你的Smiley,讓它不同于別的文章里的圖片。 | ||
For example, it's not uncommon to set up images in a post to appear on the left-hand side of the content with text flowing around the image. The CSS for that might look like this: | |||
<pre> | |||
.post img { | |||
? ? float: left; | |||
} | |||
</pre> | |||
例如,在文章中建立圖片,讓它出現(xiàn)在內(nèi)容的左手邊,并且文字在圖片周圍漂浮,這可能很少見到。這個(gè)效果使用的CSS如下: | 例如,在文章中建立圖片,讓它出現(xiàn)在內(nèi)容的左手邊,并且文字在圖片周圍漂浮,這可能很少見到。這個(gè)效果使用的CSS如下: | ||
第180行: | 第232行: | ||
</pre> ? | </pre> ? | ||
This would typically affect all images in a post, '''including''' your smiley images. To ''override'' this so that smileys stay inline, you could add this to your CSS: | |||
<pre> | |||
img.wp-smiley { | |||
? ? float: none; | |||
} | |||
</pre> | |||
For more on CSS in WordPress, you might want to [[WordPress:CSS|start here]]. | |||
這可能會(huì)特別影響到所有的文章里的圖片,'''包括'''你的smiley圖片,要想''不理會(huì)''這個(gè)效果的話,讓smiley仍然在文本中,可以使用下面的CSS: | 這可能會(huì)特別影響到所有的文章里的圖片,'''包括'''你的smiley圖片,要想''不理會(huì)''這個(gè)效果的話,讓smiley仍然在文本中,可以使用下面的CSS: | ||
第188行: | 第249行: | ||
} | } | ||
</pre> ? | </pre> ? | ||
== More Information on Smileys == | |||
* [http://en.wikipedia.org/wiki/Emoticon Wikipedia - Emoticon] | |||
* [http://www.smileygarden.de/ Smileygarden - Free Smileys, Smilies and Gifs] | |||
* [http://www.World-of-Smilies.com World-of-Smilies - Smileys and Smileygenerator] | |||
* [http://www.greensmilies.com Green Smilies presented with and for WordPress] | |||
== 有關(guān)Smiley的更多信息 == | == 有關(guān)Smiley的更多信息 == |