Roundcube Community Forum

 

New File Added: MVISION v2.2 - Horizontal / Vertical Layout

Started by youds, January 24, 2009, 01:25:56 PM

Previous topic - Next topic

youds

Downloads: A new file has been added by  youds:

MVISION v2.2 - Horizontal / Vertical Layout

User layout changes now stored in cookies!

MVISION v2 allowed the user to switch between Horizontal or Vertical layout, but the default choice had to be made by the administrator. Now, MVISION v2.2 stores layout changes on the users computer and remembers the choice made between page visits.

Additional Features

    * Horizontal / Vertical Layout choice now stored in cookie
    * Refresh the page and the last used layout will be displayed
    * User can log out then log back in and the choice will be remembered


No changes required to installation and configuration - see INSTALL file in the download
Tested with roundcubemail-0.2-stable.tar.gz in IE6/7/8 F1/2 Opera and Safari (WebKit)
See http://www.roundcubethemes.net for more screenshots of the different layouts

Courtesy of http://www.youds.com

youds

Installing from command line
cd skins
wget http://www.roundcubethemes.net/downloads/mvision2.2.tar.gz
tar -zxf mvision2.2.tar.gz
vi ../config/main.inc.php
# make configuration file changes as directed below

Installing via FTP
Go to the "skins" directory in the RoundCube base path
Unzip the "mvision2-2.zip" file
Return back to the RoundCube base path
Go to the "config" directory and edit the "main.inc.php" file as directed below

Configuration file changes (main.inc.php)
  1) $rcmail_config['skin'] = 'mvision2_en';
   2) $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'attachment'); // remove "size" and "flag" (flag will still appear however)
   3) $rcmail_config['preview_pane'] = TRUE;
   4) Additional configuration line required; $rcmail_config['preview_pane_vertical'] = TRUE;


For Users with Microsoft Script Debugger
When changing between "Vertical" and "Horizontal" users will see an error message.
To correct this, alter file program/js/common.js to reflect changes below:
if(w>0){
width=w.toString().match(/\%$/)?w:w+"px";
}
if(h>0){
height=h.toString().match(/\%$/)?h:h+"px";
}
The original code would of appeared like:
if(w){
width=w.toString().match(/\%$/)?w:w+"px";
}
if(h){
height=h.toString().match(/\%$/)?h:h+"px";
}
You need to add >0 to the if(w) and if(h) lines

Good luck! :)

youds

To get the HTML editor working, you need to add the line seen below to program/js/editor.js
textAreaId='compose-body';After the lines (#65/66/67)
// switch html/plain mode
function rcmail_toggle_editor(ishtml, textAreaId, flagElement)
{

(roundcube0.2-stable)

PablitoCWB

#3
Hello,

I need this skin in pt_BR (brazilian portuguese)

I can help u translate the words to the portuguese if u need.

tks

:)

udi111

pressing backspace in quicksearch field deletes the message (ff3 winxp).
don't know if it is a skin or rc bug.

udi111


flyingeagle855

I don't get a message list when using this theme. The ajax loading icon keeps spinning and nothing. I get the list of folders and the top menu but no messages. I would really like to get this to work so if someone can tell me what I need to do that would be great.

youds


mugurels21

Quote from: flyingeagle855;16743I don't get a message list when using this theme. The ajax loading icon keeps spinning and nothing. I get the list of folders and the top menu but no messages. I would really like to get this to work so if someone can tell me what I need to do that would be great.

same here.. I put ver 2.1 and it's working..

aletarius

Yeah, it's doing the same thing for me. If you can tell me/us how to fix that it would be awesome.

tred

refreshing cache solving this problem IMHO

youds, can you give this theme with blank buttons for translating to Russian?

zer0

how come there is no "Mark as read/unread" option in this? can anyone make a patch please?

thanx

aletarius

yeah, I refresh my cache and then the view will be all squished together and then I try changing up the display between vertical and horizontal to fix it but then it happens again. Still a bit buggy. I'll wait until a patch to use this I suppose.

knuckles

Quote from: tred;16878refreshing cache solving this problem IMHO

youds, can you give this theme with blank buttons for translating to Russian?

It did not solve this here as well.  Apache has been restarted, tested in multiple browsers on the client side.  Running the latest SVN.

Also, a mark as read is necessary... otherwise, assuming the message list worked, this skin is perfect.

walkeral

Quote from: flyingeagle855;16743I don't get a message list when using this theme. The ajax loading icon keeps spinning and nothing. I get the list of folders and the top menu but no messages. I would really like to get this to work so if someone can tell me what I need to do that would be great.

I've found that this problem only occurs when horizontal mode is set as the default in the Roundcube main.inc.php file. Ensure that this line is present (as per the installation instructions):

$rcmail_config['preview_pane_vertical'] = TRUE;

That should get rid of the loading icon. When you log in, click "horizontal" at the bottom to switch modes. This is then stored as a cookie so it will remain the same when you log in subsequently. This brings me on to another bug I've found.

I am currently running Roundcube in a sub-directory underneath a Joomla installation. It works fine until the above cookie is set, then I keep getting error 500 whenever I try and access a Joomla-based page. It appears that the cookie name 'layout' is used by Joomla in some way. This occurred using Firefox 3.1b2 and IE7.

To fix it, I've renamed the cookie to roundcube_layout (see templates/mail.html, lines 96, 119, and 152). It might be worth putting this into the next release.

I've also found a slight layout issue in the folders list (see attached screenshot). A few tweaks to the widths in #folder-manager and the #subscription-table entries in settings.css should fix this.

Otherwise, it looks excellent.