Hi there Vossi and the rest of the team, excellent add-on!
I have a situation. I needed the glossary to work in Greek, so I hacked vbglossar.php to generate the Greek Alphabet:
I found
Code:
// now do alpha-characters
for ($i = 65; $i < 91; $i++)
{
$currentletter = chr($i);
$linkletter =& $currentletter;
$show['selectedletter'] = $ltr == $currentletter ? true : false;
eval('$glossarletterbits .= "' . fetch_template('vbglossar_letterbits') . '";');
}
and changed it to call the Greek characters. The problem here is that char 210 is not a valid Greek letter so I had to add some more code:
Code:
// now do alpha-characters
for ($i = 193; $i < 210; $i++)
{
$currentletter = chr($i);
$linkletter =& $currentletter;
$show['selectedletter'] = $ltr == $currentletter ? true : false;
eval('$glossarletterbits .= "' . fetch_template('vbglossar_letterbits') . '";');
}
for ($i2 = 211; $i2 < 218; $i2++)
{
$currentletter = chr($i2);
$linkletter =& $currentletter;
$show['selectedletter'] = $ltr == $currentletter ? true : false;
eval('$glossarletterbits .= "' . fetch_template('vbglossar_letterbits') . '";');
}
I've located the string $i in the script and I've duplicated it using $i2 wherever it appears. For example after the code:
Code:
for ($i = 0; $i < count($elist); $i++)
{
eval('$entryidstodelete .= "' . fetch_template('vbglossar_checkedentries') . '";');
}
I have added
Code:
for ($i2 = 0; $i2 < count($elist); $i2++)
{
eval('$entryidstodelete .= "' . fetch_template('vbglossar_checkedentries') . '";');
}
. The problem is that I have found in line 371 the following:
Code:
for ($i = 0; $i < sizeof($keywords); $i++)
and I'm not sure what to duplicate there. However, the Greek alphabet appears allright.
The result is that whenever I add a new entry I get the message:
Warning: htmlentities () [
function.htmlentities]: charset 'ISO-8859-7' not supported, assuming iso-8859-1 in
[path]/includes/class_dm_vbglossar_entry.php on line
314
The entry is being added though, but the alphabet sorting does not work properly.
I would really really really appreciate any help on my problem, as I have been waiting for such a splendid add-on for quite a while...