Support Forums


Go Back   68 Classifieds Forums > Archives > Legacy Help & Support > v3.1 Modules & Modifications

 
LinkBack Thread Tools Display Modes
Old 11-09-2007, 12:28 AM   #1
Member
 
Join Date: Nov 2007
Location: Metro Detroit
Posts: 59
Rep Power: 9
LittleRascal is on a distinguished road
Default Extra User Fields in Registration signup "Pull Down Menus"

Hi, everybody, well this is my first officially post and probably many more to come, It seems like everybody is very helpful and I am hoping that somebody will be able to help me out.

I purchased the developer version of 68classifieds, and I would like to do a small modification to the extra fields were a user signs up at.

My question is how can I make 2 extra fields, drop down menus, along with predefined values in them.

For example, my first "Extra Field" that I will be utilizing will have a question like this.

Extra Field 1:
Are you a Individual Seller, Estate Sales Agent, Mediator, or Buyer?
"The pull down menu will have these 4 defined values "Seller, Estate Sales Agent, Mediator, or Buyer" that a person registering to choose from."

Extra Field 2:
Make my profile Anonymous: Yes or No:
"The pull down menu will have these 2 defined values "Yes or No" that a person registering to choose from. A "Buyer" can not have an Anonymous profile" only the seller.

Ok, here the second part of this if possible.. If sombody picks "Individual Seller, Estate Sale Agent, Mediator, or Buyer as well as Anonymous" I would like it to automatically go to the correct policy in the Manger Users Section that I defined in "User Groups" for that particular Group Policy. Ok, I think that made sense,

I think there will be a third part but I would like to see if anybody can help me on this first, Sorry I have no experience in .php, but I am trying!

Thanks!

v 3.1.10 Developer
Default Template

Last edited by LittleRascal; 11-09-2007 at 11:01 AM.
LittleRascal is offline   Reply With Quote
Old 11-09-2007, 10:07 AM   #2
Coder
 
Join Date: Mar 2006
Posts: 4,639
Rep Power: 112
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

For starters it would be helpfull for us to know what numeric version of the classifieds you are using and what template you are using. These details can have a dramatic impact and its recommended you edit your profile here on the forum and place that information in your signature. That way you wont have to spell it out every time.


This is just some rough info to get you pointed in the right direction, a omplete step by step is something I dont personally have time for.

Log into your 68C admin and goto "user registration fields", set the names for the fields and check the boxes to have them displayed.

For creating dropdowns, assuming version 3.1.10 and default template you will have to edit the template file /templates/default/user/userjoin.tpl.php its a basic html file with some smarty template tags thrown in. You will need to modify the extra fields from normal text fields to dropdowns

The script file userjoin.php is designed to accept data from 3 extra fields already so that should add that data to the database.

For part 2 of having a user group set at registration time I would need to do some diggingt but see if the above makes sense first.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 11-09-2007, 10:11 PM   #3
Member
 
Join Date: Nov 2007
Location: Metro Detroit
Posts: 59
Rep Power: 9
LittleRascal is on a distinguished road
Post

Hi Larry, thanks for replying. I am still confused though, I know what needs to be done but getting from point a to point b is a little difficult for me, since I do not have any programing background.

I am thinking that I need to create a class in the database named class_user_types and duplicate the same way of how states and countries have their own predefined records. from there, I can use the same way that .php programming is in the userjoin.tpl.php for the states and countries code and put my own in for the extra fields.

If anybody that has read this post and knows how to do that, please let me know. Thanks, Dave
__________________
David Anthony Schnoblen
uSelliBuy.com
My Email
v 4.1.3 Developer
Templates: Default 3 Col
LittleRascal is offline   Reply With Quote
Old 11-10-2007, 10:04 AM   #4
Coder
 
Join Date: Mar 2006
Posts: 4,639
Rep Power: 112
Lhotch is a glorious beacon of lightLhotch is a glorious beacon of lightLhotch is a glorious beacon of light
Default

I did missunderstand your goal a little but but I still think your over complicating things. By default 68C has "user groups" which you can assign people to and adjust what they see accordingly by checking their user group in the various templates so no coding or additional database tables need to be added.

As for modifying the userjoin template, thats not really programming, its basic html and all you need to do is replace the text field input with a dropdown that has your predefined values.

The tricky part however is when you want the second dropdown to only be available, or more accuratly only certain values in the dropdown are available to certain user types.

To have a dropdown like that adjust to another dropdown on the same form/page requires the use of ajax or similar technology. This may be a bit ambitions if you unsure how to create the dropdowns themselves.
__________________
Larry.
Lhotch is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding more fields in the user signup Unregistered Pre Sales Questions 1 10-26-2007 05:19 AM
Using Extra user registration info BigOrange v3.1 Questions & Support 4 03-06-2007 05:47 PM
Extra fields bug? Sinisa v3.1 Questions & Support 8 01-24-2007 03:20 PM
User Registration Fields problems sleepylok v3.1 Questions & Support 3 01-16-2007 12:54 PM


All times are GMT -4. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0