|
03-12-2004, 04:27 PM | #1 |
Green Mole
Join Date: Mar 2004
Posts: 2
|
Help for a newbie
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. |
03-13-2004, 04:58 AM | #2 |
Green Mole
Join Date: Mar 2004
Location: France
Posts: 2
|
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. |
03-13-2004, 07:12 AM | #3 |
Green Mole
Join Date: Mar 2004
Posts: 2
|
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 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Newbie | bheyse | Troubleshooting | 4 | 01-12-2006 11:36 AM |
Newbie | fatpublisher | The Mole Hole | 1 | 10-06-2004 06:56 PM |
A newbie question | z_newbie | Coding & Tutorials | 2 | 06-14-2004 11:55 AM |
Session Newbie | tanbou1 | Coding & Tutorials | 1 | 04-13-2004 02:06 PM |