Serendipity 1.4-beta1 released rollenc am Dienstag, 25. November 2008 um 06:28: Hello, can you make search available in the others languages? I speak Chinese. S9Y uses mysql fulltext for search, but it doesn't support Chinese. I changed the code to followed [about line 753, file include/functions_entries.inc.php, version s9y 1.3.1] : if(pregmatch("/^[\x80-\xff]+$/", $term)) { $cond['findpart'] = "((e.title LIKE ('%" . addslashes($term) . "%')) or (e.body LIKE ('%" . addslashes($term) . "%')) or (e.extended LIKE ('%" . addslashes($term) . "%')))"; } else { if (preg_match('@["\+\-\*~\(\)]+@', $term)) { $cond['find_part'] = "MATCH(title,body,extended) AGAINST('$term' IN BOOLEAN MODE)"; } else { $cond['find_part'] = "MATCH(title,body,extended) AGAINST('$term')"; } } It uses like-search. Slow is better than unavailable. Thanks. Garvin am Dienstag, 25. November 2008 um 10:20: I would really like to make the fulltext search available. However a patch like yours would break native german and french and other languages that use ASCII highbytes properly in ISO-8859-1 charset. There needs to be another way to detect non-supported languages by the MySQL fulltext search other than using a high-byte Char lookup. Regards, Garvin rollenc am Mittwoch, 26. November 2008 um 02:27: Thanks for this good work. I have upgraded to 1.4-beta1. It is OK. But with the upgrade, the "spam block" plugin's configure was replaced. Garvin am Mittwoch, 26. November 2008 um 10:17: Actually the only way that a configuration of a plugin would be reset/replaced is if you did not perform an Upgrade, but a new installation over an existing one. Regards, Garvin Manuel am Mittwoch, 26. November 2008 um 11:53: The new 1.4 beta version seems to work great! :) The only odd thing I noticed is an error message when you click on "Bearbeiten" below the quicksearch entry field (on the frontend): "Warning: Invalid argument supplied for foreach() in /path/to/my/s9y/installation/include/functionspluginsadmin.inc.php on line 378" The search plugin doesn't have any configuration options, so it would probably be best to completely remove the configuration link from the frontend. Thank you and best regards, Manuel Mandrake am Mittwoch, 26. November 2008 um 19:08: Great news about the HTMLarea upgrade, Xinha looks pretty neat.. Thanks a LOT! I'll upgrade a soon as posible.
rollenc am Dienstag, 25. November 2008 um 06:28: Hello, can you make search available in the others languages? I speak Chinese. S9Y uses mysql fulltext for search, but it doesn't support Chinese. I changed the code to followed [about line 753, file include/functions_entries.inc.php, version s9y 1.3.1] : if(pregmatch("/^[\x80-\xff]+$/", $term)) { $cond['findpart'] = "((e.title LIKE ('%" . addslashes($term) . "%')) or (e.body LIKE ('%" . addslashes($term) . "%')) or (e.extended LIKE ('%" . addslashes($term) . "%')))"; } else { if (preg_match('@["\+\-\*~\(\)]+@', $term)) { $cond['find_part'] = "MATCH(title,body,extended) AGAINST('$term' IN BOOLEAN MODE)"; } else { $cond['find_part'] = "MATCH(title,body,extended) AGAINST('$term')"; } } It uses like-search. Slow is better than unavailable. Thanks.
Garvin am Dienstag, 25. November 2008 um 10:20: I would really like to make the fulltext search available. However a patch like yours would break native german and french and other languages that use ASCII highbytes properly in ISO-8859-1 charset. There needs to be another way to detect non-supported languages by the MySQL fulltext search other than using a high-byte Char lookup. Regards, Garvin
rollenc am Mittwoch, 26. November 2008 um 02:27: Thanks for this good work. I have upgraded to 1.4-beta1. It is OK. But with the upgrade, the "spam block" plugin's configure was replaced.
Garvin am Mittwoch, 26. November 2008 um 10:17: Actually the only way that a configuration of a plugin would be reset/replaced is if you did not perform an Upgrade, but a new installation over an existing one. Regards, Garvin
Manuel am Mittwoch, 26. November 2008 um 11:53: The new 1.4 beta version seems to work great! :) The only odd thing I noticed is an error message when you click on "Bearbeiten" below the quicksearch entry field (on the frontend): "Warning: Invalid argument supplied for foreach() in /path/to/my/s9y/installation/include/functionspluginsadmin.inc.php on line 378" The search plugin doesn't have any configuration options, so it would probably be best to completely remove the configuration link from the frontend. Thank you and best regards, Manuel
Mandrake am Mittwoch, 26. November 2008 um 19:08: Great news about the HTMLarea upgrade, Xinha looks pretty neat.. Thanks a LOT! I'll upgrade a soon as posible.
rollenc am um :
Hello, can you make search available in the others languages?
I speak Chinese. S9Y uses mysql fulltext for search, but it doesn't support Chinese.
I changed the code to followed [about line 753, file include/functions_entries.inc.php, version s9y 1.3.1] :
if(pregmatch("/^[\x80-\xff]+$/", $term)) { $cond['findpart'] = "((e.title LIKE ('%" . addslashes($term) . "%')) or (e.body LIKE ('%" . addslashes($term) . "%')) or (e.extended LIKE ('%" . addslashes($term) . "%')))"; }
else
It uses like-search. Slow is better than unavailable.
Thanks.
Garvin am um :
I would really like to make the fulltext search available.
However a patch like yours would break native german and french and other languages that use ASCII highbytes properly in ISO-8859-1 charset.
There needs to be another way to detect non-supported languages by the MySQL fulltext search other than using a high-byte Char lookup.
Regards, Garvin
rollenc am um :
Thanks for this good work. I have upgraded to 1.4-beta1. It is OK.
But with the upgrade, the "spam block" plugin's configure was replaced.
Garvin am um :
Actually the only way that a configuration of a plugin would be reset/replaced is if you did not perform an Upgrade, but a new installation over an existing one.
Regards, Garvin
Manuel am um :
The new 1.4 beta version seems to work great! :)
The only odd thing I noticed is an error message when you click on "Bearbeiten" below the quicksearch entry field (on the frontend):
"Warning: Invalid argument supplied for foreach() in /path/to/my/s9y/installation/include/functionspluginsadmin.inc.php on line 378"
The search plugin doesn't have any configuration options, so it would probably be best to completely remove the configuration link from the frontend.
Thank you and best regards, Manuel
Mandrake am um :
Great news about the HTMLarea upgrade, Xinha looks pretty neat.. Thanks a LOT! I'll upgrade a soon as posible.