I installed this module so I could fix something the searchmodule outputs. But for example can't I fix this string, its to long.

t('<ul>
<li>Check if your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually: <em>"blue smurf"</em> will match less than <em>blue smurf</em>.</li>
<li>Consider loosening your query with <em>OR</em>: <em>blue smurf</em> will match less than <em>blue OR smurf</em>.</li>
</ul>');

Comments

robloach’s picture

Version: 5.x-1.3 » 5.x-1.x-dev

Hmmm, how could we fix this in the user interface?

scottrigby’s picture

subscribe. Thanks

anders.fajerson’s picture

Status: Active » Needs review
StatusFileSize
new79 bytes
new1.45 KB

Here is a quick fix, it replaces the textfilelds with textareas, but tries to keep them relatively small, to not clobber up the interface.

To make the interface more edit friendly some JavaSript interaction is probably neaded, like edit-in-place kind of functionality. But this fixes a real problem in the meantime and users will hopefully realise that a text editor is a better option when editing long strings.

The CSS is deliberately not cached.

robloach’s picture

Title: multirow and longer input fields » Multirow and longer input fields
Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

http://drupal.org/cvs?commit=103750

I did a couple of things to it:

  1. Changed the CSS to make the original and replacement columns take up 50% of the table width
  2. Made the textareas take up 100% width though the CSS
  3. Made the textareas height a bit shorter (1.7em)
  4. Made the textareas resizeable so that you can make the area larger if you wanted to

Very nicely done. Thanks a lot!

robloach’s picture

Assigned: Unassigned » robloach
Status: Patch (to be ported) » Fixed

It's in the Drupal 6 branch now. Thanks a lot for the help on this!

anders.fajerson’s picture

I quickly tested with % but only got it to work in Firefox. Perfect. The textareas looks great as well, agree that the resizeable bar is more useful then disturbing.

robloach’s picture

What browser did the % for the textareas cause you trouble? I shamelessly only tested in Firefox and IE7.

anders.fajerson’s picture

That was my point (although not that clear), in my tests you version works fine in Safari 3 and Opera 9 as well. So great work :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.