內容簡介
注意:我已經停止開發此外掛,因為我認為 URL 縮短服務的狀態似乎已經融合了,此外掛在我的開發項目中已沒有更多進展。
URL 短網址產生器允許您使用 URL 縮短服務(例如 Bit.ly、Su.pr 和許多其他服務)對文章 / 頁面產生短網址,還有其他幾個進階功能。
在升級到 4.0 版本之前,請檢查您的設定是否已從之前版本升級。
版本 4.0 的新功能:
QR 碼支援(使用 Google Chart API)
支援額外的縮網址服務(Goo.gl、dlvr.it、yourls)
QR 碼的短網址 ID 也同時支援(例如,http://your_site/123.qr)
4.0 版本完全重新整理的程式碼,現在包括可讓開發人員輕鬆擴展此外掛的類別。
功能包括:
自動生成短網址
快取短網址,因此只需產生一次。
可選擇使用永久連結或文章 ID 生成短網址(例如,http://your_site/index.php?p=123)。
相對完善的短網址支援
提供其他外掛使用所產生的短網址的動作鉤(從版本 3.0 起)
使用漂亮 ID 的網址 – http://your_site/123 而不是 http://your_site/index.php?p=123
短碼支援(Ver 3.1):在文章中放置 [shortlink],即可顯示短網址。
在文章最下方附加短網址鏈接(Ver 3.1.1)
請參閱 http://wiki.fusedthought.com/docs/url-shortener-wordpress-plugin 的文件 / Wiki 頁面,以獲得更多資訊(例如,安裝指南和已知問題等)。
目前支援的服務包括:
goo.gl(測試版)
bit.ly
tinyurl
is.gd
Su.pr
snipurl / Snurl / Snipr / Sn.im / Cl.lk
cl.gs
chilp.it
smsh(又稱 sm00sh)
urli.nl
unfake.it
awe.sm
Voizle
Interdose API
dlvr.it
已暫停支援:
Ping.fm(將暫停,直到他們重新開放 API 為止)
可用模板標籤:
即時產生短網址的函式:
<?php fts_shorturl('http://www.google.com', 'bitly'); ?>
顯示已產生的短網址:
<?php fts_show_shorturl($post); ?>
或如果您使用的是 WordPress 3.0:
<?php the_shortlink(); ?>
參考 https://codex.wordpress.org/Function_Reference/the_shortlink
可用的鉤子和篩選器
fts_use_shortlink(動作鉤)
fts_filter_shortlink(篩選器)
未來可能的版本:
可以根據需求添加更多的服務 / 功能(http://code.google.com/p/url-shortener-plugin/issues/list)
必須注意的是,由於我越來越需要集中精力學習,而且此外掛的開發並沒有得到財務上的貢獻,我不可能全部接受所有請求。
支援方式:
https://wordpress.org/tags/url-shortener
透過我的網站聯繫我(http://www.fusedthought.com/contact/)
請查看常見問題
外掛標籤
開發者團隊
原文外掛簡介
Notice: I’ve have since stopped development of this plugin as I feel that the state of URL Shortening services seems to have converged and there isn’t much more progress I have in the pipeline for this plugin.
URL Shortener allows you to generate shortlinks for post/pages using URL Shorteners (e.g. Bit.ly, Su.pr and many others), with a few additional features.
Please check your settings when upgrading to Version 4.0 from previous versions prior to it.
What’s New with 4.0
QR Code Support (using Google Chart API)
Additional Shorteners (Goo.gl, dlvr.it, yourls)
Nice ID links with QR Code (i.e. http://your_site/123.qr)
Version 4.0 features completely refactored code once again. Now includes classes which allows developers to easily extend the plugin.
Features:
Automatic generation of a Short URL/Shortlinks
Cached Shortlink – thus generated only once.
Choose to generate shortlinks using permalinks or the posts ID (e.g. http://your_site/index.php?p=123).
Relatively extensive shortlink support
Action Hooks available for other plugins to utilize generated shortlinks (From Ver 3.0 Onwards)
Nice ID links – http://your_site/123 instead of http://your_site/index.php?p=123
Shortcode support (Ver 3.1): Place [shortlink] in your article where you want to display the shortened url.
Append a link to short URL below your post content (Ver 3.1.1)
Refer to the documentation/wiki page at http://wiki.fusedthought.com/docs/url-shortener-wordpress-plugin for more information (eg. installation guide and known issues etc).
Services currently supported are:
goo.gl (beta)
bit.ly
tinyurl
is.gd
Su.pr
snipurl / Snurl / Snipr / Sn.im / Cl.lk
cl.gs
chilp.it
smsh (aka sm00sh)
urli.nl
unfake.it
awe.sm
Voizle
Interdose API
dlvr.it
Suspended
Ping.fm (Will be suspended until they reopen their API)
Available Template Tags
On-demand shortening function:
To show the generated links::
Or if WordPress 3.0:
https://codex.wordpress.org/Function_Reference/the_shortlink
Available hooks and filters
fts_use_shortlink (Action Hook)
fts_filter_shortlink (Filter)
Future Versions and on:
More services/features can be added upon request (http://code.google.com/p/url-shortener-plugin/issues/list)
Do note that due to my increasing need to concentrate on my studies, and a lack of financial contribution from such plugin development, I cannot possibly accede to all requests.
Support via:
https://wordpress.org/tags/url-shortener
Contact me via my website ( http://www.fusedthought.com/contact/ )
Please check the FAQ
