• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Input Quick tip on branding Roundcube

Denis Gomes Franco

Regular Pleskian
I'd like to share a quick and dirty hack that I used to brand my customers' Roundcube interface (now that it is running on v1.4) with their own logos. It was a fun little project and they absolutely loved it. With this, the customer will see their own logo on the login page and on the top left corner of the webmail interface.
Roundcube kinda allows for per-domain configuration but I figured this type of customization could be done without this. Here's what I did:

1. Created a "branding" directory inside /usr/share/psa-roundcube/ (or wherever your Roundcube instance is installed)
2. Uploaded customers logos to that directory. Files should be in PNG format with a square aspect ratio, and their names should be the same as the subdomain where Roundcube runs, eg., if the access URL is "webmail.mysupercompany.com" the file should be named "webmail.mysupercompany.com.png". You can upload logos for all your domains to that directory.
3. Added the following lines to /usr/share/psa-roundcube/config/config.inc.php:

PHP:
$logo_cliente = $_SERVER['SERVER_NAME'] . '.png';
if (file_exists('./branding/' . $logo_cliente)) {
  $config['skin_logo'] = '../../branding/' . $logo_cliente;
  } else {
  $config['skin_logo'] = '../../branding/placeholder.png';
}

Note that the above code is referencing a placeholder.png file. You should also upload a placeholder logo under that name, as it will be used instead whenever there is no custom logo present for a domain, or when you don't want to brand a particular domain. This configuration will override the Elastic skin default logo, and I am using my company logo as a placeholder. But if you'd like to use the default Elastic skin logo then just delete that line and the ELSE condition right above it.

Hope that helps! For me it works just like a charm :)
 
Last edited:
I'd like to share a quick and dirty hack that I used to brand my customers' Roundcube interface (now that it is running on v1.4) with their own logos. It was a fun little project and they absolutely loved it. With this, the customer will see their own logo on the login page and on the top left corner of the webmail interface.
Roundcube kinda allows for per-domain configuration but I figured this type of customization could be done without this. Here's what I did:

1. Created a "branding" directory inside /usr/share/psa-roundcube/ (or wherever your Roundcube instance is installed)
2. Uploaded customers logos to that directory. Files should be in PNG format with a square aspect ratio, and their names should be the same as the subdomain where Roundcube runs, eg., if the access URL is "webmail.mysupercompany.com" the file should be named "webmail.mysupercompany.com.png". You can upload logos for all your domains to that directory.
3. Added the following lines to /usr/share/psa-roundcube/config/config.inc.php:

PHP:
$logo_cliente = $_SERVER['SERVER_NAME'] . '.png';
if (file_exists('./branding/' . $logo_cliente)) {
  $config['skin_logo'] = '../../branding/' . $logo_cliente;
  } else {
  $config['skin_logo'] = '../../branding/placeholder.png';
}

Note that the above code is referencing a placeholder.png file. You should also upload a placeholder logo under that name, as it will be used instead whenever there is no custom logo present for a domain, or when you don't want to brand a particular domain. This configuration will override the Elastic skin default logo, and I am using my company logo as a placeholder. But if you'd like to use the default Elastic skin logo then just delete that line and the ELSE condition right above it.

Hope that helps! For me it works just like a charm :)
Perfectly done with no erros. Great contribution!
 
Back
Top