The current skins for RoundCube require each there own settings in the configuration file main.inc.php. However this file is used by all skins.
How can you apply a configuration settings for a specific skin, without interfering with a setting for another skin?
Hi Julius,
You`d might get a better response to your question through the developers mailing lists (RoundCube Mailing Lists (http://lists.roundcube.net/dev/) or users mailing list
[email protected]).
The devs don`t seem to visit this forum very often :).
- Xyanide
There aren't any skin specific options in the main.inc.php file so I am a bit confused by your question
Quote from: dano;15269There aren't any skin specific options in the main.inc.php file so I am a bit confused by your question
I know that. That's why I asked this question. To help you a little:
For skin MVISION:
$rcmail_config['list_cols'] = array('subject', 'from', 'date');For skin GROUPVISE:
$rcmail_config['list_cols'] = array('flag', 'size', 'from', 'subject', 'date');Different settings for different skins. So I want to know, how I can apply these settings, so I can use both themes in one installation.
I've found a solution to this:
Modify the ./program/steps/mail/func.inc
Old:
function rcmail_js_message_list($a_headers, $insert_top=FALSE)
{
global $CONFIG, $IMAP, $OUTPUT;
$a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
New:
function rcmail_js_message_list($a_headers, $insert_top=FALSE)
{
global $CONFIG, $IMAP, $OUTPUT;
if (!strlen($_SESSION['columns']))
$a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
else
$a_show_cols = $_SESSION['list_columns'];
Old:
// define list of cols to be displayed
$a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
$a_sort_cols = array('subject', 'date', 'from', 'to', 'size');
New:
// define list of cols to be displayed
if (!strlen($attrib['columns']))
$a_show_cols = is_array($CONFIG['list_cols']) ? $CONFIG['list_cols'] : array('subject');
else
$a_show_cols = explode(',', $attrib['columns']);
$_SESSION['list_columns'] = $a_show_cols;
$a_sort_cols = array('subject', 'date', 'from', 'to', 'size');
With these modifications, you can provide columns in the mail.html:
<roundcube:object name=messages"
id="messagelist"
cellspacing="0"
summary="Message list"
[B][COLOR="Red]columns="flag,size,from,subject,date"[/COLOR][/B]
messageIcon="/images/icons/dot.png"
unreadIcon="/images/icons/unread.png"
deletedIcon="/images/icons/deleted.png"
repliedIcon="/images/icons/replied.png"
forwardedIcon="/images/icons/forwarded.png"
forwardedrepliedIcon="/images/icons/forwarded_replied.png"
attachmentIcon="/images/icons/attachment.png"
flaggedIcon="/images/icons/flagged.png"
unflaggedIcon="/images/icons/unflagged.png" />
</div>