TagCloud - friendly SEO URL
Posted: Sun Feb 10, 2008 11:24 pm
Hello guys,
I've done some small changes in TagCloud extension if order to have clean URL.
file .htaccess :
file function.tagcloud.php :
in function build_tagcloud($parameters, $array_rows) near the end of function where line looks like
change that to:
I've done some small changes in TagCloud extension if order to have clean URL.
file .htaccess :
Code: Select all
# TagCloud
RewriteRule ^tag/(.*)/$ index.php?&mact=Search,m99,dosearch,0&m99returnid=&m99searchinput=$1 [L
in function build_tagcloud($parameters, $array_rows) near the end of function where line looks like
Code: Select all
$tag_array[$walk_counter] = '<a href="index.php?&mact=Search%2Cm99%2Cdosearch%2C0&m99'.
'returnid='.$parameters[returnid].'&m99searchinput='.$row["word"] . '" style="font-size:'. $fontsize.
'px;line-height:'. $fontsize.'px;'. $parameters[array_css][$arraypos].'" title="'.$parsed_link_title.'">' .
$row["word"] . '</a>';
Code: Select all
$tag_array[$walk_counter] = '<a href="/tag/'.$row["word"].'/" style="font-size:'.
$fontsize.'px;line-height:'. $fontsize.'px;'. $parameters[array_css][$arraypos].'" title="'.$parsed_link_title.'">' .
$row["word"] . '</a>';