Roundcube

From Lolly's Wiki
(Redirected from Roundcube Config)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Automatic import carddav from Owncloud

Enable carddav:

/etc/roundcube/config.inc.php:

...
<// List of active plugins (in plugins/ directory)
$config['plugins'] = array(
'carddav',                   // <---- Enable carddav
'archive',
);
...

This imports automagically all Owncloud contacts from the addressbook "contacts" into roundcube carddav:

/usr/share/roundcube/plugins/carddav/config.inc.php

...
$prefs['OwnCloud-Contacts'] = array(
        // required attributes
        'name'         =>  'Cloud->contacts->',
        'username'     =>  '%u', 
        'password'     =>  '%p',
        'url'          =>  'https://$cloudserver/remote.php/carddav/addressbooks/%u/contacts/',

        // optional attributes
        'active'       =>  true,
        'readonly'     =>  false,
        'refresh_time' => '01:00:00',
        'preemptive_auth' => 1,

        // attributes that are fixed (i.e., not editable by the user) and
        // auto-updated for this preset
        'fixed'        =>  array('name', 'active', ),

        // hide this preset from CalDAV preferences section so users can't even
        // see it
        'hide' => false,
);

Change CSS

Enter the skin e.g. elastic.
Put all changes into the styles/_styles.less (yes with underscore!).
If changed or created run:

# lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css

(Yes, without underscore ;-) )

On Ubuntu you can install lessc by running:

# apt install node-less node-clean-css



Hide the about button

//
// Hide about
//
a.about[id^="rcmbtn"] {
  display: none;
  visibility: hidden;
  height : 0px;
  width : 0px;
  margin : 0px;
  padding : 0px;
  overflow : hidden;
}