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

Home: Products: Listings Manager Add-ons:
Guest Log in

 

 


Teambldr
User

Mar 9, 2003, 9:22 PM

Post #1 of 13 (7461 views)
Shortcut
Guest Log in Can't Post

Hi,

Is there a way of creating a guest log in where they can publish a listing but not have access to the homepage editor? As well, what about making these guest listings "pending approval" to prevent misuse?



Thanks!
Brian


Joey
User

Mar 10, 2003, 11:05 AM

Post #2 of 13 (7443 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Hi there is a signup.cgi made for auto manager and realty manager where users can create a username and password and add as many listings as you let them.

And there is also a way to not include the hompage editor button but this takes some careful editing of the inerface.dat.cgi file.
I think luke has the signup.cgi perhaps he will post it here...and Scott of vettetrader.net has modified his user interface to not include homepages maybe he will impart you with that knowledge.

To see if this sign up is what you would like
go to http://www.used-carlots.com/am/exec/signup.cgi

you can also create a custom login box and make the user active..you can also prepopulate the username and password fields so all the user has to do is click go and it will let them post listings...I have this set up on my site as a "Test-Drive" you can see it here:
http://used-carlots.com/testdrive.htm
right at the top of the page...

Let me know if this helps or if you need more info.

joey Stubblefield
http://www.Used-CarLots.com

Joey Stubblefield
http://Used-CarLots.com
Powered By Auto Manager!

http://1000Cars.com
Powered By Auto Manager!

http://MeetingStreetMotors.com
Powered By Used-CarLots.com Via Auto Manager!


Benjamin
Staff


Mar 11, 2003, 11:29 AM

Post #3 of 13 (7418 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Thanks for your post, Joey.

Here's that add-on script, it contains instructions on how to install it in a readme.txt file. Like Joey suggests, modifying the templates to remove the link to the homepages may be the way to go.
Ben
interactivetools.com
Attachments: signup.cgi (33.0 KB)


Teambldr
User

Mar 12, 2003, 8:25 AM

Post #4 of 13 (7396 views)
Shortcut
Re: [Benjamin] Guest Log in [In reply to] Can't Post

Thanks Ben and Joey.



I will check it out.
Brian


Benjamin
Staff


Mar 12, 2003, 10:48 AM

Post #5 of 13 (7387 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Sorry Brian -

I only posted the .cgi - here's the full zip containing instructions & the two templates you'll need.
Ben
interactivetools.com
Attachments: rm-signup.zip (11.3 KB)


Teambldr
User

Jul 22, 2003, 10:29 AM

Post #6 of 13 (7275 views)
Shortcut
Re: [Benjamin] Guest Log in [In reply to] Can't Post

Hi ben,

Is it possible to pull the username from another source rather than asking them to create a new one here?

Lets say that they are logged in and in a users area of another program. I can add their username to carry over in the url to the signup.cgi link. But can I take it from there and insert it in as the username?


edit: I am aware that passing a username through the url is not always a safe idea. In this case though, I think it will be ok as the signup cannot be completed until they add a Name and password.


Thanks in advance,
Brian

(This post was edited by Teambldr on Jul 22, 2003, 1:03 PM)


Benjamin
Staff


Jul 22, 2003, 5:02 PM

Post #7 of 13 (7263 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Hey Brian,

Yes, this would work fine. All you need to do is send the same information to the signup.cgi script that the form is currently sending (full name, login name and password). Since you'll have that information in the user's area of the other program, what you'd need to do is cram all the information into a form and used javascript to submit it. That way you could set method="post" and hide the password from viewing in the URL. It might take some nifty javascript to do it all automatically, but it's certainly do-able.

Alternatively, an easier way would just be to send all the info in a query string - the script will work with both GET and POST, so you'll be fine :-)
Ben
interactivetools.com


Teambldr
User

Jul 22, 2003, 5:18 PM

Post #8 of 13 (7261 views)
Shortcut
Re: [Benjamin] Guest Log in [In reply to] Can't Post

Thanks Ben!



