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.
AdminCP -> User Profie Fields -> User Profile Field Manager -> Edit the field. There's an option there that says: Field Required.
I have the extra specs set to No, but show at registration. It's used a lot, which has helped out a lot. Make a sticky on how to get to the new area, and how to add info to it.
I've got a Replacement Variable (under Admin CP -> Styles and Templates -> Replacement Variable Manager) that I use for that.
Example:
Search for Text: **extraspecs**
Replace with Text: [URL=LINK ]Click here to add info to extra specs[URL]
I think you misunderstood. What I was asking is how to force them to enter a numerical value into the extra field (not wanting them to be able to enter text). Now that I think of it, it is much more complicated than I earlier thought it would be.
I think you misunderstood. What I was asking is how to force them to enter a numerical value into the extra field (not wanting them to be able to enter text). Now that I think of it, it is much more complicated than I earlier thought it would be.
Thanks for answering though!
Instead of making the Profile Field Type a Single-Line Text Box, you could try Single-Selection Menu, assuming there's a limited amount of selections they would need. If not, you may want to post a Modification Request for it. If this is how those RPG hacks are done, you'll probably get a response pretty quickly. I'll look into it this weekend as well as a separate hack. Just did a quick search, no one's posted a hack like that as far as I could see.
This looks like something I have been looking for - but I am confused... does it replace showing what usergroups the member is subscribed to... when someone views their profile?
Nice hack!
It does replace it (as I haven't seen many people use that at all), however there's a simple work around: