Tips and Tricks HQ Support Portal › Forums › WP eMember › Custom Fields
Tagged: custom field, custom fields, display custom fields
- This topic has 24 replies, 4 voices, and was last updated 11 years, 12 months ago by amin007.
August 23, 2010 at 11:48 am #1728
I was able to add two custom fields to the member profile page and it works great. I tried adding the same fields to the admin page but it does not save – add_member_view.php
Can you provide me with information on how to do this?
RayAugust 23, 2010 at 1:15 pm #23580
I bet this topic will go unansweredAugust 24, 2010 at 1:07 am #23581
No topic related to product issue goes unanswered in this forum. Please read the following two posts:
So you have manually modified the plugin code to your customization and you want us to fix your coding issues?August 24, 2010 at 11:58 am #23582
I see that you provide great information about this forum. Please don’t take this the wrong way, be nice. I tried for a very long time to do this before I decided to bother you. I said that I do not want you to fix it. I just was asking for some information on how to do this. At first I tried to use the Extra field without modifying the code and it did not allow me to save the data. I then search this forum about the extra field and found nothing to help me. So I then decided to add the two fields. No
luck so I contacted you for help. If this is too much of a problem for you to answer please say so and I will not bother you again.
I was planning on buying more copies but I guess I better wait.
ThanksAugust 25, 2010 at 1:34 am #23583
I don’t want you to get the wrong idea either. Let me just tell you that I wouldn’t have thousands of satisfying customers if I weren’t helpful to my customers.
The forum moderators and myself try our best to reply to every forum thread within 24 hours (it’s not an easy job when you have thousands of customers). Now, when I see someone posting a comment and within two hours there is another insulting comment it gives me the following messages:
1) You are trying to jump the queue by drawing attention.
2) You are trying to upset my forum moderators.
3) You haven’t read the forum rules post.
All of the above goes against me being able to run the forum efficiently. This in turn will result in failing to help the greater mass of my customers and I can’t let that happen.
I hope the above makes sense.
Can you please answer the following questions so I can give you some guidance?
a) How are you using custom fields to save the data for member profile?
b) What data are you saving?
c) What functionality do you want out of this?August 25, 2010 at 9:29 am #23584
My purpose is none of the reasons you mention but it just that I was frustrated because I could not find a way to do this so I’m sorry if I offended you. You have a great product and you have videos and documentation better then many other products out there. I research my products very carefully before I buy them and when I found yours it is the best of all I sampled. I will remain a customer and I plan to buy more as soon as I get past this subject. Now let me try to answer my need.
1. I created a field in mysql database and I added a custom field to the member administration page (add_member_view.php)
2. I’m saving data from the member administration page.
3. I need at least one custom field so that I can enter extra information about the members business (their bio).
Thanks youAugust 26, 2010 at 12:42 am #23585
Not a problem… when you say you created a field in the mysql database do you mean you added a new column to the already existing wp_eMember’s member table? The name of the table I am referring to is “wp_eMember_members_tbl”.
If you have done the above then the first thing we need to make sure is that this column is acttually getting created in the database. Have you verified this by going to your PHPMyAdmin and browsing the “wp_eMember_members_tbl” table from the wordpress database?
If the above is not the problem then the issue is most likely in the code that is being used to insert the value into the database. Can you please post the bit of code that you added (the code that’s adding the value into the database after you hit the submit button)?August 26, 2010 at 1:09 am #23586
Yes I added a new column name minority_status to the already existing wp_eMember’s member table
Yes I verified the the column minority_status is getting created.
The name of the field that I added to the code below is minority_status.
Code begins here:
[admin deleted code]August 26, 2010 at 2:21 am #23587
Looks like you have only modified the “view” so it’s showing the field but the corresponding code that inserts the data into the database after the user clicks the submit button is missing.
You need to look in the “eMember_members_menu.php” file and check the following function:
I am guessing you understand how the HTML form submissions work using HTTP POST.August 26, 2010 at 9:44 am #23588
Wow, perfect. It works. I’m now able to add additional information for my members.
Thank you very much!August 30, 2010 at 9:51 pm #23589
I think that custom fields in WP-eMember is a definite benefit. I am actually working on two sites right now that will require the ability to add custom fields to the profile page to track various data. Are there any plans for this feature in a future release? So we don’t have to hack the core?August 31, 2010 at 2:51 am #23590
I would love to add a feature like this but the issue with custom fields are that it requires the creation of a new database column in the database table and without knowing what type of data or how many columns you need it’s not possible to create a table. So I am having a hard time finding an option to give the admin an option to add custom database fields to store member specific data. If you have a good suggestion please feel free to suggest and I will take a look.August 31, 2010 at 5:12 pm #23591
Of course handling in a similar way to CIMY User Extra Fields would be slick ( http://wordpress.org/extend/plugins/cimy-user-extra-fields/screenshots/ ) although a lot of work I’d imagine. I think just a set of 4-6 custom fields that can be labelled in the admin would be great to start. I don’t see a problem with making them all TEXT fields in the database as I’d imagine they would primarily be used as such. Maybe next to each field in the admin could be a radio button to display as INPUT or TEXTAREA in the pages. An additional checkbox could specify if the field is visible to the member’s profile page or just admins (for notes, etc.). This would at least provide basic functionality.
I guess I should purchase the eMember plugin and crack it open to take a look at what I’d really do and provide you an educated suggestion. I’ll need a solution anyway and if you’re open to adding this functionality in a future release I certainly don’t mind buying it now and helping out where I can.
As an aside, if you have time, really do check out that CIMY User Extra Fields for inspiration. I wonder if a child plugin that added this functonality and was offered separately is a possibility?
And thanks for taking the time to listen! Your product support is and always has been outstanding!September 1, 2010 at 12:40 am #23592
Hi Pete, Thanks for the info… we will definitely take a look at this.
Adding a few extra text fields is how we have plans to add this functionality down the path but I know from my experience that as soon as we add this option there will be a customer asking me why can’t he add 10 custom fieldsSeptember 10, 2010 at 3:54 am #23593
HA! Isn’t THAT how it always goes!!
- You must be logged in to reply to this topic.