What would the link look like in the user section to carry it over best and what do I have to change in the form to grab the username alone from the url? I dont mind if they use a different name or have a seperate password for the RM section though. So that is why I think I might try the URL method first.

I was thinking something like ?XXXXXXX=<%Username%> but what should the XXXXXX be to allow the form to grab it?

In the form I am totally blank. Or does this need to be done in the signup.cgi?

Anyway, I know I can get it to come over in the url, I just get lost from there....

Thanks again,
Brian


Benjamin
Staff


Jul 22, 2003, 5:25 PM

Post #9 of 13 (7259 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

The URL method's probably a good place to start. What you'd need to do is piece together a query string of this form

http://www.yoursite.com/path/to/signup.cgi?name=one&login_id=two&login_pw=three&homepage_filename=&save_user=Signup&notes=This+user+was+created+by+signup.cgi

That will correctly send the information to the signup script and create the user account. (just replace 'one', 'two' and 'three' with the values of the Full name, login name and password respectively).

Any help?
Ben
interactivetools.com


Teambldr
User

Jul 22, 2003, 5:46 PM

Post #10 of 13 (7256 views)
Shortcut
Re: [Benjamin] Guest Log in [In reply to] Can't Post

wow.....that was easy...

But what about the issue of someone grabbing it from the outside and doing not so nice things with the link?

If I use a partial, will it fill just that field alone and let them finish it at the form?



thanks,
Brian


Benjamin
Staff


Jul 23, 2003, 9:10 AM

Post #11 of 13 (7241 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Do you mean, how would you grab that info and either cram it into a link which they can click, or a separate 'signup' button? Either of those would take a bit of javascript - and that would really require knowing about what form the information exists in the user pages.

And unfortunately, just filling in parts of that information wouldn't really do... all three pieces of information are required for the script to work.
Ben
interactivetools.com


Teambldr
User

Jul 23, 2003, 2:27 PM

Post #12 of 13 (7238 views)
Shortcut
Re: [Benjamin] Guest Log in [In reply to] Can't Post

Hi Ben,

I do understand that the form needs to be completed to work. What my concern was that someone would get ahold of the full link and create havoc on the site. So if I can just pull the username from the members section (where they are coming from) and place it into the username box on the signup form (where they land after pressing the link) it would allow them the ability to finish the form by inserting their name and a password.

By doing this I stop potential misuse of the system I believe.

So I can add the ?login_id=<%Username%> to the url and it pulls it over fine. But I need to take it from the url and plug it into the form on the signup page as a next step. Is this something I can ask the form to do or is this one of the situations where a javascript is needed to grab the username from the url?

Thanks,
Brian


Benjamin
Staff


Jul 23, 2003, 4:24 PM

Post #13 of 13 (7232 views)
Shortcut
Re: [Teambldr] Guest Log in [In reply to] Can't Post

Hey Brian,

Sure. You'll need a little javascript to read the incoming query string value and insert it into the input box. The following isn't exactly the best bit of code ever written, but it should work okay. I tested it here, and it works fine.

First: open up your _signup.html template, and add this in between your <head> and </head tags:

<script>
function getQueryValue(varName) {
var queryString = window.location.search.substring(1);
var valuePairs = queryString.split("&");
for (i=0; i<valuePairs.length; i++) {
var pair = valuePairs.split("=");
if (pair[0] == varName) {
return pair[1];
}
}
}
</script>


Next, change the login name table row to this:

<tr>
<td><font size=2 face="ms sans serif">Login Name</font></td>
<script>
if (getQueryValue('login_id')) {
document.write("<td><input type=text name='login_id' value='"
+ getQueryValue('login_id') + "' size=30></td>");
}
else {
document.write("<td><input type=text name='login_id' value='$login_id_he$' size=30></td>");
}
</script>
</tr>


And that should do it.

Note: there will be problems if the login name contains a single quote.


Ben
interactivetools.com

(This post was edited by Benjamin on Jul 23, 2003, 4:25 PM)

 
 
 


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