![]() |
|
|||||||
| Register | Projects | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 12:01 PM. |
|
#2
|
||||
|
||||
|
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. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
#3
|
|||
|
|||
|
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
__________________
v 3.1.10 Developer Default Template |
|
#4
|
||||
|
||||
|
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. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding more fields in the user signup | Unregistered | Pre Sales | 1 | 10-26-2007 06:19 AM |
| Using Extra user registration info | BigOrange | v3.1 Questions & Support | 4 | 03-06-2007 06:47 PM |
| Extra fields bug? | Sinisa | v3.1 Questions & Support | 8 | 01-24-2007 04:20 PM |
| User Registration Fields problems | sleepylok | v3.1 Questions & Support | 3 | 01-16-2007 01:54 PM |