Author Topic: Config for logo, pagetitle & footer  (Read 4079 times)

Offline JohnMaster

  • Newbie
  • *
  • Posts: 8
Config for logo, pagetitle & footer
« on: December 26, 2016, 03:24:07 AM »
I've been trying to change the config for the logo, pagetitle & footer.

Changing the setting for the logo in defaults.inc.php:

$config['skin_logo'] = null;
to
$config['skin_logo'] = ("*" => "/images/roundcube_logo.png");

The logo doesn't change (theme set to larry). Tested loading the login page.

I have to replace the roundcube_logo.png file in both the skins directories for both classic and larry.

Changing the product name in defaults.inc.php doesn't change what is on the login page.

$config['product_name'] = 'Roundcube Webmail';

Can anyone please provide me some guidance on how to change the pagetitle and login footer?

Roundcube Version 1.2.3
Apache version 2.4.18
Ubuntu Linux 16.04.1

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,638
Re: Config for logo, pagetitle & footer
« Reply #1 on: December 26, 2016, 05:34:52 AM »
do not change the values in defaults.inc.php you need to change/add them to config.inc.php
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline JohnMaster

  • Newbie
  • *
  • Posts: 8
Re: Config for logo, pagetitle & footer
« Reply #2 on: December 26, 2016, 08:33:10 PM »
Thanks for the assist. I was able to change the product_name value by adding it to config.inc.php.

I tested adding the logo line but it didn't change the logo. That's fine as I can replace the image files.

Is there a way of editing the pagetitle more so it doesn't show the Welcome message?

Currently, it shows "ProductTest :: Welcome to ProductTest".

As I didn't want to edit the localization files, I tried editing rcmail_output_json but haven't figure it out yet. I tried removing after $name but it didn't change the site.

localization:
Code: [Select]
$labels['welcome']   = 'Welcome to $product';
json:
Code: [Select]
$this->command('set_pagetitle', empty($name) ? $title : $name . ' :: ' . $title);

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,638
Re: Config for logo, pagetitle & footer
« Reply #3 on: December 27, 2016, 11:04:48 AM »
you can probably do that via a plugin or by creating a custom skin. I think this is the point in the code where it is normally set but editing the core code is the worst option https://github.com/roundcube/roundcubemail/blob/master/program/include/rcmail_output_html.php#L208
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline JohnMaster

  • Newbie
  • *
  • Posts: 8
Re: Config for logo, pagetitle & footer
« Reply #4 on: December 27, 2016, 05:32:40 PM »
Ok, thanks. I'll give it a go.

Offline maniekandan5

  • Newbie
  • *
  • Posts: 4
Re: Config for logo, pagetitle & footer
« Reply #5 on: November 16, 2021, 04:09:44 AM »
To change the roundcube webmail login page attributes via custom config file..

Actually roundcube is very flexible to change many things. All the attributes are in the main config file to play over. Here the idea we provide is not to go and change anything on the original config file, but we adding our custom webmail config file together with the original. So,in future if there is any updates, we simply just include this custom file again – That’s it..!

ref: https://vvcares.com/2/how-to-change-roundcube-webmail-title-change-logo-change-header-change-footer/