SMF Dynamic Meta Tags
So you need Dynamic Meta Description and Keywords In Your SMF Forum? Hoping To Boost Your Google Ranks? Here’s How.
- Open Your Index.Template.php
- Find This Line
1
global $context, $settings, $options, $scripturl, $txt, $modSettings;
- Add This In After It:
1 2 3 4 5 6 7 8 | $stop_words= array("I "," a "," about "," an "," are "," as "," at "," be ", " by "," com "," de "," en "," for "," from "," how ","How "," in "," is", " it "," la "," of "," on "," or ","Or "," that "," the ","The "," this ", " to "," was "," what "," when "," where "," who ","Who "," will "," with ", " und "," the "," www ","!",".","?","=","-"); $keywords_ = str_replace($stop_words," ",$context['page_title']); $keywords_ = preg_replace ( "/\s\s+/" , " " , $keywords_); $keywords_ = str_replace(" ",", ",trim($keywords_)); |
- Find And Replace Your Current Meta Tag key Words And Replace The Line With This:
<meta name=”keywords” content=”‘.$keywords_.’” />
And BANG! … Your Done
One Response to “SMF Dynamic Meta Tags”
Leave a Reply

amko_sa on May 31st, 2010
How to do this on smf 2.
Thanks