內容簡介
Where I've Been 可將您在 whereivebeen.com 建立的地圖嵌入到 WordPress 網誌中。
我在搜尋方法嵌入 whereivebeen.com 地圖於 WordPress 網誌時發現並無此類外掛,因此特別開發此插件。
請造訪插件首頁 (http://www.nicmyers.com/where-ive-been-wordpress-plugin/) 取得更新及更多資訊。
0.6.0 新功能
您現在可以透過在 Shortcode 中新增 width=”” 屬性來調整地圖寬度,高度會自動算出。
使用方法
在您嵌入地圖之前,您需要取出所屬 whereivebeen.com 帳戶中的兩個使用者 ID 編號,可在程式碼中找到。
前往 http://www.whereivebeen.com 登入您的帳戶。
按下「Profile」或「My Profile」按鈕以傳送您的地圖。
在瀏覽器上按右鍵並選擇「View Page Source」(Firefox)、「View Source」(Internet Explorer & Safari)。
搜尋程式碼 (Windows 為 CTRL-f、Mac 為 Command-f),首先尋找「uID」,然後是「iID」,並記錄每個相對應的值。
範例: Person = { uID: ‘0000000’, sID: ‘Not Needed’, iID: ‘00000000000000000000000000000000’ )
您需要找到示範中以 0 表示的值。uID 大約有 8 位數,而 iID 約有 32 位數。
該插件使用 WordPress Shortcodes,有兩個必填選項和兩個選擇填寫的選項。
透過 Shortcode 嵌入地圖到文章或頁面中: [whereivebeen uid=”Required” iid=”Required” roundcorners=”Optional” width=”Optional”]
uid = 必填。您獨特的 8 位數 uID,可在 whereivebeen.com 帳戶中找到 (請見 reademe)。
iid = 必填。您獨特的 8 位數 iID,可在 whereivebeen.com 帳戶中找到 (請見 reademe)。
roundcorners = 選填。此選項可設為「true」或「false」,預設為「true」。此選項可將地圖視窗邊角變更為圓角 (true) 或方型 (false)。
width = 選填。若預設的寬度 (570x360) 過度寬廣,可自行設定。高度將自動計算。
更新
更新將在此及 http://www.nicmyers.com/where-ive-been-wordpress-plugin/ 張貼。
如欲更新插件,僅需使用 WordPress 內建的一鍵更新器。如果您想手動升級,請重新執行安裝步驟。
更新紀錄
0.6.0 [2009.03.20]
新增:更改地圖寬度之選項
修正程式碼問題並更新 readme 可閱讀性
0.5.1 [2009.03.18]
修正微小問題
0.5 [2009.03.18]
初次公開發行
新增:Shortcode 支援更改圓角
修正:Shortcode 輸出中的主要定位錯誤
0.4 [2009.03.18]
新增:Shortcode 支援 uID 和 iID
0.1-0.3 [2009.03]
初次開發階段
外掛標籤
開發者團隊
原文外掛簡介
Where I’ve Been embeds your whereivebeen.com maps on your WordPress blog.
I created this plugin after searching for an easy way to embed whereivebeen.com maps on WordPress blogs and not finding one.
Please visit the plugin homepage (http://www.nicmyers.com/where-ive-been-wordpress-plugin/) for updates and more information.
0.6.0 New Feature
You can now change the width of your map by adding the width=”” attribute to your shortcode. The height is automatically calculated for you.
Usage
Before you can embed the map on your blog, you will need to retrieve two user id’s found in the source code of your whereivebeen.com profile.
Go to http://www.whereivebeen.com and log in to your account.
Click on the “Profile” or “My Profile” buttons to pull up your map.
Right click in your browser and select “View Page Source”(Firefox), “View Source” (Internet Explorer & Safari).
Search the code (CTRL-f Windows, Command-f Mac) first for “uID” and then for “iID” and record each of the corresponding values that are single quotation marks.
Example: Person = { uID: ‘0000000’, sID: ‘Not Needed’, iID: ‘00000000000000000000000000000000’ )
You are looking for the values that are represented as 0’s in the example. The uID will be around 8 digits long and the iID around 32 digits.
The plugin makes use of WordPress Shortcodes and has two required options and two optional ones.
Embed maps into your post or page using shortcode: [whereivebeen uid=”Required” iid=”Required” roundcorners=”Optional” width=”Optional”]
uid = Required Your unique 8 digit uID found on your whereivebeen.com profile (see readme).
iid = Required Your unique 8 digit iID found on your whereivebeen.com profile (see readme).
roundcorners = Optional This option can be set to either ‘true’ or ‘false’, the default is ‘true’. This option will change the corners on the map window to either round(true) or square(false).
width = Optional Set the width if the default (570×360) is too wide for your blog. The height is automatically calculated for you.
Updates
Updates will be posted here and at http://www.nicmyers.com/where-ive-been-wordpress-plugin/
To update the plugin simply use WordPress’s built in one-click updater. If you wish to upgrade manually simply repeat the installation steps.
History
0.6.0 [2009.03.20]
Added: Option to change the width of the map
Minor code fixes and readme readability updates
0.5.1 [2009.03.18]
Minor small fixes
0.5 [2009.03.18]
Initial Public Release
Added: Shortcode support for changing rounded corners
Fixed: Major positioning bug from Shortcode output
0.4 [2009.03.18]
Added: Shortcode support for uID and iID
0.1-0.3 [2009.03]
Initial development phase
