icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » Reseller Hosting » Webmail Login On Html Page how do i do it?

Reseller Hosting Questions about your reseller hosting account.

Closed Thread
 
LinkBack Thread Tools Search this Thread
Old July 29th, 2003, 9:46 PM   #1 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2003
Lives in Philly PA
53 posts
Gave thanks: 0
Thanked 0 times
alright, i know that going to www.mydomain.net/webmail will take my staff to webmail so they can login, but i want to know if i would be able to put something on the main page for them to use to login, just two text inputs, a username and password then submit and they are to the page they get to after going through the login that www.mydomain.net/webmail takes them to, anybody know how i can do it and what the code would be to make it work, i would appreciate any help you can give me.
HooT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 29th, 2003, 10:54 PM   #2 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
There is one way that I know of, let me write the code real quick.
__________________
Profession: Programmer, Gamer, Web Developer
Website: http://www.reanimated.net/ - Server: Quela
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 30th, 2003, 12:09 AM   #3 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2003
Lives in Philly PA
53 posts
Gave thanks: 0
Thanked 0 times
alright, thankyou, and i guess you can just insert the code here with that code tag...
HooT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 30th, 2003, 2:10 AM   #4 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
Sorry for the late reply, ran into a few problems but managed to fix them throught google; if you need help setting this up or anything then let me know. You just have to change the value of strSite to the webmail address of your choice, change boolNewWin value to true if you want the webmail to open in a new window or leave it false to open in the current window, and modify the HTML to match your template and look the way you want it:

Code:
<script language = "JavaScript">
 // Change strSite value to your sites webmail address, you can use:
 // www.yourdomain.com/webmail/ or www.yourdomain.com:2095/
 var strSite = "www.reanimated.net/webmail/"

 // Determine whether to open webmail in a new window or the
 // current window. Set value to true to open in new window.
 var boolNewWin = false;


 // Nothing below this line needs to be changed in the JavaScript!!!


 function Login() {
  strUsername = Encode(document.webmail.username.value);
  strPassword = Encode(document.webmail.password.value);

  if (boolNewWin) {
   strTarget = "_blank";
  } else {
   strTarget = "_self";
  }

  window.open('http://' + strUsername + ':' + strPassword + '@' + strSite, strTarget);
 } 

 function Encode(strHTML) {
  EncodedHTML = escape(strHTML);
  EncodedHTML = EncodedHTML.replace(/@/g,"%40");
  EncodedHTML = EncodedHTML.replace(/\//g,"%2F");
  EncodedHTML = EncodedHTML.replace(/&/g,"%26");
  EncodedHTML = EncodedHTML.replace(/=/g,"%3D");
  EncodedHTML = EncodedHTML.replace(/\?/g,"%3F");

  return EncodedHTML;
 }
</script>

<form name="webmail">
 E-Mail: <input type="text" name="username"><br>
 Password: <input type="password" name="password"><br>
</form>

<input type="submit" value="Login" onClick="Login()">
__________________
Profession: Programmer, Gamer, Web Developer
Website: http://www.reanimated.net/ - Server: Quela
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old July 30th, 2003, 3:28 AM   #5 (permalink)
Registered User
Seasoned Poster
 
Joined in Jul 2003
Lives in Philly PA
53 posts
Gave thanks: 0
Thanked 0 times
thanks, no worries about how long it took, i was really tied up anyway, so it worked out just fine... thanks again, if i do have problems i will contact you about it... some day i will know how to do this stuff, but for now i just know html, a tiny amount of javascript and the enough php to install forum hacks (but you dont have to know any php for that lol) so thank you very much.
HooT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 5th, 2003, 5:16 PM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
9 posts
Gave thanks: 0
Thanked 0 times
Thanks a BUNCH for that code!! It works GREAT and you can add "/horde/index.php" at the end to force the login to go directly into Horde!! That is AWESOME!!

www.yourdomain.com:2095/horde/index.php

Now...one question. How can I change the colors of Horde or Neo to match the black & red theme of my website?
Gino is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 5th, 2003, 6:17 PM   #7 (permalink)
Registered User
Comfy Contributor
 
OmicroN's Avatar
 
Joined in May 2003
Lives in Florida
118 posts
Gave thanks: 0
Thanked 0 times
Groovy, thanks for sharing. I don't think you can change the skin...
__________________
Profession: Programmer, Gamer, Web Developer
Website: http://www.reanimated.net/ - Server: Quela
OmicroN is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 18th, 2003, 6:03 AM   #8 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2003
2 posts
Gave thanks: 0
Thanked 0 times
Hi,

Thanks a lot for this great code...

Now is it supposed to go to the horde login screen where I confirm my login...... or am I doing something wrong and should it take me directly to the emails...

Thanks,

Frans
Oetje is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Old August 25th, 2003, 3:59 AM   #9 (permalink)
Registered User
Seasoned Poster
 
Monika's Avatar
 
Joined in Jun 2003
Lives in Bay Area, Cali.
35 posts
Gave thanks: 0
Thanked 0 times
when i go to http://www.phatbitch.net.net/webmail it doesn't work for me. i didnt even know you could do this. anyhoo what do i do? :ask:
Monika is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On