Author Topic: Automatic Server Field Population  (Read 2169 times)

Offline Phylum

  • Newbie
  • *
  • Posts: 1
Automatic Server Field Population
« 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, can anyone point me in the right direction?  Has this sort of thing been done?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,490
Automatic Server Field Population
« Reply #1 on: November 28, 2009, 05:16:29 AM »
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