Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Listings Manager (Realty Manager & Auto Manager):
custom Log-In area

 

 


bcause
Novice

Mar 29, 2003, 12:18 PM

Post #1 of 10 (2447 views)
Shortcut
custom Log-In area Can't Post

Hello....

first I must say that as a new buyer of Realty Manager I do love it......... On the site I am building I wish to have a small form with a User/Password field so that my client may just log in from the index page or from any page of the site they are on. Is there a way for me to do this ??? I apologize if this has been covered but I did look first.

if u look here at my test page you will see the area i mean...

http://www.aboveboardrealestate.com/new_ab/rm/homepages/



Thank you


Benjamin
Staff


Mar 29, 2003, 1:56 PM

Post #2 of 10 (2441 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

Hi bcause,

Yes, this is perfectly do-able. What you'd have to do is write a little javascript to pass in the values inputted through the form directly into the rm.cgi script, like this:

rm.cgi?login=1&id=login&pw=password

I have a few other little javascript projects to do for other people first, but once I get those out of the way, I could certainly put together a little script for you if you want. Post me back! :-)
Ben
interactivetools.com


bcause
Novice

Mar 29, 2003, 2:12 PM

Post #3 of 10 (2438 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

"Yes, this is perfectly do-able. What you'd have to do is write a little javascript to pass in the values inputted through the form directly into the rm.cgi script, like this:"

Ben... thanks for the reply. I assure u, "perfectly do-able" and "all I have to do" is 2 totally diff things. I would very much like your help. I am surprised that this has not come up before since it seems to me to be a very nice feature to offer the client. client does not have to go to a certain page and can just log-in from anywhere. unless im missing something. i did just start with this and maybe I am getting ahead of myself.



Thanks again


Benjamin
Staff


Mar 29, 2003, 3:51 PM

Post #4 of 10 (2432 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

Hi bcause,

Actually, I was overcomplicating the whole thing! Silly of me. You can actually just do it through a simple web form, like this:


<form method="get" action="http://www.yourdomain.com/path/to/rm.cgi">

Name: <input type="textbox" size="10" name="id">
Password: <input type="textbox" size="10" name="pw">
<input type="hidden" name="login" value="1">

<input type="submit" value=" Login ">

</form>


And, well, that's it! (Rather an anticlimax...!)
Ben
interactivetools.com


bcause
Novice

Mar 29, 2003, 4:08 PM

Post #5 of 10 (2429 views)
Shortcut
Re: [Benjamin] custom Log-In area [In reply to] Can't Post

im going to give that a try........ im a little rusty but lets see what i can do. i really do appreciate the time you gave this. I will let u know how it worked out


bcause
Novice

Mar 29, 2003, 5:30 PM

Post #6 of 10 (2421 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

Ben... i do believe its working.... a little more tweaking and i think im set... the password is visible though so i just need to figure whats wrong there.



thanks again...... u can be sure i will be calling on u guys again soon


bcause
Novice

Mar 29, 2003, 5:38 PM

Post #7 of 10 (2420 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

ok...

replaced: Password: <input type="textbox" size="10" name="pw">

with: Password: <input type="password" size="10" name="pw">



im putting on a pot of coffeeCool


bcause
Novice

Mar 29, 2003, 5:53 PM

Post #8 of 10 (2418 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

Ben... seems to work great but now i have another ??? if u log in using a non valid user/pass. or none and just hits the send button, it still sends u to the login page ( but does not log u in of course) ? is ... is there any way so that if a visitor tries to login with a bad user/pass they will be redirected to a page of my choice.

or better yet... if user/pass is no good then page your on refreshes and user/pass is blank again

in any case i really do appreciate you getting me this far


Benjamin
Staff


Mar 30, 2003, 9:05 AM

Post #9 of 10 (2402 views)
Shortcut
Re: [bcause] custom Log-In area [In reply to] Can't Post

Hey bcause,

> <input type="password" size="10" name="pw">

Very good! I missed that one. :-)

Concerning redirecting anyone who enters an invalid username / password, this is a bit of a step up from the above. The above code blindly fires off the contents of the form into the rm.cgi script. Nothing more to it than that.

So besides some elaborate coding solutions, I figure there are two options:
1. hardcode all the usernames (but not passwords - bad idea!) into the page, so that if the username doesn't match an existing username, it automatically redirects the user to a page of your choice.

2. Edit the interface file (interface.dat.cgi) to automatically redirect the user whenever the username / password combination doesn't match.

The drawback to the first is that it doesn't ward against mistyped passwords - and then there's the hassle of having to perpetually update that page for new user accounts.

The drawback to the second is that anyone who's logging in through your original RM interface and who happens to mistype something will be redirected to your page. Also, any future upgrades to RM (like 2.29 currently in Beta release) will overwrite those changes you made to your interface file.

Post me back!
Ben
interactivetools.com

(This post was edited by Benjamin on Mar 30, 2003, 9:06 AM)


bcause
Novice

Mar 30, 2003, 9:10 AM

Post #10 of 10 (2399 views)
Shortcut
Re: [Benjamin] custom Log-In area [In reply to] Can't Post

Hi Ben.........



thanks for the info.. I think what I will do is alter the login page ( if possible ) to include a statement of " if you were not meant to come here " or something of that nature, with a button link to send them back to the home page.


just keep it simple...........


(This post was edited by bcause on Mar 30, 2003, 9:11 AM)

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4