Hacking the Textpattern Comments Form

I like the automated aspect of the Textpattern comments form, except for how darn big the Message textarea is. Unfortunately, this is not something that can be remedied via CSS, since the form size is specified in the style attribute of the textarea itself, which trumps any styles declared further up the food chain. It is easy enough to fix, however.

Hack that Form

Open up textile/publish/comment.php in your Textpattern installation directory, and head for line 183, which should look like

$textarea = '<textarea name="message" cols="1" rows="1" style="width:300px;height:250px" tabindex="4">'.htmlspecialchars($message).'</textarea>';

I changed the height attribute to a shorter 100px, and it looks much less intrusive.

Syndicate content

Twitter

  • It's about time http://flic.kr/p/8GcTE9 3 years 40 weeks ago
  • Don't use twitter much any more, ayuh. 3 years 41 weeks ago
  • Lazyweb: Does there exist a #drupal module for selectively disabling CCK fields without deleting them? Perhaps field permissions... 3 years 41 weeks ago
  • New post: Old Joe (Minstrel Banjo) http://tinyurl.com/3yyg8g9 3 years 45 weeks ago
  • New post: Emacs Org-mode: Custom agenda that filters by date AND tag http://tinyurl.com/2vnrcl2 3 years 45 weeks ago

Older

Contact

Andy Chase
(978) 297-6402
andychase [at] gmail.com
GPG/PGP Public Key