[WordPress] 外掛分享: IM-porter

首頁外掛目錄 › IM-porter
全新外掛
安裝啟用
尚無評分
4213 天前
最後更新
問題解決
WordPress 3.5+ v1.0.1 上架:2013-11-25

內容簡介

痛點:你在電腦中保存了多年的聊天記錄,現在希望能夠回顧一些當時的對話,但該如何做呢?手動在瀏覽器或聊天程序中打開每個記錄嗎?一定有更好的方法!

解決方案:安裝 IM-porter,這是一款 WordPress 外掛,可以將即時通訊的對話記錄匯入到你的 WordPress 博客中,這樣你就可以像瀏覽博客檔案庫一樣輕鬆地瀏覽過去的對話了。

啟用插件後,請訪問「工具」>「匯入」>「聊天記錄」。然後,你可以上傳單個記錄或多個 ZIP 文件。

目前支持這些記錄:

AOL 即時通訊器
MSN 即時通訊器
Colloquy
Adium

匯入的文章將使用「聊天」文章格式,你可以選擇標記參與者的用戶名,使其成為公開或私密文章,還可以將其添加到分類中。

輸出可能不完美。(輸出將不會完美。)原始記錄以帖子元數據形式保存,因此如果需要,可以稍後更新帖子。

如果你想像 AIM 顯示的方式一樣設計你的聊天對話風格(如我所示的屏幕截圖),你可以使用這個 CSS:

.post.format-chat .entry-content p { margin-bottom: 0 !important; } .post.format-chat .entry-content span { color: #00f; font-weight: bold; } .post.format-chat .entry-content span.participant-1 { color: #f00; } .post.format-chat .entry-content span time { font-size: x-small; }

如果你想為某個記錄格式編寫自己的匯入器,請編寫一個實現 Chat_IMporter_Format 函數的類,然後將其添加到由 chat_importer_formats 過濾器過濾的數組中。可以參考 Chat_IMporter_Format_AIM_HTML 進行編寫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「IM-porter」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Problem: You have years’ worth of chat transcripts saved on your computer, and you’d love to stroll down memory lane and reread some of them, but how? Manually open each one in your browser or chat program?? There’s got to be a better way!
Solution: Install IM-porter, the WordPress plugin that imports your instant message transcripts to your WordPress blog so you can read through conversations from ages past just as easily as you browse the archives of a blog.
After activating the plugin, visit Tools > Import > Chat Transcripts. Then, you can upload a single transcript or a ZIP of transcripts.
Currently supports transcripts from:

AOL Instant Messenger
MSN Messenger
Colloquy
Adium

Imported posts are given the ‘chat’ post format, and you have the option of tagging them with the participants’ usernames, making them public or private, and adding them to a category.
The output may not be perfect. (The output will not be perfect.) The original raw transcript is saved as post meta so the post can be updated later if you want.
If you want to style your chats like AIM used to display them (like in the screenshot I included), you can use this CSS:
.post.format-chat .entry-content p { margin-bottom: 0 !important; } .post.format-chat .entry-content span { color: #00f; font-weight: bold; } .post.format-chat .entry-content span.participant-1 { color: #f00; } .post.format-chat .entry-content span time { font-size: x-small; }
To write your own importer for a given transcript format, write a class that implements the functions in Chat_IMporter_Format and add it to the array filtered by the chat_importer_formats filter. See Chat_IMporter_Format_AIM_HTML for an example.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon