Roundcube Community Forum

 

How can I do the following?

Started by kaswistry, November 26, 2010, 07:59:47 AM

Previous topic - Next topic

kaswistry

First, I'd like to say that this is one of a great program and I'm really glad I installed it with the least problems.

I would like to customize certain features of it though and I would like to ask your help please.



Looking at the picture above:

1) How can I remove the server field and AUTOMATICALLY add a constant value for that one? Hence, users should just see username and password and the server value would be automatically added.

2)My server requires that I login with [username]
  • [domain.com]. Hence, my usernames should look like user+domain.com and dummy+domain.com. I would like my users to just put their usernames, usr and dummy, without adding +domain.com - this should be added automatically.

Any ideas guys?

Thanks for the help in advance

:)

d00s7w

hi you need to find the main.inc.php file and make sure that the following line appears:

$rcmail_config['username_domain'] = '';

make sure it is blank, then the server box should not appear.

kaswistry

Hello and thanks for the reply.

yes, I do need it to be invisible but I also need to provide the server value. I was thinking of adding the field with the value and just hiding the form :)

Any ideas for this one?

2)My server requires that I login with [username]
  • [domain.com]. Hence, my usernames should look like user+domain.com and dummy+domain.com. I would like my users to just put their usernames, usr and dummy, without adding +domain.com - this should be added automatically.

d00s7w

try playing with the line:

$rcmail_config['default_host'] = '';

if you put your host in there, and use just for username instead of @

(i am not too experienced, but i went through something similar a while back, so sorry if it doesn't work, maybe other people can help you better?)

kaswistry

Actually, I already tried that. I added +domain.com because my host requires that username[+domain.com]. I think its not working because the software automatically adds the @ symbol. If I could just manage to edit the software to NOT add @ symbol or replace @symbol with +, it would fix everything :D

kaswistry

Just a quick update,

I have managed to remove the server field already. I just have to figure out a way to automatically append [+domain.com] to whatever username my users have typed. any ideas? :)

alec

There's no such option in Roundcube, but you can write a plugin which will replace @ with +.