View Full Version : Help for a newbie
Arnaud
03-12-2004, 03:27 PM
Hi
This is my little problem:
PhpDig works fine but when the result is displayed, the word that I searched is followed by \3
Exemple: I look for the word apple
The result is : bla bla bla bla bla apple\3 bla bla bla bla
So my question is : How can I delete this \3
Thanks in advance and sorry for my very bad english.:)
yapuka
03-13-2004, 03:58 AM
Hi,
From your name, I guess you're trying to show results in French?
I had the same problem, but when I changed the value of $phpdig_language in includes/config.php, it corrected itself.
Hope this helps.
Arnaud
03-13-2004, 06:12 AM
Hi Yapuka
Thanks for your answer. You're right, I tried to show results in French.
But unfortunetly, your tip doesn't seem to work.
I tried $phpdig_language ="en" and $phpdig_language ="fr" (and other languages) but it doesn't change anything.
But you gave me an idea:
I opened libs/phpdig_functions in line 148:
$string = @eregi_replace($ereg,"\\1<^#_>\\2</_#^>\\3",@eregi_replace($ereg,"\\1<^#_>\\2</_#^>\\3",$string));
and I replace with:
$string = @eregi_replace($ereg,"\\1<^#_>\\2</_#^>\\3",@eregi_replace($ereg,"\\1<^#_>\\2</_#^>",$string));
Now the result of the search appeared without \3 at the end of the word, and PhpDig works fine althought this change.
As I don't understand PHP, I don't know if this change is critical, so don't imitate me :p :p :D
vBulletin® v3.7.3, Copyright ©2000-2024, Jelsoft Enterprises Ltd.