Roundcube Community Forum

Release Support => Release Discussion => Topic started by: Phylum on November 27, 2009, 08:23:42 PM

Title: Automatic Server Field Population
Post by: Phylum on November 27, 2009, 08:23:42 PM
Howdy all

I'm trying to find a way to auto populate the server text box based on the email address the user typed into the user name field.  I can only think of two ways of doing this: some JS magic that fills in the field after moving from Username to the password, or eliminating the Server field altogether and have to POST the correct info after using some regex or a combination of regex, tokenizing and strstr() the domain from the Username.  I don't remember the code exactly, but I'm sure I can figure it out.  That isn't necessarily the purpose of my post.

My main issue is that I'm having a difficult time figuring out which file(s) I need to look at to edit the actual login screen.  Even if I had my potential code ready to go, I wouldn't even know where to begin inserting it.  So because I'm not quite at this guy's level (http://www.roundcubeforum.net/old-style-plug-ins/1924-custom-logos-welcome-text-based-domain-name.html), can anyone point me in the right direction?  Has this sort of thing been done?
Title: Automatic Server Field Population
Post by: JohnDoh on November 28, 2009, 05:16:29 AM
may be something like this http://www.roundcubeforum.net/api-based-plugins/5718-simple-multiple-domains-login.html is what you want.