The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
adding new letters to memberlist.php
hi.
I am trying to enable search by my own language letters in the http://www.s-maof.com/Forum/memberlist.php . so i added this code to memberlist.php at line 504 The thing is that my letters are in hebrew. The code seems to have problems with that PHP Code:
the thing is the code in line 350 PHP Code:
The advanced serach in my language works. I just don't know how does it do it..! |
#2
|
|||
|
|||
This is stab in the dark, but try this (for the first few lines):
Code:
for ($i=1488; $i < 1514; $i++) { $currentletter = '&#' . intval($i) . ';'; |
#3
|
|||
|
|||
Hi kh99,
Thanks for the replay. As I said, the letters are displayed properly, but still there is the SQL Query problem in, more specific in line 350 which looks for the letter wrongly I have echoed what it gets for one of the letters PHP Code:
PHP Code:
PHP Code:
|
#4
|
|||
|
|||
I realize that you were getting the letters displayed correctly. I don't know a whole lot about using different char encodings but it seems like the code you have is using extended ascii values which aren't always the same (your display changes didn't display hebrew characters when I tried it on my test server, but the code I posted above does). So my thought was that maybe if you instead used html entities for those characters then the search code might work. But like I said, it was just a guess.
|
#5
|
|||
|
|||
thanks kh99,
I figured it out. I figured that I just have to look where is the advanced search's condition is (because there, it works), and there was the solution to the problem: instead of : PHP Code:
PHP Code:
check on that! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|