Hi! I would like to see custom profile fields API. What do i mean:
We already have hook for this - filter:user.account, but there is no markup in templates (account/profile.tpl)
Also it would be nice to add same functionality to account/edit.tpl
filter:user.profileLinks hook will allow you to add custom pages to your user's profile page
My apologies for dragging this back up, but a filter is something used by a plugin to add functionality, yes? Assuming I understand that correctly ... Is anyone aware of a plugin for this functionality, as of now?
Is anyone aware of a plugin for this functionality, as of now?
Yeah, custom profile fields and choose which should be shown.
Just to be clear, is
filter:posts.custom_profile_info now preferred over
@Ted One is for post and the other for profile. I thought that
user.custom_fields is the one to create the fields but it fails.
The problem with it, is that you need to create a new user to fire the hook which is not what you expect from a custom field, it should be added after profile creation via a plugin.
In @psychobunny nodebb-plugin-cash there's the use of
filter:posts.custom_profile_info to actually show the the value and not the field, nowhere there is a custom field, it's a custom value that gets fired when a post is submited (working nicely btw).
I'm interested too because I was hopping to work on a plugin that take advantage of a user custom input to work but right now it doesn't seem that easy.
@frissdiegurke tried to help me https://community.nodebb.org/topic/2558/how-to-use-filter-user-custom_fields/4 but it seems more like a workaround (I havent tested it yet).
@esiao, thanks for the info. I'm working on something that would need to institute a custom section on the profile, so I'll be looking into this.
@Ted If you achive this I would be greatly interested in how you've done it
By the way if I success in that I'll give you the word too.
@esiao, excellent. Two heads are better than one!
@Ted & @esiao
I wonder if you may share some experience on it? I am working on a similar thing but haven't get a clear clue how this could be done. Thanks!
Yeah, this is something i need in order to migrate my forum and its users custom profile fields on profile site is good enough for me
Just a note to other people that stumble across this old thread while looking for a custom profile field plugin. This plugin looks very interesting: https://community.nodebb.org/topic/4337/nodebb-plugin-ns-custom-fields-ns-custom-fields/3