CS2008 搭洋蔥頭表情符號

Monday, 1 September 2008 00:58 by admin

Lifetype ,他們把 Tiny_mce 換成的洋蔥頭,於 CommunityServer 2007 以後,也都換成 Tiny_mce ,當然也是可是可以換的,不過也許會有人會問,明明就有內建換表情圖案的功能,直接加入新圖不就得了

這鳥問題我也想過,不過實際測試後發現,那個換圖只能換 18x18 的圖,包子頭的大小是 50x50 ,用了後會變成18x18 的迷你包子頭,說實在,CommunityServer 的工作人員是不是吃飽太閒,連這個功能都鎖圖片大小

不過內建表情和MSN那個一樣,不怎麼出色,換掉也好,首先這個套件是改原本的 emotions plugins ,所以只要放到 emotions 放到 tiny_mce\plugins 目錄,圖放到 \Emoticons 目錄

檔案放在:http://www.ruri.com.tw/media/p/2708.aspx

檔案放好後,用記事本等軟體,修改 CommunityServer.config,找到 <editors> 後,把 plugins 的 smilies 換成 emotions,例如以下:

 

    <editors>
      <editor name="Plain Text" type="CommunityServer.Controls.DefaultTextEditor, CommunityServer.Controls" resourceName="EditorType_PlainText_Name" />
      <editor name="Standard" type="Telligent.TinyMCEWrapper.TinyMCE, Telligent.TinyMCEWrapper" resourceName="EditorType_Standard_Name">
        <editorOption name="fix_content_duplication" value="true" />
        <editorOption name="theme_advanced_resizing" value="true" />
        <editorOption name="remove_linebreaks" value="false" />
        <editorOption name="verify_html" value="false" />
        <editorOption name="theme_advanced_statusbar_location" value="'bottom'" />
        <editorOption name="theme_advanced_resize_horizontal" value="false" />
        <editorOption name="plugins" value="'insertmedia,paste,emotions,iespell,safari'" />
        <editorOption name="theme_advanced_buttons1_add" value="'iespell,emotions'" />
        <editorOption name="tab_focus" value="':prev,:next'" />
      </editor>
      <editor name="Enhanced" type="Telligent.TinyMCEWrapper.TinyMCE, Telligent.TinyMCEWrapper" default="true" resourceName="EditorType_Enhanced_Name">
        <editorOption name="fix_content_duplication" value="true" />
        <editorOption name="theme_advanced_resizing" value="true" />
        <editorOption name="theme_advanced_statusbar_location" value="'bottom'" />
        <editorOption name="theme_advanced_resize_horizontal" value="false" />
        <editorOption name="verify_html" value="false" />
        <editorOption name="remove_linebreaks" value="false" />
        <editorOption name="plugins" value="'insertmedia,paste,emotions,iespell,safari'" />
        <editorOption name="theme_advanced_buttons1" value="'fontselect,separator,fontsizeselect,separator,forecolor,backcolor,separator,cut,copy,paste,pasteword,separator,code,iespell'" />
        <editorOption name="theme_advanced_buttons2" value="'bold,italic,underline,strikethrough,separator,blockquote,hr,removeformat,separator,indent,outdent,separator,bullist,numlist,separator,link,unlink,image,insertmedia,emotions'" />
        <editorOption name="tab_focus" value="':prev,:next'" />
      </editor>
    </editors>

對了,這是修改 Tiny_mce 3 的 emotions plugins ,理論上其他系統要是也用  tiny_mce 3 也都能使用