March 24th, 2008

ecms tag 的rewrite规则

Category: Default, Author: humker, Popularity: 1%

将tag函数改为
function user_keylink($url)
{global $navinfor;
$keyword=$navinfor[keyboard];
$keyarray=explode(",",$keyword);
for($i=0;$i<count($keyarray);$i++)
{
echo "<a href='http://".$url."/tag/".urlencode($keyarray[$i])."\.html' target='_blank'>".$keyarray[$i]."</a>&nbsp;&nbsp;";
}

}

注意urlencode函数,还有.htaccess自己考虑一下,网上规则多了。

随机文章


评论数量(0) | Add Comments
本文网址:http://www.humker.com/2008/03/24/ecms-tag-function/

There are No comments.

» You can leave a response or Trackback .

leave a reply