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
/* article page output */
global $bodytext;
$htmlless = strip_tags($metatitle.",".$bodytext);
$search = array(
"/>/i",
"/</i",
"/&/i",
"/"/i",
"/'/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 "n";
}
else
{
echo "n";
}
echo "slogan']."">n";
echo "version']."">nnn";
echo "n";
// Fin - Hack référencement
Feel free to integrate it into the actual ref hack
[ Edited by Half-Dead on 2002/2/27 11:26:00 ]