久久精品水蜜桃av综合天堂,久久精品丝袜高跟鞋,精品国产肉丝袜久久,国产一区二区三区色噜噜,黑人video粗暴亚裔

WordPress: Using Smilies:修訂間差異

來自站長百科
跳轉至: 導航、? 搜索
無編輯摘要
無編輯摘要
?
第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)與解決 ==
第143行: 第135行:
=== 它為什么不好用呢? ===
=== 它為什么不好用呢? ===
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]]


=== 為什么只有我不能正常使用呢?===
=== 為什么只有我不能正常使用呢?===
第157行: 第142行:


注意不要在smiley文本之前或之后使用引號或者別的符號。[[WordPress:Image:icon_rolleyes.gif|翻白眼]]
注意不要在smiley文本之前或之后使用引號或者別的符號。[[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圖片保存在什么地方?===
第167行: 第147行:


注意文件中的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圖片顯示出來? ===
第183行: 第155行:
# 顯而易見的, 圖片的尺寸應該比較小才可以。
# 顯而易見的, 圖片的尺寸應該比較小才可以。
# 使用[[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.


''如果你懂得代碼的話:''
''如果你懂得代碼的話:''
第199行: 第163行:


還有一些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圖片為什么是空白? ===
第209行: 第168行:


一些FTP軟件有個'''auto-detect'''設置,可以在用戶不介入的情況下選擇正確的格式上傳文件,如果你有這個設置,打開它。
一些FTP軟件有個'''auto-detect'''設置,可以在用戶不介入的情況下選擇正確的格式上傳文件,如果你有這個設置,打開它。
== 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 ==
當它們在文章中顯示的時候,WordPress 中的Smiley圖片會被自動賦予一個[[WordPress:Glossary#CSS|CSS]]的'''wp-smiley'''類。你可以使用這個類來設計你的Smiley,讓它不同于別的文章里的圖片。
當它們在文章中顯示的時候,WordPress 中的Smiley圖片會被自動賦予一個[[WordPress:Glossary#CSS|CSS]]的'''wp-smiley'''類。你可以使用這個類來設計你的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)容的左手邊,并且文字在圖片周圍漂浮,這可能很少見到。這個效果使用的CSS如下:
例如,在文章中建立圖片,讓它出現(xiàn)在內(nèi)容的左手邊,并且文字在圖片周圍漂浮,這可能很少見到。這個效果使用的CSS如下:
第232行: 第180行:
</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]].


這可能會特別影響到所有的文章里的圖片,'''包括'''你的smiley圖片,要想''不理會''這個效果的話,讓smiley仍然在文本中,可以使用下面的CSS:
這可能會特別影響到所有的文章里的圖片,'''包括'''你的smiley圖片,要想''不理會''這個效果的話,讓smiley仍然在文本中,可以使用下面的CSS:
第249行: 第188行:
}
}
</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]


== 有關Smiley的更多信息 ==
== 有關Smiley的更多信息 ==

2008年4月23日 (三) 12:20的最新版本

Smiley是什么?[ ]

Smiley,就是大家都知道的"字符組成的圖釋,"是在寫作時用來表達表情的符號。他們是讓你的文章更閃亮的好幫手。表情字符。

文本Smiley是通過輸入兩個或者更多的符號組成的,如下: ;-) is equivalent to smile emoticon
:-) is equivalent to smile emoticon
:-( is equivalent to sad emoticon
:-? is equivalent to confused emoticon
參見Wikipedia Emoticons入門,以找到更多有關emoticon和它的歷史信息。

WordPress是如何管理Smiley的?[ ]

默認情況下,WordPress自動轉換文本的Smiley為圖片,當你輸入;-)時,在你的文章中,當你預覽或者發(fā)布文章時,你可以看到一個微笑圖標。

關閉圖形Smiley[ ]

如果你關閉了圖形Smiley,那么不論你輸入什么都只會保留原樣顯示,象純文本一樣。

  1. 進入管理面板
  2. 選擇 Options > Writing
  3. Formatting部分, 不要選中 "Convert emoticons like :-) and :-P to graphics on display"前的復選框就可以了

