Author Topic: Config for logo, pagetitle & footer  (Read 1016 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: 1,941
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: Sieverules, 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: 1,941
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: Sieverules, 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.