0
我正在從wp_comments
表意見,但像時:-)和:-P圖形表情顯示它在瀏覽器不顯示表情而不是顯示:)
和:D
雖然評論有一些表情符號。我讀Using Smilies,現在我想創建自定義的功能與適當的圖標等取代:)
。轉換上顯示
但我不知道怎麼樣?
我正在從wp_comments
表意見,但像時:-)和:-P圖形表情顯示它在瀏覽器不顯示表情而不是顯示:)
和:D
雖然評論有一些表情符號。我讀Using Smilies,現在我想創建自定義的功能與適當的圖標等取代:)
。轉換上顯示
但我不知道怎麼樣?
本頁面描述了表情/笑臉的圖形:
http://codex.wordpress.org/Using_Smilies
如果你是尋找WP-腳本轉換表情看這裏:
httpdocs/wp-includes/formatting.php
〜行:1715
/**
* Convert one smiley code to the icon graphic file equivalent.
*
* Looks up one smiley code in the $wpsmiliestrans global array and returns an
* <img> string for that smiley.
*
* @global array $wpsmiliestrans
* @since 2.8.0
*
* @param string $smiley Smiley code to convert to image.
* @return string Image string for smiley.
*/
function translate_smiley($smiley) {
...
/**
* Convert text equivalent of smilies to images.
*
* Will only convert smilies if the option 'use_smilies' is true and the global
* used in the function isn't empty.
*
* @since 0.71
* @uses $wp_smiliessearch
*
* @param string $text Content to convert smilies from text.
* @return string Converted content with text smilies replaced with images.
*/
function convert_smilies($text) {
是的,我知道,但有這是一個PHP腳本。 – 2013-04-30 08:47:23
檢查「我怎樣才能看到不同的笑臉圖像?」這不是你想要的嗎? – 2013-04-30 08:49:21
哥們我知道這很好,但我覺得你沒有讀我的文字。如果複選框被選中d:在wp_comments轉換,如表情符號:)和 - 我從wp_comments表中獲取的意見和希望顯示與表情 – 2013-04-30 08:49:43