![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||||||
|
||||||||||||
|
Solution for atmail custom logout with demo
Okay, I finished a demo of a potential demo for using a custom login page for your clients to access @mail and then when they return to go back to the custom login page instead of the default index.pl
It all runs from 2 javascripts. One would be placed on the resellers custom page, the other iwould be located in index.pl of @mail. This solution uses javascript and sets a cookie in the browser window when the custom page is loaded. The nonpersistent cookie is also available to webmail.yourdomain.com/index.pl and is used during logout by webmail.yourdomain.com/index.pl to change the location back to the custom login url stored in the cookie. Below is a link to the demo. I will leave it up for a couple of days so you cab check it out, test, and until you and Matrix decide if it would help. I did not do any formatting in the pages that pretend to be the custom login, default login or atmail popup window. Since this is about custom pages doing formatting makes no sense and I'm just tired. http://www.mydevtech.com/inc_atmaildemo.htm While the scripts are tagged asp, they could just as easily have been tagged php or pl. I did not use any asp specific code. The first time I did it I has the custom login in asp and the default index demp in php on unix but the ftping between 2 different windows and unix accounts during debugging became annoying. So I switched to 2 diffrent domains on windows for easier ftping. Just let me know if this is what everyone was talking about. |
|
#2
|
||||||||||||
|
||||||||||||
|
The best way to test this is to copy the link and paste it in a completely new browser window rather than having a window popped up by the forum link
if you use the forum link in the post above to pop up and want to test both versions, you must test the default version first, then click the post link again and do the custom solution. http://www.mydevtech.com/inc_atmaildemo.htm |
|
#3
|
||||||||||||
|
||||||||||||
|
Kathleen that is great! Works fine for me.
David |
|
#4
|
||||
|
||||
|
looks good to me. Brad and crew, any change of matrix setting it up for us?
also gadgetgal what happends if a user doesnt want to use this method (i didnt actually go and have a look at the javascript). i asume they would see what is currently displayed with the @mail details |
|
#5
|
|||||||||||
|
|||||||||||
|
gadgetgal, you mentioned an ASP page on @mail, is there actually any asp function? as it would not work, i just want to see that I understand this all properly.
|
|
#6
|
|||||||||||
|
|||||||||||
|
nevermind, you say on there that is is not php,asp or anything dependent, except of course client side JS
|
|
#7
|
||||||||||||
|
||||||||||||
|
it goes back to your custom login screen if the cookie is set. if you don't want to use it then simple don't set the cookie in your custom login page.
if you want to default to the cookie but want to give users an option you could always add a javascript function that checks a field you have on your custom login page for this that is triggered on submit to see if the field is filled and if it is filled it would erase the cookie. I did not add this customization because the idea was to come up with a simple method to let resellers that have made custom login pages for themselves or their users to have the user land their after logoff. All a reseller has to do is paste in a snippet now and in one update the snippet with the domain name they use. There are several customizations you could do to the script on the reseller custom login. For instance if we get to do this, I will add a function on my custom login page that sets additional non persistent cookies onlogin submit for browser, server, mail type, mail server domain so that it is repopulated automatically on logout. But thatis a personal customization feature and not part of a simple generic standard. |
|
#8
|
||||||||||||
|
||||||||||||
|
Brad, what do you think of it ? (If you did not decide yet to add the code)
In my opinion it looks fine and it works. (thanks to gadgetgal)
__________________
Thank You Javier Advertising Websites |
|
#9
|
|||||||||||
|
|||||||||||
|
looks nice
great stuff. In the scripts I've been playing with I've left the mailserver input out as its going to be the same as the email domain address in my case as well. |
|
#10
|
||||||||||||
|
||||||||||||
|
its pretty obvious, but....
Go, go, gadgetgal go!!! (I congratulate you on your EXCELLENT contribution.... hopefully one day i too will be cluey enough to actually do something useful as well) ![]() murray |
|
#11
|
||||||||||||
|
||||||||||||
|
Matrix,
Haven't heard if you are interested in this solution to the default logout after a custom login problem. Can you let me know, so I know whether to take down the demo of the logout solution? http://www.mydevtech.com/inc_atmaildemo.htm |
|
#12
|
||||||||||||
|
||||||||||||
|
I think this modifications can be done by the @mail staff,
Am I wrong?
__________________
Thank You Javier Advertising Websites |
|
#13
|
||||||||||||
|
||||||||||||
|
one piece of the code gets installed on the @mail defaiult page. Once that is done then there is apiece of code that you must insert in your custom login page that sets the correct information needed. So they make one change and then anyone that has set up a custom login page inserts the code into their page.
|
|
#14
|
||||||||||||
|
||||||||||||
|
gadgetgal, I did understood that since the beginning,
What I am saying now, is that is very possible that is not matrix to insert the code but the @mail staff. I dont know the exact location of the @mail software, maybe admin can respond to this.
__________________
Thank You Javier Advertising Websites |
|
#15
|
||||||||||||
|
||||||||||||
|
my question is do you hope that @mail will udate their product to persist your custom variable to redirect to your custom login page?
Remember, if using the advanced interface it's not such a big deal because the logout button never refreshes, but if using the simple interface, the page is refreshed on every action. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make a custom login page for atmail for our clients? | dipu | Chit Chat Public | 2 | 06-29-2003 11:46 AM |