1
Liked the idea of the ref hack to make the article into keywords for the meta tags, but hated the way it actually made the keywords... so i hacked it at my turn
No more words with more than 3chars, no more html entities in the keywords, and most importantly: no keyword doubles... and all keywords are made uppercase 1st letter
le="color: #000000"><?php /* article page output */ global $bodytext; $htmlless = strip_tags($metatitle.",".$bodytext); $search = array( "/&gt;/i", "/&lt;/i", "/&amp;/i", "/&quot;/i", "/&#039;/i", "/[^-w']/i", "/s+/", "/ (.{1,3}),/i", "/(, )$/" ); $replace = array( ">", "<", "&", """, "'", " ", ", ", "", "" ); $metatags = preg_replace($search, $replace, $htmlless); $metatags = explode(", ",$metatags); $metatags = array_unique($metatags); $metatags = implode(", ",$metatags); echo "<meta http-equiv="keywords" content="".ucwords($metatags).""></meta>n"; } else { echo "<meta name="keywords" content="".$meta.""></meta>n"; } echo "<meta name="description" content="".$xoopsConfig['slogan'].""></meta>n"; echo "<meta name="generator" content="".$xoopsConfig['version'].""></meta>nnn"; echo "<meta http-equiv="Content-Type" content="text/html; charset="._CHARSET."" />n"; // Fin - Hack référencement
Feel free to integrate it into the actual ref hack

<small>[ Edited by Half-Dead on 2002/2/27 11:26:00 ]</small>