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.
Thanks for the update but could you fix up the bug if a member has not updated their extra profile fields while in profile view page? It still shows up as blank and is supposed to say "N/A".
I installed this, tested it, and everything works fine. The only problem is that it says that the templates listed in the preceding post of mine were uncached. I have the stats modification installed that shows queries and uncached templates. The actual Edit Options page has like 6-7 uncached templates. Every other page of my site is fine but that one. Any thoughts?
Rich,
It's because the templates aren't cached under the ?do=extra.
I've done a quick way of doing it though I'm not sure it's the best:
Add new plugin under General >> cache_templates
I've called mine Extra Profile Page Cache Templates
If someone can kindly point me to some good info about it (too busy ATM to search myself, which also explains my slowness on the board lately), I'll add it into the hack.
Found some info about caching templates, going to implement that hopefully over the weekend. Going to see if anything can be tweaked as well, MAYBE some new features, if time allows.
Does it have the var name, and nothing under it? e.g. Processor w/ no value, or does it not show up at all? Example of where I can see this in action?
First of all, sorry for my late respond.
Anyway, I have noticed a few members who just got a blank area and some who got the "N/A" phrase included in their extra field. Let's take Smokey and Ameen for example. As you can see, Smokey shows up just blank while as Ameen shows up the "N/A" phrase thing. Do you have any idea what's going on?
Also how do I change the URL "profile.php?do=extra" to "profile.php?do=editboneinfo"?
As you can see, Smokey shows up just blank while as Ameen shows up the "N/A" phrase thing. Do you have any idea what's going on?
I checked HoH (in the sig), and I've found similar profiles. I'll have to look into it, only thing I can think of is that because it's really just an extension of the additional info area, it sees some info, and therefore doesn't see a need to use the N/A, as it thinks something's already in that column. I'll see if there's a way around it.
Quote:
Also how do I change the URL "profile.php?do=extra" to "profile.php?do=editboneinfo"?