Author Topic: Personalise Roundcube login page + redirect on logout  (Read 349 times)

Offline itmonitor

  • Jr. Member
  • **
  • Posts: 18
Personalise Roundcube login page + redirect on logout
« on: April 15, 2019, 06:50:13 AM »
Hi!

I want to customize the Roundcube login page and Roundcube webmail user dashboard with a Company logo. Also, Roundcube should redirect to a website home page on logout. The login page and dashboard customization must be made in a way that it will not be disconfigured by Roundcube updates in the future. Roundcube is runing on a CWP Panel.

Any advice is welcome! :-)

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,491
    • http://SKaero.com/
Re: Personalise Roundcube login page + redirect on logout
« Reply #1 on: April 16, 2019, 02:12:42 AM »
You can set the logo in the <RC root>/config/config.inc.php
Code: [Select]
// replace Roundcube logo with this image
// specify an URL relative to the document root of this Roundcube installation
// an array can be used to specify different logos for specific template files
// '*' for default logo
// ':favicon' for favicon
// ':print' for logo on all print templates (e.g. messageprint, contactprint)
// ':small' for small screen logo in Elastic
// different logos can be specified for different skins by prefixing the skin name to the array key
// config applied in order: <skin>:<template>, <skin>:*, <template>, *
// for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png", "elastic:*" => "/images/logo.png")
$config['skin_logo'] = null;

You can use the logout_redirect plugin https://plugins.roundcube.net/packages/marneu/logout_redirect to redirect to another page when the user logs out.

Offline itmonitor

  • Jr. Member
  • **
  • Posts: 18
Re: Personalise Roundcube login page + redirect on logout
« Reply #2 on: April 16, 2019, 03:30:39 AM »
@skaero, thank you very much!  :) I forgot to post I need also the change the Roundcube login page logo and the login webpage colours. Any idea where to do these changes in the code?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,491
    • http://SKaero.com/
Re: Personalise Roundcube login page + redirect on logout
« Reply #3 on: April 16, 2019, 10:30:25 AM »
If you want to change the skin colors your need to change the css. I'd recommend extending the base theme https://github.com/roundcube/roundcubemail/wiki/Skins#extending-skins so it wont be overwritten during upgrades.