Discussion:
Customize roundcube
Paul Bronson
2016-04-11 23:16:53 UTC
Permalink
Hi guys,

I have a shared kolab install and I want to do some branding based on the
domain in the interface.

I think there should be an easy way to do that by grabbing and parsing the
username in the line:

<span class="username"><roundcube:object name="username" /></span>

Then do a check with the line:

<roundcube:object name="logo" src="/images/roundcube_logo.png" id="toplogo"
alt="Logo" onclick="if(window.rcmail)rcmail.command('switch-task','mail')"
/>


Anyone have an idea on this?
Paul Bronson
2016-04-12 22:49:34 UTC
Permalink
Anyone have any ideas?
Post by Paul Bronson
Hi guys,
I have a shared kolab install and I want to do some branding based on the
domain in the interface.
I think there should be an easy way to do that by grabbing and parsing the
<span class="username"><roundcube:object name="username" /></span>
<roundcube:object name="logo" src="/images/roundcube_logo.png"
id="toplogo" alt="Logo"
onclick="if(window.rcmail)rcmail.command('switch-task','mail')" />
Anyone have an idea on this?
Timotheus Pokorra
2016-04-13 07:54:15 UTC
Permalink
Hello Paul,
Post by Paul Bronson
I have a shared kolab install and I want to do some branding based on the
domain in the interface.
I guess this is more a Roundcube specific question.
I found this on the web:

http://www.roundcubeforum.net/index.php?topic=15305.0

I think this idea mentioned there to use the config file makes most sense:

if (strpos($_SESSION['username'], '@domain1.tld'))
$rcmail_config['skin_logo'] = 'path/to/logo/file1';
else if (strpos($_SESSION['username'], '@domain2.tld'))
$rcmail_config['skin_logo'] = 'path/to/logo/file2';

I have not tried it though.

all the best,
Timotheus
Paul Bronson
2017-02-02 03:39:34 UTC
Permalink
I tried this, it didn't work :(

Paul
Post by Timotheus Pokorra
Hello Paul,
Post by Paul Bronson
I have a shared kolab install and I want to do some branding based on the
domain in the interface.
I guess this is more a Roundcube specific question.
http://www.roundcubeforum.net/index.php?topic=15305.0
$rcmail_config['skin_logo'] = 'path/to/logo/file1';
$rcmail_config['skin_logo'] = 'path/to/logo/file2';
I have not tried it though.
all the best,
Timotheus
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Daniel Hoffend
2017-02-05 22:04:04 UTC
Permalink
Hi

You can't do this by using php code in the config.php cause the session
isn't
initialized at this point.

It looks like you've to create a minimal plugin which then can hook into
various things using plugin hooks to activate stuff after the session
has been
initialized or the user has just logged in.

--
Daniel
Post by Paul Bronson
I tried this, it didn't work :(
Paul
Post by Timotheus Pokorra
Hello Paul,
Post by Paul Bronson
I have a shared kolab install and I want to do some branding based on the
domain in the interface.
I guess this is more a Roundcube specific question.
http://www.roundcubeforum.net/index.php?topic=15305.0
$rcmail_config['skin_logo'] = 'path/to/logo/file1';
$rcmail_config['skin_logo'] = 'path/to/logo/file2';
I have not tried it though.
all the best,
Timotheus
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Paul Bronson
2017-03-13 04:20:23 UTC
Permalink
How do I do that? I've never made a plugin...


Paul
Hi
You can't do this by using php code in the config.php cause the session isn't
initialized at this point.
It looks like you've to create a minimal plugin which then can hook into
various things using plugin hooks to activate stuff after the session has been
initialized or the user has just logged in.
--
Daniel
Post by Paul Bronson
I tried this, it didn't work :(
Paul
Post by Timotheus Pokorra
Post by Timotheus Pokorra
Hello Paul,
I have a shared kolab install and I want to do some branding based on the
domain in the interface.
I guess this is more a Roundcube specific question.
http://www.roundcubeforum.net/index.php?topic=15305.0
$rcmail_config['skin_logo'] = 'path/to/logo/file1';
$rcmail_config['skin_logo'] = 'path/to/logo/file2';
I have not tried it though.
all the best,
Timotheus
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
_______________________________________________
users mailing list
https://lists.kolab.org/mailman/listinfo/users
Loading...