This hack will add an extra page to the User CP. This area can be used for extra profile fields that for one reason or another you would like to split from the main list.
Personally, I use this page for PC specs, but it can also be used for other specs as well (e.g. cars). I have the specs in a dropdown list under the user title in each user's post, as well as in their profile page, but that's another hack You can see my 3.0.x hack for that here, and the 3.5.x hack for it here.
NOTE: The above 2 links show the results of another hack I did that's based upon this one. In otherwords, this hack doesn't add dropdowns in posts, and doesn't hack the member page to display the extra options in a new area. For that, install the Add-On hack, Additional Section within Profile and Dropdown within Posts.
# of plugin hooks: 1
# of php page edits: 3 (or 4)
# of new templates: 1
# of template edits: 1
# of new phrases: 2
The "successfully saved" and extra option search are not tested, but they should both work.
Standard profile fields. Hmm this is really strange. I'll check my edits once again and see the problem. If I coudn't, I'll get back to ya as soon as I can.
kewl, what was it? I'll try tonight to upload the XML files again. Just tried to upload a fake XML (gibberish in the file) from work, worked fine. Worst case scenario is I'll have to upload it tomorrow from work.
The field for display order was set to '0'. That's the reason why it wasn't working. Hehehe. Silly me.
Just more thing. When a user has not edited or updated his profile page and left as empty, it is supposed to say "N/A" rather than a blank space just like the "Forum Info"...
Just more thing. When a user has not edited or updated his profile page and left as empty, it is supposed to say "N/A" rather than a blank space just like the "Forum Info"...
BTW, currently looking into the cleanest way to do multiple pages.
The basic way to do do this would be simply to rename some variables, and install the hack more than once (changing the variable names with each install). It'd be functional, but it could certainly be better and more intuitive.
To do it right would require some interesting code ATM the only reasons I can think of to have multiple pages would be to have multiple dropdowns in the related hack, so I'm thinking of how to efficiently do multiple dropdowns / profile areas. May just enhance the page with a dropdown in it. Each option in the dropdown would show/hide the fields associated w/ that option.
Example: dropdown has 3 options: Car / Boat / Plane. Selecting Car would let you enter in fields that relate to cars, e.g. rims, spoiler, etc. Selecting plane would let you select jet engine field, turbine engine, etc.
Having a proper admin backend page for the overall hack would make it much easier to adminstrate and update though, so I'll try to work on that first.