![]() |
Hi all!
I use vBulletin as regional forum in Czech language. Because many users are lazy and write without diacritic marks I'll have to modify search engine, so that it would not use diacritics for searching. Because I don't know how to explain it here is example: string in post#1: Digitální váha string in post#2: digitalni vaha I would like to both posts show when I write to search field: "digitalni" or "digitální". Please help me! Thank you for any ideas on how to do it. |
use regular expressions to replace them with their generic letter.
|
I must admit that I don't understand you. I thought that I need to hack search.php. You recommend replacement vars in admin control panel?
Sorry, but I misunderstood you. |
Tohle uz me taky napadlo. Ale jak na to... :)
|
I meant PHP's regular expressions not vBulletin's replacement variables.
Look at: http://vbulletin.com/forum/showthread.php?threadid=7205 |
OK. I understand what reg. exp. are.
I checked search.php and found string "combinedwords". So what I have to do is check this string for reg. exp. But the search is processed by MySQL, not vB php script. database is combined from posts with diacritics and without diacritics. I don't want to leave diacritics out forever. |
Any help from Development team? I really need this feature.
|
Because nobody wants to help I've just researched vB 1.x php code and find my own way to do it.
I want to ask any expert or vB developer if I'm on the right track. I haven't tried it but I think it should work: I will be replacing letters with: Code:
str_replace("?","a",$string); misc.php [Building index part] Code:
-------- Code:
-------- Code:
HERE |
All times are GMT. The time now is 06:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|