Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Mon Jan 17, 2022 4:19 pm


Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
 
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation code
Confirmation code:
In an effort to prevent automatic submissions, we require that you enter both of the words displayed into the text field underneath.
     

Topic review - Squirrelmail: increase the size of compose textarea - How to
Author Message
Post subject: Squirrelmail: increase the size of compose textarea - How to  |  Post Posted: Fri Sep 04, 2009 4:53 am
By default, squirrelmail's compose page contains a small textarea to write the body of your email. Here is how to increase it's height or size (number of columns):

First, open the src/compose.php file with your favourite editor and search for textarea:

Code:
    if ($compose_new_win == '1') {
        echo '   <tr >' . "\n" .
            '      <td bgcolor="' . $color[0] . '" colspan="2" align="center">' . "\n" .
            '         <textarea name="body" id="body" rows="' . (int)$editor_height .
            '" cols="' . (int)$editor_size . '" wrap="virtual"' . $onfocus . '>';
    }
    else {
        echo '   <tr >' . "\n" .
            '      <td bgcolor="' . $color[4] . '" colspan="2">' . "\n" .
            '         &nbsp;&nbsp;<textarea name="body" id="body" rows="' . (int)$editor_height .
            '" cols="' . (int)$editor_size . '" wrap="virtual"' . $onfocus . '>';
    }


The height (rows attribute of textarea html tag) and size (cols attribute of the textarea html tag) are given by two parameters: $editor_height and $editor_size.

Now, we open thee include/load_prefs.php file and search for these two lines (usually row 144 and 145 inside the file):
Code:
$editor_size = getPref($data_dir, $username, 'editor_size', 150 );
$editor_height = getPref($data_dir, $username, 'editor_height', 20 );

You can now edit the last fields inside the getPref function and change (in my case) 150 and 20 with your preference. Then save and re-open the compose page in Squirrelmail.

Make sure not to set them too high.
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO