[drupal-support] Comment Subject Settings

Gerhard Killesreiter killesreiter at physik.uni-freiburg.de
Fri Jun 17 03:49:54 UTC 2005



On Fri, 17 Jun 2005, Paul wrote:

>  I am using drupal on a multi-language site, which supports english and
> malayalam. The language malayalam is a multibyte language.

Could you provide your translation of Drupal to Mayalam to the Drupal
community?

> So the
> default settings for limiting the length of a subject line is too short
> for languages other than english. My question is;

The field length of the commet subject field is 64 chars atm. That would
make 32 chars for a double-byte langauge which is indeed shart.

> How can I change the length of comment subject line?

The length of th esubject line is defined in the comment table:

  subject varchar(64) NOT NULL default '',

You can use phpmyqdmin or the mysql commandline to change this to
something higher. Maximum is 255.

You will maybe also need to increase the number of chars you can put
into the forms. Look for form_textfield in comment.module.

> Is it a good
> practice? What is the effect of this when i want to do an upgrade.

The database should be unaffected, you probably need to make the changes
to the form fields again.

> I am running drupal 4.5.1.

You should upgrade to 4.5.3.

Cheers,
	Gerhard




More information about the drupal-support mailing list