ich habe in meinem Forum die Lexicon Mod installiert.
Sodass jetzt, wenn man über ein Wort mit der Maus scrollt, das im Lexicon steht, eine kleine Beschreibung eingeblendet wird.
Zusätzlich möchte ich jedoch, dass ein Klick auf das Wort zu einem externen Wiki führt, was dieses Wort erklärt. Ist das irgendwie möglich? Was muss ich umcoden?
liebe Grüße
Toto
edit: ich vermute, dass ich hier etwas ändern muss?
Code: Alles auswählen
$firstspace = (!$config['allow_acronym_in_words'] || substr($row['acronym'], 0, 1) == ' ') ? '\b(': '[^\W_0-9]*(';
$lastspace = (!$config['allow_acronym_in_words'] || substr($row['acronym'], -1) == ' ') ? ')\b' : ')[^\W_0-9]*';
$acronyms['match'][] = $firstspace. preg_quote(trim($row['acronym'])). $lastspace;
$acronyms['replace'][strtolower(trim($row['acronym']))][1] = $row['long_desc'] ?
"<acronym class='id$row[term_id]' title='$row[term]: $row[description]'><b>" :
"<acronym title='$row[term]: $row[description]'>" ;
$acronyms['replace'][strtolower(trim($row['acronym']))][2] = $row['long_desc'] ?
"</b></acronym>" : "</acronym>" ;