PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 03-12-2004, 03:27 PM   #1
Arnaud
Green Mole
 
Join Date: Mar 2004
Posts: 2
Question 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.
Arnaud is offline   Reply With Quote
Old 03-13-2004, 03:58 AM   #2
yapuka
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.
yapuka is offline   Reply With Quote
Old 03-13-2004, 06:12 AM   #3
Arnaud
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
Arnaud is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie bheyse Troubleshooting 4 01-12-2006 10:36 AM
Newbie fatpublisher The Mole Hole 1 10-06-2004 05:56 PM
A newbie question z_newbie Coding & Tutorials 2 06-14-2004 10:55 AM
Session Newbie tanbou1 Coding & Tutorials 1 04-13-2004 01:06 PM


All times are GMT -8. The time now is 07:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.