Code

Discussion on User Extra Fields

Discussion on User Extra Fields

Cart 1,022 sales
Recently Updated

vanquish supports this item

Supported

471 comments found.

Hi,
It was affecting the 16.8 and was already fixed in 17.0, but Wordfence and their update communication system with authors is awful. Please update to 17.1

mglad

mglad Purchased

Thank you for the update—Michael

kml29

kml29 Purchased

i add an html field, how to hide the place holder text

For that you need to edit the templates you find in the templates folder inside the plugin.

For example, if you are displaying the field in the woocommerce checkout page, you need to edit the woocommerce_checkout_form.php. Find all the occurrences of the “placeholder” attributes and remove fthem rom the template.

kml29

kml29 Purchased

Hello,

1) it is possible to allow the user to edit fields only on the checkout page but on the profile page only the admin can edit it? 2) the field file on mobile can allow the user to take picture of file with camera and upload it? 3) can we block checkout with fields. Eg: i want to block checkout order until some fields or files is approved by admin.

Hello
  1. You can enable the option to display the fields only in the checkout form: https://ibb.co/Dggc6k10 . The admin can edit the fields via the WordPress admin area, Users -> User profile page. Before any purchase, use the demo site to see if the plugin actually works as you expect
  2. I’m sorry, the plugin doesn’thave have such a feature
  3. I’m sorry, the plugin doesn’thave have such a feature
kml29

kml29 Purchased

The fields of the plugin don’t show on woocommerce Blocks Checkout. Thanks to support if possible

Yes, because WooCommerce blocks doesn’t offer any PHP action or filter that allows third party plugin to render they’re data. You need to switch to the default WooCommerce checkout template.

Hi there, I updated php and wordpress and this messages appeared:

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /www/hlifeshop_430/public/wp-includes/functions.php on line 7329

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /www/hlifeshop_430/public/wp-includes/functions.php on line 2189

I found that are generated by interaction with WPUEF plugin (it is updated to last version). Do you have a patch?

thanks

Gianluca

Hi Gianluca, In the errors you reported, I do not see any reference to the User Extra Fields scripts. If you report which script and line is actually generating any issue, I’ll be glad to fix it.

Hi, is this plugin still working with latest wp version ?

As installing it doesn’t allow to find the plugin into the menu. The only thing that appears is into the settings, user extra fields.

But doesn’t allow to create anything, as the screenshot show the red buttons.

Thanks

Hi,
yes it works. For any support, however, you need to have a valid purchase and support licenses associated with your account.

Hello,

We have WPUEF running for some years now. Today I bought a new license v16.7 and installed it by overwriting the existing plugin. Now I cannot edit our existing extra fields any more, what I get is an empty screen on the Extra fields configuration page.

On the frontend everything still looks fine though.

How to get access again to the extra fields configuration?

Thanks, Rainer

Unfortunately, that’s only a notice not even related to the plugin.

Could you check the browser error console and see if any further clues have been reported? Could you also try disabling the other plugin and see if you still experience the issue?

What I found out in the meantime: when I open the WPUEF configuration editor with Chrome, it seems to work. The problem only occurs with Safari. The Safari console messages:

I’m sorry, but as you can see from the plugin page, the plugin officially doesn’t support Safari due to its unreliability in managing HTML5 standards. The supported browsers are Chrome, Firefox and Edge: https://share.nmblc.cloud/3d5f2499

Pre-sale question: Can I add ‘conditional rules’ to field to hide/show in registration form. Ex: if ‘Field A – Checkbox’ is checked then the ‘Field B’ is ‘shown’ otherwise ‘Field B’ is hidden. Thanks.

I’m sorry, you cannot. The plugin doesn’t have such a feature.

I can eventually implement a customization for this. If you send a private message (click on my name then use the low-right box) reporting your email address and a detailed description of your scenario, I can evaluate its feasibility and give you a quotation.

hello,

How can we create a field that will accept an existing shortcode in it?

I am trying to provide a field to be used in buddypress that gives the user a shortcode instruction for them to place that shortcode into a user field and have that shortcode outputs correctly in the users profile.

unfortunately when I try and use a shortcode in any of the Extra fields from Text area, text field or html field when the user enters the shortcode and saves it the results on the edit page are the shortcodes raw output not the expected saving of just the shortcode given and that shortcode output is a full scrambled raw html code. then on the profile page in front end it shows the shortcode output however in a total mess which repeats endlessly down the page.

