Roundcube: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Kategorie:Web]]
[[Category:Web]]
[[Kategorie:Mail]]
[[Category:Mail]]


==Automatic import carddav from Owncloud==
==Automatic import carddav from Owncloud==
Line 6: Line 6:


/etc/roundcube/config.inc.php:
/etc/roundcube/config.inc.php:
<source lang=php>
<syntaxhighlight lang=php>
...
...
<// List of active plugins (in plugins/ directory)
<// List of active plugins (in plugins/ directory)
Line 14: Line 14:
);
);
...
...
</source>
</syntaxhighlight>


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


/usr/share/roundcube/plugins/carddav/config.inc.php
/usr/share/roundcube/plugins/carddav/config.inc.php
<source lang=php>
<syntaxhighlight lang=php>
...
...
$prefs['OwnCloud-Contacts'] = array(
$prefs['OwnCloud-Contacts'] = array(
Line 42: Line 42:
         'hide' => false,
         'hide' => false,
);
);
</source>
</syntaxhighlight>
 
==Change CSS==
Enter the skin e.g. <i>elastic</i>.<br>
Put all changes into the <i>styles/_styles.less</i> (yes with underscore!).<br>
If changed or created run:
<SyntaxHighlight lang=bash>
# lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css
</SyntaxHighlight>
(Yes, without underscore ;-) )
 
On Ubuntu you can install lessc by running:
<SyntaxHighlight lang=bash>
# apt install node-less node-clean-css
</SyntaxHighlight>
 
 
 
 
===Hide the about button===
<SyntaxHighlight lang=css>
//
// Hide about
//
a.about[id^="rcmbtn"] {
  display: none;
  visibility: hidden;
  height : 0px;
  width : 0px;
  margin : 0px;
  padding : 0px;
  overflow : hidden;
}
</SyntaxHighlight>

Latest revision as of 16:21, 8 February 2024


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;
}