Tagged: custom fields, new user creation page, user profile
- This topic has 19 replies, 10 voices, and was last updated 4 years, 9 months ago by
bhushanjawle.
-
AuthorPosts
-
-
November 11, 2012 at 5:46 pm #381
RolandMemberHi,
first: Piklist is a great tool!!
Actually i work on a client project with an custom Partner-Management. I tried out different plugins like Members, WP-Members and so on, but nothing was the right plugin for the project.
Piklist seems to be the right base for the whole project and for building all the future features we have planned…
Two questions at the start:
1: is it possible with piklist to add custom fields to the user profile? Because in the docs there are just tutorials for custom post types.2: All Partners, with the basic informations, will be registered by an admin. And we need unique Partner-Numbers within two groups: Partner and Customer. So the idea is, that a new partner gets a number like P123456 and a new customer a number like C123456. But we don’t want to give the numbers per hand. Is it possible to give this numbers automatic for new partners and new customers?
All, partner and customer, are “Users” with different registration and different roles and capabilities… We need this to manage future features.Many thnx for your support in advanced,
Roland -
November 12, 2012 at 1:56 am #383
KevinKeymaster@roland-
1. Yes, we plan on releasing the next version tomorrow which does include this and will help with #2.
2. This is possible, however it’s not so much a piklist thing as it is hooking into the update of a user and setting this as meta based on who/what they are. If you need any help or pointers here let us know, we are happy to help.Thanks,
Kevin
Actions to check out:
show_user_profile
edit_user_profile
personal_options_update
edit_user_profile_update -
November 12, 2012 at 5:10 pm #398
-
November 13, 2012 at 8:09 am #408
RolandMemberMany thanks for the really quick answer and the great support ;o)
Checked the actions you told me and will be coming back to you for some help soon…
cheers, Roland
-
November 14, 2012 at 12:30 am #411
RolandMemberHi,
worked with the new release 0.6.7 and added some custom fields to the user profile. Works fine, but there are two things:
1: filled out the new fields with the user-login (editor) and cannot see the data when i’m logged in as administrator (have not set capabilities in the user-metabox). Also the fields look a little different when i’m logged in as administrator…
2: I cannot get the data from the new fields to the frontend in my template… I tried it with get_user_meta but nothing appears on the site… Is the ‘scope’ post_meta or user_meta (from the field)?
This code works: the Last Name from the user appears on the site.
When i call this: nothing appears…
Many thanks in advanced again for your help,
Roland -
November 14, 2012 at 12:32 am #412
RolandMemberSorry, here’s my code:
Works: echo get_user_meta( $user_id=2, ‘last_name’, $single );
Don’t works: echo get_user_meta( $user_id=2, ‘acad_title’, $single ); -
November 14, 2012 at 12:42 am #415
RolandMemberUpdate:
The code works! ;o) the thing was, that the data was not stored… Logged in again with the user-login and all the fields were empty… Any idea?
Thanks, Roland
-
November 14, 2012 at 4:14 pm #417
-
March 9, 2013 at 10:25 am #717
sidhantmehtaMemberhi has there been any update on this issue? I wanted to something similar with user profiles. thanks!
-
March 13, 2013 at 10:38 am #719
SteveKeymaster@sidhantmehta– This is “partially” fixed. You can modify another users data, but setting your own profile data seems to have issues. We hope to have this fixed in the next version of Piklist.
-
May 23, 2013 at 6:18 pm #830
harryMemberjust ran into this issue too..
-
August 13, 2013 at 8:27 am #984
chrisbenMemberI don’t think it’s exactly the same issue, but using piklist 0.8 beta2 and wordpress 3.6 custom user fields do not appear (only workflow tab appears in the picklist_demos), even for users other than the current user.
-
August 13, 2013 at 3:38 pm #985
-
February 18, 2017 at 1:51 pm #7799
hozefasmileMemberHi Steve,
I have tried to add a new field for user profile. Created a folder in my theme piklist/parts/users/ and then created a file uniqueuserprofile.php and added this code
<?php /* Title: Patient Information */ piklist('field', array( 'type' => 'text' ,'field' => 'user_address' ,'label' => 'Address' ,'attributes' => array( 'class' => 'text' ) )); ?>But no new field in showing in user profile page during creation of a new user. It though show when the user has already been created. But how can we show the custom field during a new user creation ?
-
April 30, 2017 at 10:23 pm #8039
intrepidrealistParticipantHi!
I’m running the latest version of Piklist (Version 0.9.9.12) and I’m running into the same issue that @Chrisben was running into. I don’t see my fields in the user profile, just the Piklist demo tabs. One of the tabs is “Profile” when I click that I see the profile but not my fields. I’m on WP 4.7.4, developing locally with Desktop Server.Attachments:
You must be logged in to view attached files. -
May 10, 2017 at 7:47 am #8222
bhushanjawleParticipantHi @Steve, I tried same code as @hozefasmile as my actual code didn’t work.
No user meta was saved in database.
Is there any information missing in header comment I need to add ?
Thanks -
May 10, 2017 at 8:02 am #8223
bhushanjawleParticipantIssue created on github
-
May 10, 2017 at 8:31 am #8224
bhushanjawleParticipant@hozefasmile @Steve, I found a way around it, not sure if this the right way to do it though.
I am able to save the above address field by adding'scope'=>'user_meta'in above field.@Steve, can you please confirm if this is the right way of using it ?
-
May 10, 2017 at 2:49 pm #8225
JasonKeymaster@bhushanjawle since you made the issue on Github, let’s please keep the discussion there so we’re not working in multiple places. 🙂
-
May 11, 2017 at 12:38 am #8227
bhushanjawleParticipantAgree @Jason, completely with you on this.
That is why I added link here 🙂
Will update further on github. Wanted to update users on this thread who may not have gone to Github on what worked for me as a workaround.
Thanks !
-
-
AuthorPosts
- You must be logged in to reply to this topic.