關閉emoticon意味著當你輸入;-)時,當你預覽或者發(fā)布文章時,在這個文章中你會看到;-)。所以它不會阻止你使用把emoticons當作純文本來使用。眨眼。

應該輸入哪些文本來制作Smiley?[ ]

Smiley圖片和相應的文本*:


icon text text full text icon full text
微笑 :) :-) :smile: 大笑 :lol:
biggrin :D :-D :grin: 臉紅 :oops:
悲傷 :( :-( :sad: 哭泣 :cry:
驚訝 :o :-o :eek: 邪惡 :evil:
驚恐 8O 8-O :shock: 苦惱 :twisted:
困惑 :? :-? :???: 翻白眼 :roll:
8) 8-) :cool: 大叫 :!:
瘋狂 :x :-x :mad: 疑問 :?:
嘲弄 :P :-P :razz: 思考 :idea:
中立 :| :-| :neutral: 箭頭 :arrow:
眨眼 ;) ;-) :wink: 精力旺盛 :mrgreen:

*在有的情況下,多種文本操作可以用來顯示同一種smiley.


分類:入門

Smiley問題發(fā)現(xiàn)與解決[ ]

它為什么不好用呢?[ ]

Smiley可能在你的Wordpress管理中被禁用了。另外一種可能是Smiley圖片已經(jīng)從/wp-includes/images/smilies中刪除了。

為什么只有我不能正常使用呢?[ ]

如果別的訪問者可以使用你站點上的smiley,但是你卻不能使用的話:

在smiley文本之前或后多輸入一個空格??梢苑乐箂miley被以外的認為是它周圍的別的文本。臉紅表情

注意不要在smiley文本之前或之后使用引號或者別的符號。翻白眼

我的Smiley圖片保存在什么地方?[ ]

Smiley圖片可以在/wp-includes/images/smilies目錄下找到。

注意文件中的smileys的拼寫是'eys',目錄名字是'smilies, 拼寫為 'ies'. 驚訝

我如何才可以讓不同的Smiley圖片顯示出來?[ ]

最簡單的方法:

  1. 找到你的smiley圖片文件,它在/wp-includes/images/smilies目錄中,把它們備份到另外一個目錄中。
  2. 注意每個文件的名字。你的文件必須和這些名字匹配而且必須是同樣的'gif'文件圖片格式。
  3. 顯而易見的, 圖片的尺寸應該比較小才可以。
  4. 使用FTP 程序把新文件上傳到/wp-includes/images/smilies目錄.

如果你懂得代碼的話:

如果你真的必須更改圖片的文件名,編輯指向這些圖片的文件,'vars.php' (在WordPress 2.2, 它們在文件'functions.php'中),位于/wp-includes/目錄。在"寫代碼"的時候要小心謹慎。

你可以在Ars Aranea上閱讀更詳細的指南,同樣還有如何避免破壞WP代碼。

還有一些WordPress插件允許你用來在WordPress中自定義smilies。

我的Smiley圖片為什么是空白?[ ]

如果你最近上傳了圖片,那可能是你的FTP軟件使用了ASCII格式上傳了圖片,重新上傳smiley,確定它們是使用BINARY格式上傳的。

一些FTP軟件有個auto-detect設置,可以在用戶不介入的情況下選擇正確的格式上傳文件,如果你有這個設置,打開它。

Smiley CSS[ ]

當它們在文章中顯示的時候,WordPress 中的Smiley圖片會被自動賦予一個CSSwp-smiley類。你可以使用這個類來設計你的Smiley,讓它不同于別的文章里的圖片。

例如,在文章中建立圖片,讓它出現(xiàn)在內(nèi)容的左手邊,并且文字在圖片周圍漂浮,這可能很少見到。這個效果使用的CSS如下:

.post img {
    float: left;
}


這可能會特別影響到所有的文章里的圖片,包括你的smiley圖片,要想不理會這個效果的話,讓smiley仍然在文本中,可以使用下面的CSS:

img.wp-smiley {
    float: none;
}

有關Smiley的更多信息[ ]