Here i am again...
As you know i could not get case unsensitive working.
Now i did as follows:
I changed in viewtopic.php:
- Code: Alles auswählen
$quicklink_keyword[] = '#\b(' . $row['keyword'] . ')\s#';
$quicklink_lex_url[] = '<a href="lexicon.'.$phpEx.'?letter=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a> ';
$quicklink_keyword[] = '#\s(' . $row['keyword'] . ')\b#';
$quicklink_lex_url[] = ' <a href="lexicon.'.$phpEx.'?letter=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a>';
INTO:
- Code: Alles auswählen
$quicklink_keyword[] = '#\b(' . $row['keyword'] . ')\s#i';
$quicklink_lex_url[] = '<a href="lexicon.'.$phpEx.'?letter=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a> ';
$quicklink_keyword[] = '#\s(' . $row['keyword'] . ')\b#i';
$quicklink_lex_url[] = ' <a href="lexicon.'.$phpEx.'?letter=' . $row['keyword'] . '" class="crosslink" alt="'.$lang['to_Lexicon'].'" title="'.$lang['to_Lexicon'].'">' . $row['keyword'] . '</a>';
Now all words, regardless if the have uppercase or lowercase letters in them will be linked.
But now following problem (for me that is):
All words in viewtopic are now replaced with the word that is in the lexicon.
So when someone puts a word somewhere in there post that begins with a uppercase letter and in the lexicon it is put in in lowercase, it will be replaced by the lexiconword $row['keyword'].
Is there a way to not replace the word but still be linked?