Thought about this again, and didnt found a way to integrate it in a good way. Some problems i found regarding this problem.
There are some areas where it would be nice to modify the fields. Just some which popped up in my mind are memberlists, membersearch, short summary on topics, normal profile summary.
In normal profile summarys its only possible to hook onto $custom_fields, but thats ugly, because its to hard to rework the way of how custom fields work. For example privacy would not work properly, you would need to hook there in too. A in my opinion better solution would be for example an array like menu_items for all profile fields (in summary).
profile_fields = {"general" = {"title" = "General",
"fields" = {"username" = {"name" = "Username", value="CerealGuy", privacy = false},
"location" = {"name" = "Location", value="Germany", privacy = true}
}
},
"userspecific" = {"title" = null,
"fields" = {"ip" = {"name" = "IP", "value"="127.0.0.1", "show"=$context['can_see_ip']},
"language" = {"name" = "Language", "value"="German", "privacy" = true}
}
},
"custom_fields" = {"title" = null,
"fields" = {"likes_recieved" = {name= "Likes recieved", value="<a href=........>15</a>", "privacy" = false}
}
"invites" = {"title" = "Invites",
"fields" = {"invited_by" = {"name" = "Invited by", value = "<a href.....>Blubb</a>", "privacy" = true},
"invited_users = {"name" = "Invited users", value = "<a href.....>User1</a></br><a href....>User2.....", "privacy" = true}
}
}
}
As you see it would be easy to create a new profile area and manipulate them. Privacy true/false would just set if privacy is enabled or not for that field. Show same like in menu_items. Another idea is that you could set names for different areas to seperate them more. Also custom fields could just extend profile_fields[customfields].
Yeah some more or less crazy ideas, dont know what you think about them. Would love to read some comments on this.