[WordPress] 外掛分享: Link Shortcut

首頁外掛目錄 › Link Shortcut
30+
安裝啟用
尚無評分
6174 天前
最後更新
問題解決
WordPress 2.7+ v1.4 上架:2009-04-05

內容簡介

有沒有想過要建立自己的捷徑而不用再擔心 WordPress 的永久連結設定?Link Shortcut 外掛可以讓你在部落格網域下建立短網址(由隨機的數字和字母或簡短的文字組成),透過這個短網址可以重定向(301 或 302,你決定)使用者到其他網頁,包括你的網站或其他網站上的頁面。

換句話說,你可以透過以下方式簡單地建立捷徑,而不是傳遞這個網址到作者的外掛程式頁面中:
http://www.husani.com/ventures/wordpress-plugins/linkshortcut/

透過這個外掛,你只需要安裝和新增一個連結,就像我們熟悉的傳統 WordPress 使用者介面一樣,就可以建立以下的簡短網址:
http://www.husani.com/link123

你也可以指定要出現在所有 Link Shortcut 網址中的特定「子目錄」:例如 yourblog/go/STRING。

為了讓這個外掛能夠運作,你必須使用非常醜陋的永久連結。你的永久連結結構不能是 yourblog.com?p=84,而必須是基於日期、名稱等的結構。

重要提示:Link Shortcut 會在資料庫中建立一個表格。當外掛停用時,它會在刪除主表格之前建立一個備份表格並將記錄複製到備份表格中。如果你決定重新啟用外掛,或安裝了升級版,它會自動將你的備份連結複製到新建立的表格中。如果你永久刪除 Link Shortcut,你也可以刪除備份表格。

更新記錄:

1.4:

新增可配置的重定向類型(301、302)

1.3:

新增設定預設的長度
新增在網址中設定目錄名稱的功能(例如 yourblog.com/go/993ldx)
在外掛停用時新增備份資料的功能(詳見「安裝」章節)
改成使用 _SERVER 而非 WP_Query 帳號,以解決 WordPress 版本差異的問題

1.2:

修正 WP 2.7 與 2.7.1 的問題

1.1:

修正目錄名稱的問題

Link Shortcut 外掛釋出於 GPL 授權下供 WordPress 開發社群使用。請隨意修改外掛,如果你發現這個外掛很有用,請捐贈給作者。你可以發送回饋意見至 [email protected],也可以拜訪 Husani 的網站 http://www.husani.com。

外掛標籤

開發者團隊

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

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

原文外掛簡介

Ever want your own shortcuts without mucking about with permalink structures? The Link Shortcut plugin allows you to create short (random numbers and letters, or short words) URLs under your blog’s domain that redirect (301 or 302, your choice) a user to other pages, either in your site or on another site.
In other words, instead of sending this url to the author’s plugin page:
http://www.husani.com/ventures/wordpress-plugins/linkshortcut/
This shortcut could be created simply by installing this plugin and adding a link, via the same traditional WordPress UI we all know and love:
http://www.husani.com/link123
You can also specify a specific “subdirectory” to be present in all Link Shortcut URLs: yourblog/go/STRING, for example.
YOU MUST USE NON-UGLY PERMALINKS FOR THIS PLUGIN TO WORK. Your permalink structure cannot be yourblog.com?p=84, it must be date-based, name-based, etc.
IMPORTANT: Link Shortcut creates a table inside your database. Upon deactivation, the plugin creates a backup table and copies records to it before removing the main table. If you decide to activate the plugin again — or have installed an upgrade — it automatically copies your backed up links to the newly created table. You can also delete the backup table if you remove Link Shortcut permanently.
Changelog:

1.4:

Added configurable Redirect-Type (301, 302)

1.3:

Added ability to set default length
Added ability to set directory name inside URL (yourblog.com/go/993ldx)
Added data backup on plugin deactivation (read Installation for more details)
Using _SERVER instead of WP_Query to account for WP version differences

1.2:

Fixed WP 2.7 vs 2.7.1 bug

1.1:

Fixed directory name bug

Link Shortcut is released to the WordPress community under the GPL. Please feel free to modify as you see fit, and if you find this plugin useful, donate to the author. All feedback is welcome at [email protected], and you can visit Husani’s website at http://www.husani.com.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon