工作,学习,生活,这里将会有一些记录. 备用域名:http://meisw.51099.com 注册 | 登陆
浏览模式: 标准 | 列表分类:网站程序

新浪短网址API接口

 copy来的~~~
以下appley未经过审核⋯⋯

新浪短网址接口的稳定性和跳转速度还是很给力的,现给出其API说明。
该接口支持两种返回格式:xml和json
对应的URL请求地址为:

xml:http://api.t.sina.com.cn/short_url/shorten.xml
json:http://api.t.sina.com.cn/short_url/shorten.json

请求方式:GET
请求参数:
  source:应用的appkey
  url_long:需要转换的长链接

举个例子:
xml:http://api.t.sina.com.cn/short_url/shorten.xml?source=3271760578&url_long=http://www.douban.com/note/249723561/
返回内容为:
<urls>
     <url>
          <url_short>http://t.cn/zWXySpZ</url_short>
          <url_long>http://www.douban.com/note/249723561/</url_long>
          <type>0</type>
     </url>
</urls>

json:http://api.t.sina.com.cn/short_url/shorten.json?source=3271760578&url_long=http://www.douban.com/note/249723561/
返回内容为:
[{"url_short":"http://t.cn/zWXySpZ","url_long":http://www.douban.com/note/249723561/","type":0}]

dz72 伪静态规则

        <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
        RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
        RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$3&page=$3
        RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
        RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
        </IfModule>

DEDE真强大

用DEDE也挺久了,发现DEDE真是功能强大,特别是在扩展上,灵活又方便,今晚又学了一点

就是列表里隔行变颜色或分组加线

http://bbs.dedecms.com/read.php?tid=21811

http://bbs.dedecms.com/read.php?tid=113212&keyword=%BC%D3%CF%DF

根据5.3的修改了下

[field:global runphp='yes' name=autoindex]
    if (@me % 8 == 0 && @me!=32) @me = "<tr><td colspan=2 background=/images/line_xu.gif>&nbsp;</td></tr>";
    else @me="";
      [/field:global]

真是太爽了.开始还在研究,怎么个加法,知道了这个全局变量autoindex,其实也很简单了.爽就一个字