You mean a shortcode as user input? or in the description?

In the first case, you cannot. Shortcodes are not meant to be used in that way.

Hello Vanquish,

The demo: https://www.codecanyondemo.work/wpuef_wp/ doesn’t work with demo, demo.

Is it possible to add extra fields to WordPress backend user profile pages? If yes please send a screenshot.

Thank you, Andsmith

Hello,
sorry for the inconvenience. Please retry now.

Hi I just found a problem (i spent some time in investigations) : you use a “special_blank_character = ​” as default value for text box, to “avoid chrome to eventually autofill” This has some side effects :
  • when saved, fields are prefixed with this unicode value. So each meta has a 3 char prefix. I think i could live with this after cleaning metadata field in db and with a wp filter to sanitize new fields before them to be save
  • but i just saw that there is a side effect also on rendered forms, as the default value for fields is ‘value=”​”’. And so, the mandatory condition does not work any more as the field is already set

I think this preset should be removed from your code, and you should consider other ways to prevent autocomplete (such as autocomplete=”off”)

Consider also that metadata fields of your other customers could have been prefixed, and a cleanup could be necessary. I can share you me cleanup code if you need it

I’m sorry, but other methods are completely ignored (like for example the autocomplete=”off”). This is why this particular method was used.

If you share the cleanup code I can include in the next version.

https://gist.github.com/llicour/07d4bdfe41d6c439af3170dd850a024e 1st function is a db cleanup (one-time execution) 2nd is a filter for on-the-fly sanitize meta Should be improved by restricting theses functions on wpuef_cid_* fields

But this does not fix pb of mandatory fields that are not managed. At this time, i cloned the template with the fix (but cloning is not a solution because i loose your next modifications) special_blank_character=”” Perhaps a js validation could restore the mandatory rule. Or make this special_blank_character optional (don’t know why this feature appear, but seems that drawback of the fix is greater than the original pb itself)

Thank you for sharing.

Hello,

On the plugin page, it states that there is a custom shortcode to be able to place these extra fields on any page. Where am I able to find that shortcode to place on any page? I can’t seem to find it.

Thank you, Bill

Edit: I found the shortcode, but the fields aren’t displaying properly. Some of my fields are set to half width and others are set to full width, but all the fields are displaying full width and not next to each other like they are in the account details page.

Please help

Hello,
in this case it could be that your theme is defining some CSS rules that are interfering with the ones use by the plugin.

For this, use the browser inspector tool, see which stiles is your theme associating to the fields and then modify the theme css (or override the CSS rules) according to your need.

Salve, ho acquistato il plugin ed inserito i vari extra nel mio sito. Nella pagina di registrazione, però, non le vedo comparire.

Da quel che ho capito dovrebbero comparire automaticamente. Posso chiedere una mano?

Grazie mille

Il sito in questione è b-cp.it/my-account

Si esatto. Se non accade è perchè o si è attivato un opzione che restringe la visibilità (come ad esempio visualizzare campi nella pagina checkout) o perchè qualcosa ne impedisce la renderizzazione (ad esempio nell pagina di registrazione non viene lanciato l’action “register_form”. Questo impedisce al plugin di sapere che il form è stato renderizzato e quindi inserire i propri campi).

La seconda causa di solito è dovuta a plugin terze parti o al tema.

Ciao Vanquish, ho trovato l’inghippo. A quanto pare non appena abilito Yoast SEO (basic o premium è indifferente) si presenta l’errore!

Grazie per aver condiviso il risultato della tua ricerca! Dovresti eventualmente riportare il problema allo sviluppatore.

Lo User Extra Field si aggancia all’action user_register. Quel plugin sembra interferire, ma non saprei in che modo. Prova a riportare il problema allo sviluppatore per vedere se loro hanno qualche idea in piu.

How can I download the previous versions?

You cannot, CodeCanyon doesn’t offer offer option.

the page “Extra fields configuration” show a blank page when I go to Wordpress Admin => Users => Extra Fields

The page you are trying to access (the user extra fields options page) hasn’t anything to do with the usermeta data. The options data is stored in the options table and is managed independently from the user data (stored in the user metadata table).

If you send me via private message (click on my name and then use the low-right box) the following data:
  1. your email address
  2. full admin access to the wp-admin area
  3. FTP access
  4. A detailed step by step guide on how to experience the issue

I can perform some further tests to see if it is possible to determine the cause.

