@pitaj said in Slug translation ?:
You can't. It's been an often requested feature, but the slugs are hard coded throughout the NodeBB codebase.
Got it , Thanks
@itsCrafted
For Profile View (node_modules/theme_directory/templates/account/profile.tpl
) - https://github.com/NicolasSiver/nodebb-plugin-ns-custom-fields#profile-view
Add import <!-- IMPORT partials/account/custom_fields_two_columns.tpl -->
, where do you like, for example after block with general data about user:
Note: see last line
@Nicolas great, that works, but users can't edit the custom fields. How do I implement this?
edit: can you edit fields from the ACP or manually set them into Redis? this would be fine for me as well :P, my use case is probably quite different
What do you mean by - users can't edit the custom fields?
They edit defined custom fields under their profile - https://community.nodebb.org/user/itscrafted/edit
Admin defines what custom fields are available for the forum.
@Nicolas when I go to my "Edit" page, it doesn't show any of the custom fields I have setup. I'm using Majestic.
Can I add anything to my edit.tpl? Sorry for bothering you with all this.
I see.
Answer will be simple: this plugin supports Vanilla/Levander and Persona, and themes that are derived from them.
Plugin isn't aware about custom themes, even if it uses widgets, It's up to theme developer to declare them.
@Nicolas Right. Is there a way I can manually set values through redis-cli or the ACP? Or, better yet, implement it myself?
@itsCrafted said:
through redis-cli
Yes. User fields are stored in Database, you can edit them directly if you wish.
They could be found via key: user:X:ns:custom_fields
, where X
is an user identifier.
@Nicolas Got it all figured out in the end, thanks for your help! Now I have user covers working
@itsCrafted Looks great!
@julian thanks! It's a nice addition to user profiles, they look a little blank otherwise.
New version is released. No new features, main idea to be compatible
Install updated version via Plugins section in ACP
I haven't been able to get this to work on v0.9.x can't even get the UI options to show up in the plugins tab. Has anyone had any luck?
It isn't compatible with 0.9, especially because of UI changes in 0.9 to profile page.
Also, I'm considering better options for this plugin:
https://github.com/NodeBB/NodeBB/issues/3837
For now, if 0.9 update isn't critical for you, stick with 0.8
New version is available. Summary: changed idea how plugin integrates with User's page.
v0.9.1
/user/nicolas/custom-fields/edit
). Removed dependency on Account's Edit Page (i.e. no dependency on theme).I have two suggestions what I see in other fórum CMS.
1 - Support to links(Field type): I define URL of the custom field in ACP:
[link_what_i_want(ex: https://twitter.com)]: [user_information([email protected])] and the hook give me a result like this: "Twitter: ins"
2 - Support to images or icons in setup to show in templates, like this http://i.imgur.com/7aLADPS.png - This is an extension of first suggestion;
Hi,
The update added a separate page for the custom fields, and I wanted to know whether I could still add the custom fields on the user profile 'edit' page instead of a separate page.
Thanks
There is no such way. Current implementation It's like best practice from NodeBB Team.
@Nicolas ok. Thanks
New version is available. Summary: focus on UX in ACP panel and integration with Persona based themes.
@Nicolas Installed via npm, gives me compatibility warning and the /admin/plugins/custom-fields page is blank. Any suggestions ?