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

FAQ
It is currently Wed Oct 04, 2023 9:46 pm


MTA, MUA, Qmail, Exchange, Exim, Postfix, Sendmail, Courier, Mirapoint, Vpopmail, pop3, smtp, imap

Author Message
LaR3
  Post  Post subject: Squirrelmail: increase the size of compose textarea - How to  |  Posted: Fri Sep 04, 2009 4:53 am

Joined: Mon Aug 03, 2009 4:55 pm
Posts: 19

Offline
 

Squirrelmail: increase the size of compose textarea - How to

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.

_________________
Humble user
http://www.ivorde.ro





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Squirrelmail: increase the size of compose textarea - How to"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Squirrelmail attachments error "Could not move/copy file. File not attached"

LaR3

0

3094

Tue Sep 01, 2009 3:32 pm

LaR3 View the latest post

There are no new unread posts for this topic. Postfix change message size limit

debuser

0

2157

Tue Aug 10, 2010 6:31 pm

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
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