![]() |
Problem whith inclute in template SSI blocks
Hi
Sorry my english. I have truble with include in template SSI-blocks. Link http://www.windowsfaq.ru/search/ What not work SSI? |
Hi. The search page is PHP, not SHTML, so SSI is not working. To get your includes into the template do the following.
First add the following function to the top of the search_function.php file: PHP Code:
PHP Code:
PHP Code:
Code:
<!--#include virtual="../../incl/header.html" --> Code:
<phpdig:my_page_header/> Also, you are using Cyrillic. Did you do as shown in this thread, or how did you add Cyrillic support? |
Great Tnx
http://www.windowsfaq.ru/smiles/bounce.gif http://www.windowsfaq.ru/search/ [code] $phpdig_language = "ru"; define('PHPDIG_ENCODING','windows-1251'); $phpdig_string_subst['windows-1251'] = 'A:ÀÁÂÃÄÅ,a:*áâãäå,O:ÒÓÔÕÖØ,o:òóôõöø,E:ÈÉÊË,e: éêë,C:Ç,c:ç,I:ÌÍÎÏ,i:ì*îï,U:ÙÚÛÜ,u:ùúûü,Y:Ý,y:ÿý,N :Ñ,n:ñ'; $phpdig_words_chars['windows-1251'] = '[:alnum:]ðþß'; |
Hi. Does $phpdig_string_subst get all of these from C0 to FF?
Code:
Windows-1251 Characters (note A0 is a space): |
Hi. A search for избежать gives no results. Try doing the following instead.
In the config.php file set the following: PHP Code:
In the phpdigIndexFile function replace: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Also, you will need to reindex for the changes to take effect. |
Respect, all ok. Search èçáåæ*òü - 2 result.
Small bug. From admin panel press Delete site. All table empty, except keywords. Why? |
Hi. Click the Clean Dictionary link, or empty the table from phpMyAdmin or shell. The latter may be faster.
|
Hi. Now I search for избежать and get two results. Did you use the following code and make the other changes?
PHP Code:
|
Hi. I have made all corrections specified in message 1504. After that all works perfectly. Cyrillics everywhere is displayed and processed correctly.
One more small bug :) After installation it is necessary in the table logs manually to create a field l_time (first letter L). Type of the data - TIME. If it to not make, the statistics in the admin-panel does not work. Happy New Year :) |
P.S. After modification in a code, specified in the message 1504, it is necessary to re-index.
|
Hi. Great, glad it's working!
The l_time bug was fixed in version 1.6.3. Of course, if anyone created the tables prior to that, then they would need to do the following: Code:
ALTER TABLE logs ADD l_time FLOAT DEFAULT '0' NOT NULL; >> Also, you will need to reindex for the changes to take effect. Already there. ;) Can you tell me what version of MySQL you are running and what is your MySQL character set? |
Please note it's FLOAT and not TIME.
Ops! :) Tnx, fixed. version of MySQL you are running and what is your MySQL character set? 4.0.16 and ru-win1251 |
All times are GMT -8. The time now is 10:11 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.