von AmigaLink » 29. Jan 2006 01:49

Sorry
Find:
- Code: Alles auswählen
{
$crosslink_word[] = '#\b(' . $row['keyword'] . ')\s#';
$crosslink_url[] = '<a href="lexicon.'.$phpEx.'?'.LEXICON_KEY_URL.'=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a> ';
$crosslink_word[] = '#\s(' . $row['keyword'] . ')\b#';
$crosslink_url[] = ' <a href="lexicon.'.$phpEx.'?'.LEXICON_KEY_URL.'=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a>';
}
Replace with:
- Code: Alles auswählen
{
$crosslink_word[] = '#\b(' . $row['keyword'] . ')\s#i';
$crosslink_url[] = '<a href="lexicon.'.$phpEx.'?'.LEXICON_KEY_URL.'=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a> ';
$crosslink_word[] = '#\s(' . $row['keyword'] . ')\b#i';
$crosslink_url[] = ' <a href="lexicon.'.$phpEx.'?'.LEXICON_KEY_URL.'=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a>';
}
If you use the cache-version you must do the same in the includes/functions_cache.php and delete the includes/def_lexicon.php to regenerate the cache.
The disadvantage is that the word in the posting will automatically represented exactly like it in the lexicon!
And it exists no differend between words which will be acronyms like Mod and MOD. If you have Mod and MOD in your lexicon (eg. like here an AmigaLink.de) it will only linked to the first of this two entrys.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.