Error in SPIP Forum

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran

Hi,

I think it’s a bug :
you should create a ticket for it :
(http://trac.rezo.net/trac/spip/newticket)

– You must log in / register : http://trac.rezo.net/spip_login.php3?url=/trac/spip/

.Gilles

On Wed, Apr 8, 2009 at 8:27 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,
I have disabled plugin No Spam (http://plugins.spip.net/NOSPAM) and it is working now. But Spams are big problem.
Kamran

From: Gilles VINCENT gilles.vincent@gmail.com
To: kamran Mir Hazar editor@kabulpress.org
Cc: spip-en spip-en spip-en@rezo.net
Sent: Wednesday, April 8, 2009 11:29:47 PM
Subject: Re: [Spip-en] Error in SPIP Forum

Hi,

I think it’s a bug :
you should create a ticket for it :
(http://trac.rezo.net/trac/spip/newticket)

– You must log in / register : http://trac.rezo.net/spip_login.php3?url=/trac/spip/

.Gilles

On Wed, Apr 8, 2009 at 8:27 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,
the bug is due to this plugin, so you should report it to the liste spip-zone
(spip-zone@rezo.net)
You can subscribe to it here : listes.rezo.net/mailman/listinfo/spip-zone

.Gilles

On Wed, Apr 8, 2009 at 11:52 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi,
I have disabled plugin No Spam (http://plugins.spip.net/NOSPAM) and it is working now. But Spams are big problem.
Kamran

From: Gilles VINCENT <gilles.vincent@gmail.com>
To: kamran Mir Hazar <editor@kabulpress.org>
Cc: spip-en spip-en <spip-en@rezo.net>
Sent: Wednesday, April 8, 2009 11:29:47 PM
Subject: Re: [Spip-en] Error in SPIP Forum

Hi,

I think it’s a bug :
you should create a ticket for it :
(http://trac.rezo.net/trac/spip/newticket)

– You must log in / register : http://trac.rezo.net/spip_login.php3?url=/trac/spip/

.Gilles

On Wed, Apr 8, 2009 at 8:27 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hi,
I reported that but haven’t received back any answer.
Kamran


From: Gilles VINCENT gilles.vincent@gmail.com
To: kamran Mir Hazar editor@kabulpress.org
Cc: spip-en spip-en spip-en@rezo.net
Sent: Thursday, April 9, 2009 12:14:49 AM
Subject: Re: [Spip-en] Error in SPIP Forum

Hi,
the bug is due to this plugin, so you should report it to the liste spip-zone
(spip-zone@rezo.net)
You can subscribe to it here : listes.rezo.net/mailman/listinfo/spip-zone

.Gilles

On Wed, Apr 8, 2009 at 11:52 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi,
I have disabled plugin No Spam (http://plugins.spip.net/NOSPAM) and it is working now. But Spams are big problem.
Kamran

From: Gilles VINCENT <gilles.vincent@gmail.com>
To: kamran Mir Hazar <editor@kabulpress.org>
Cc: spip-en spip-en <spip-en@rezo.net>
Sent: Wednesday, April 8, 2009 11:29:47 PM
Subject: Re: [Spip-en] Error in SPIP Forum

Hi,

I think it’s a bug :
you should create a ticket for it :
(http://trac.rezo.net/trac/spip/newticket)

– You must log in / register : http://trac.rezo.net/spip_login.php3?url=/trac/spip/

.Gilles

On Wed, Apr 8, 2009 at 8:27 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

On Fri, Apr 10, 2009 at 5:26 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi,
I reported that but haven’t received back any answer.
Kamran

Yep, this is normal since your message didn’t precise that it works better when you disable the plugin NOSPAM.
I’ve just added this.
Hope it’ll generate more interest.

.Gilles


From: Gilles VINCENT <gilles.vincent@gmail.com>
To: kamran Mir Hazar <editor@kabulpress.org>
Cc: spip-en spip-en <spip-en@rezo.net>

Sent: Thursday, April 9, 2009 12:14:49 AM

Subject: Re: [Spip-en] Error in SPIP Forum

Hi,
the bug is due to this plugin, so you should report it to the liste spip-zone
(spip-zone@rezo.net)
You can subscribe to it here : listes.rezo.net/mailman/listinfo/spip-zone

.Gilles

On Wed, Apr 8, 2009 at 11:52 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hi,
I have disabled plugin No Spam (http://plugins.spip.net/NOSPAM) and it is working now. But Spams are big problem.
Kamran

From: Gilles VINCENT <gilles.vincent@gmail.com>
To: kamran Mir Hazar <editor@kabulpress.org>
Cc: spip-en spip-en <spip-en@rezo.net>
Sent: Wednesday, April 8, 2009 11:29:47 PM
Subject: Re: [Spip-en] Error in SPIP Forum

Hi,

I think it’s a bug :
you should create a ticket for it :
(http://trac.rezo.net/trac/spip/newticket)

– You must log in / register : http://trac.rezo.net/spip_login.php3?url=/trac/spip/

.Gilles

On Wed, Apr 8, 2009 at 8:27 PM, kamran Mir Hazar <kamran_mirhazar@yahoo.com> wrote:

Hello,

Warning! Your message needs to be at least ten characters in length

I give above error even when I post a Farsi message with more than 10 characters and even a paragraph with more than 50. I do not give any error when I post a message with English characters.

Farsi is a right to left language like Arabic with many same characters.

I use SPIP 2.0.6 [13835].

Is there anyone who can help me to fix it?

Regards

Kamran


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello Kamran,

can you try and change the following line (line 53) in
plugins/nospam/nospam_pipelines.php:
      $texte = trim(preg_replace(',[\W]+,ims',' ',$texte));
to
      $texte = trim(preg_replace(',[\W]+,uims',' ',$texte));

(small u means "utf8").

If it works then it means that NOSPAM eliminates lots of spam because
they are written in non-european languages. Which would be a bad
heuristic...

On Wed, Apr 8, 2009 at 11:52 PM, kamran Mir Hazar
<kamran_mirhazar@yahoo.com> wrote:

Hi,
I have disabled plugin No Spam (NoSPAM - Plugins SPIP) and it is
working now. But Spams are big problem.

Hello,
Thank you for your good answer.
I have changed that line and tested. It is working now.
When I post a message with less than ten English characters I give this:
Warning! Your message needs to be at least ten characters in length.
It is normal but it also accepts massage with 5 Farsi characters.
Lots of spams that I had in Forum were in Chinese characters.
I’m not sure if this plugin can stop all. Because last time when I was installed that, there were some spams, with lots of users and active links. Chinese spams were texts ad active links.
Of course having NO SPAM plugin is much better that not having it.
Thank you again.
Kamran


From: Fil fil@rezo.net
To: kamran Mir Hazar editor@kabulpress.org
Cc: spip-en spip-en spip-en@rezo.net
Sent: Friday, April 10, 2009 10:38:08 PM
Subject: Re: [Spip-en] Error in SPIP Forum

Hello Kamran,

can you try and change the following line (line 53) in
plugins/nospam/nospam_pipelines.php:
$texte = trim(preg_replace(‹ ,[\W]+,ims ›,’ ‹ ,$texte));
to
$texte = trim(preg_replace( ›,[\W]+,uims’,’ ',$texte));

(small u means « utf8 »).

If it works then it means that NOSPAM eliminates lots of spam because
they are written in non-european languages. Which would be a bad
heuristic…

On Wed, Apr 8, 2009 at 11:52 PM, kamran Mir Hazar
<kamran_mirhazar@yahoo.com> wrote:

Hi,
I have disabled plugin No Spam (http://plugins.spip.net/NOSPAM) and and) it is
working now. But Spams are big problem.


spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en

Hello,
The main language of my website is Farsi but there is one English section with some English subsections. I have created a petition in English language under English section. The language of the article is English same as its section. But People give Farsi message when they click submit bottom, asking to confirm the signature. The email that they receive also is Farsi and just the title of the article is English. Instructions are in Farsi.
How do I turn it to English and people give message and receive email only in English?
Thank you
Kamran