Menu:

Recent Entries

Categories

Archives

Links

Blogs
- Dflying's Night
- David's Untitled Life
- Dflying's Blog in Chinese

This blog is hosted by DreamHost!

Syndicate

RSS 0.90
RSS 1.0
RSS 2.0
Atom 0.3

Search Engine Friendly URL in LifeType Tag Cloud Plug-in

Dflying | 15 March, 2006 17:14

Currently the Tag Cloud Plug-in of LifeType uses search to fetch related topics and just shows the raw URL such as http://dflying.dflying.net/index.php?searchTerms=ajax&op=Search&blogId=1 which may not friendly enough to search engines. I’ve added a line in .htaccess file

# Search (i.e. /plog/1_userfoo/search/keyword.html)
RewriteRule ^([0-9]+)_[^/]+/search/([^.]+).html$ index.php?
                   blogId=$1&op=Search&searchTerms=$2 [L,NC]

To make the url like http://dflying.dflying.net/1/search/atlas.html. here ‘atlas’ is the keyword.

Then change the plugintagcloud.class.php file line 152 and line 153 to generate friendly urls:

$baseUrl = $rg->getBaseUrl();	
$Cloud .= "<a href='{$baseUrl}/{$blogId}/search/{$k}.html' "
          ."style='font-size: {$size}px; color: #{$r}{$g}{$b}' "
          ."title='$k($v)'>$k</a> &nbsp;&nbsp;";

Just download here if you do not like to modify: http://dflying.dflying.net/1/resources/plugintagcloud.zip.html


Posted in LifeType. Comment: (0). Trackbacks:(1). Permalink
«Next post | Previous post»

Referers

Comments

Leave a Reply

Auth Image