[RCU] Skin specific configuration

A.L.E.C alec at alec.pl
Wed Nov 19 13:44:24 CET 2008


Kees de Keizer (RC) wrote:
> // 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
>   eval( '$a_show_cols = array('. $attrib['columns'] .');' );
>
>   

Don't use eval for that, just use columns list comma(or space)-separated 
and use explode() on it.

> I'll get what I want. However, only for the first displayed mailbox.
> When I switch mailboxes, the settings in my skin are overruled by those
> in the main config. Does the javascript use another function to show
> the messagelist?
>   

yes, rcmail_js_message_list(), you'll need to save columns in session

-- 
Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252
LAN Management System Developer http://lms.org.pl
Roundcube Webmail Project Developer http://roundcube.net
_______________________________________________
List info: http://lists.roundcube.net/users/



More information about the users mailing list