Home > IT > Wordpress Plugin: Custom URL Shorter

Wordpress Plugin: Custom URL Shorter

分享家:Addthis中国

本人写的第一个Wordpress的插件——Custom URL Shorter诞生了

  • 起因:最近突然一些原因要在自己的风云阁添加短地址链接,因此就萌生了写这个插件的想法。今天在工作的休息时间写了这个插件的第一个版本。
  • 版本号:0.3.1。
    09年8月11日23:30更新
  • 功能:
    • 可以在多个短地址服务中选取自己喜欢的服务进行使用,也可以选择列表中没有的服务
    • 可以对链接文字进行设置
    • 可以发布日志或者页面的时候通过
      [cus]

      来实现短域名链接生成

    • 可以通过直接修改模板添加
      <?php custom_url_shorter(); ?>

      来实现短地址链接的生成

  • 安装与使用
    • 下载Custom URL shorter
    • 上传Custom URL shorter文件夹到你的插件目录下。
    • 在WordPress后台插件菜单下激活Custom URL shorter。
    • 转到Setting => Custom URL shorter,进行设置。
    • 创建 WordPress 页面模板,在该模板中加入下面函数:
      <?php custom_url_shorter(); ?>

      或者创建新日志或者页面时,在内容中添加

      [cus]
  • 备注
    • 本插件现在刚开始,有任何问题等,请与我联系。
    • 目前插件正在向Wordpress.org提交中,提交完成后,下载链接将转至Wordpress.org的空间。
      已提交Wordpress
    • 插件中提及到的adf.ly调用API是需要注册的,插件中使用的是本人的帐号所对用的API地址。如用户觉得不便的话,可以自行去注册后,在插件设置界面的自定义区,输入你的API地址来进行使用
    • 下载:Custom URL shorter
    • Changlog
      = 0.3.2 =
      * Confirmed compatibility with 2.9
You don't feel like leaving comments? Please leave your palm-print.
懒得留言?那留下您的掌印吧。
Categories: IT Tags: , , , , ,
  1. gpt
    January 29th, 2010 at 14:57 | #1

    Hi, how i can Create a page template with function custom_url_shorter()?

    Sorry i dont know how, you can helpme, please?

  2. January 29th, 2010 at 15:38 | #2

    You can add the function called “custom_url_shorter” into the .php files of your wordpress template.

    < ?php custom_url_shorter(); ?>
  3. gpt
    January 30th, 2010 at 16:49 | #3

    Hi and with this i redirecting to adf.ly?

  4. January 30th, 2010 at 21:12 | #4

    @gpt
    Ya! This plugin can create adf.ly short links of your posts.

  5. January 30th, 2010 at 21:16 | #5

    @gpt
    Click the “Skip ad” on the top-right corner!

  1. No trackbacks yet.

:D 8) :down: 8O :!: :halo: :evil: :heart: :kiss: :lol: :money: :mrgreen: :x :| :pirate: :?: :oops: :roll: :P :( :) :o :up: :vangry: :twisted: ;) :? :cry:

也许您会觉得ReCAPTCHA验证码很繁琐,会认为他和其他所有的验证码一样让你厌烦。那请点击这里,您会了解到ReCAPTCHA为人类文化的传承做出了多大的贡献。请您也为人类知识的保存和传递也出一份力吧,谢谢!


Additional comments powered by BackType

    Posts Nav.