Thursday, 20 January 2011

Search Terms Tagging Plugin Modification

Search Terms Tagging Plugin Modification. Search Terms Tagging or called STT2 is a plugin that so powerfull to catch keyword from search engine and converting it to a tags or linked to articles or search page
By default this plugin is have many functions that so powerfull but did you know that with  a litle modification we can make this plugin more functionally as what we want.

Bellow are some example of search terms tagging 2 plugin modification
Change the Permalink structure :
the default of STT2 permalink in URL is : your domain.com/search/key+key+key….. we can change the + become – with find this code bellow.
$title = preg_replace(‘/\s+/’, ‘+’, $title);//
$title = preg_replace(‘|-+|’, ‘+’, $title);//
$title = trim($title, ‘+’);//
change into :
$title = preg_replace(‘/\s+/’, ‘-’, $title);// tanda  ‘+’ become  ‘-’
$title = preg_replace(‘|-+|’, ‘-’, $title);// tanda  ‘+’ become  ‘-’
$title = trim($title, ‘-’);// tanda  ‘+’ become  ‘-’

well try it and good luck

1 Responses to “Search Terms Tagging Plugin Modification”

Unknown said...
9 October 2013 at 00:31

Hi,Tag extensions that are used in this web application development language, are straightforward and spotless in form of Web Design Cochin. Furthermore, the web application development language permits Java tag library developers to incorporate simple tag handlers, which is rather ridiculous in case of other web application programming languages.Thanks....


Post a Comment

All Rights Reserved web design | Blogger Template by Bloggermint
best web design tutorial