If you wish to delete all the data, just log into your database (with tools like PhpMy admin) and in the wp_options table, delete the following keys:
  1. wpuef_options
  2. wpuef_general_options
or use the following option: https://nimb.ws/U2Zx1d (you need to update to the latest 16.6 version I’ve just released).

Regarding the user meta, delete all the metakey you find in the usermeta table that has as a prefix the wpuef_cid_ string or just use the following option: https://nimb.ws/rA4OJu

After deleting all extra fields as your instruction (https://nimb.ws/U2Zx1d), the plugin returned to work as usual. It’s done. Thank you so much for your support!

Glad to hear that! :)

last but not least, I would ask you to help me: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars…It would help me with sales, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )

Have a great day!

I found the solution

Glad to hear that :)

Hello,

I use: $result = wpuef_get_field(‘c13’, 16669); var_dump($result->value);

result is string(15) “​0173-8058817”

how is the php code to get only: 0173-8058817

I can not use shortcodes because i use php

Purchase Code: 7ec3d81a-c5f3-4d27-9322-8f2b799ee563

Fields not updating (not keeping the data entered) upon save. Also with this plugin enabled I cannot make changes to the any fields including the native fields like First Name, Last Name, etc. If I disable the plugin, I can make changes to the native data.

I disabled all other plugins except for “User Extra Fields” and “WooCommerce”. and the results are the same (still cannot save data).

Thank you for reporting. Unfortunately, this seems a Chrome “bug” and it doesn’t allow 3rd party to disable its autofill feature with any html directive.

For now, doesn’t come anything else apart from the workaround I’ve implemented. I’ll try thinking something but I cannot assure you anything.

It is actually the exact same issue with Chrome and Microsoft Edge browsers. They both do exactly the same thing.

With your plugin enabled, both browsers would auto-fill the password field (but now with your latest version 16.5, only when you are logged into your admin account). They both work ok for customer accounts. I was a coder many years ago but not familiar with PHP. The only thing I could think of is to, as a last step, check the password field and if not blank, null it out.

Anyway, it is at least useable now with your latest version. Thanks again

Yes, unfortunately, seems that whenever the plugin includes an empty field, this will trigger the Chrome autofill function. This is why the password field is filled by the Chrominium engine despite the plugin is not managing that field.

to avoid this, the plugin fills its empty fields with the “​” HTML character This issue however doesn’t depend on any PHP code and the browser doesn’t expone any HTML directive to disable that feature.

I’ll perform some further investigation to see if it is possible to implement further workarounds.

Hi I am using the buddypress fields through your plugin. I am using buddyboss. The fields appear in the profile as expected and can be edited although the problem is the fields appear below and outside the border box of the other xprofile fields setup in buddyboss. I want them to appear in the same box. I can send a screenshot if I have an email. Also I can renew my support if you think you can solve this. Thanks!

Hi,
I’m sorry, but I don’t think it can be resolved. Data are injected by hooking to the bp_after_profile_field_content action. If that action is triggered by the page template after the box, there isn’t much I can do.

You should eventually modify the page template and move the action where you wish the fields to be displayed.

Hi This is a bug report I’ve define a field type coutnry_and_state, and wp crash when creating a new user (templates/wp_wccm_my_account.php:62 & 64) Seems this is because you consider setting a value in an array, but field_value at this step is a string (previous init line 43)

Also, not sure this make sense, but there is no support to override templates in theme (eg. templates/wp_wccm_my_account.php). I only try it to debug the crash, this is not a need at this time…

Hi,
Thank you for reporting. Actually, the $field_value variable, when managing the country_and_state field type, should be an array, not a string. Line 38, when invoking the get_field() methods, returns an array. But, when creating a new user, that line stores an empty string that leads to the issue you reported.

I’ve fixed it in the new 16.3 plugin version. The new version allows you to store template files on the “wpuef” directory you can create into your theme folder. I hope you enjoy it!

seems to be ok now. Thanks

Glad to hear that!

At last but not least, I would ask you to help me: If you enjoyed my efforts to assist you and/or my plugin please consider leaving the 5 stars…It would help me with sales, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate your purchases. You can also leave the rating through the plugin description page: https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )

Have a great day!

Hello, I am having trouble activating User Extra Fields product I just purchased. If states that the purchase code is invalid. I have the License Certificate with the license code

Hello,
please make sure you are using a fully HTML5-compliant browser like Chrome or Firefox. Try eventually disabling the other 3rd party plugins, one of them might be interfering with the activation process.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey