Version: , by Mutt
Developer Last Online: Mar 2013
Version: 2.2.x
Rating:
Released: 07-02-2001
Last Update: Never
Installs: 29
No support by the author.
Hey there
I'm still trying to learn all of this and damn this is cool ****. Anyway, I installed the gender hack and was going to use it to install another profile select box. Then I saw the very cool CP tool for adding a field to the profile. It currently only allows you to add a input box. I decieded to modify it so I could add my select box from there. It wasn't very hard and the hack is pretty short.
Here it is in a nutshell
I added a textarea field to the add/edit profile field
if you want the new field to be a dropdown, you enter the dropdown values. each line represents a new option tag.
Ex. you want a new field called "sex" that is a drop down with
the choices male,female, and other.
Make the new field as usual.
Set Field Length. (1 would be a standard dropdown)
Set Maximum Input (I'd leave it at 250)
In the Select Box Items text area type
it would have been nice to have some updated instructions for the hack. I just installed it and most of my fields are required (and they don't show up in the registration page). The edit profile page works great though.
Are new instructions coming soon or should I uninstall and wait?
Is there something more you have to do than:
*changing back the four PHP-files to their original state
*changing back the template
*delete the "profile"-directory
*delete any custom profile-fields
Originally posted by Baines
Is there something more you have to do than:
*changing back the four PHP-files to their original state
*changing back the template
*delete the "profile"-directory
*delete any custom profile-fields
to un-install this hack?
I sure hope not. This is what I did last night and everything seems to be back to normal. I look forward to a more secure version of this hack though
Thanks for the great hack. I've installed it and it's working well. However, I too am having the problem regarding required fields. You mentioned that you corrected this problem but haven't had time to update your instructions. Do you have an estimate as to when you may update them.
I've tried adding this hack twice on v2.0.3, but each time, it shows the form fields up on the top of the UserCP->Edit Profile page, and they're all mangled (the drop-down menu is on the left with only the input boxes for Biography, Location, etc. lined up horizontally). I didn't get a chance to screencap it before I removed it, unfortunately.
My experience with PHP is quite limited, so I can't really see where I'm messing up. I've done exactly what the instructions say. Any chance in this being installed in the next release of vB?
I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.
[QUOTE]Originally posted by treszoks I've added select fields to my board and will share directions if anyone would like them. It requires adding two templates for each select field plus a couple of lines in register.php and member.php.