1968phillip
Forum Replies Created
-
Thanks for your reply @cryptex_vinci . I’m reasonably familiar with the UM plugin and have completed a number of customizations previously.
Could you be more specific in your response please?
Which UM hook or function allows me to programmatically create a custom field?
Which UM hook or function allows me to programmatically create a custom profile/registration page?
I looked through the hook/filter list that you provided a link to and could not find anything that meets the requirements. Likewise for the code examples that you provided a link for.
Kind regards
Phillip
I think a different action hook is needed here, @champsupertramp. When the um_after_upload_db_meta action fires, the new image has not yet been uploaded to the file location indicated. This only occurs once the profile is updated (saved).
I’m pretty sure the um_upload_image_result filter is a better place to achieve what is required.
Great plugin.
- This reply was modified 3 years, 3 months ago by 1968phillip.
- This reply was modified 3 years, 3 months ago by 1968phillip.
- This reply was modified 3 years, 3 months ago by 1968phillip.
I’ve resolved the issue!
Further investigation suggested that some WordPress themes can cause issues with AJAX. I tried one of the default WordPress themes instead of the theme I was using and everything worked fine. Investigating the theme further it was also trying to manage access to the admin bar for non-admin users – but seems to be doing it incorrectly as it was mucking up AJAX. I can switch to another theme.
Thanks for your help to date.
Kind regards
PhilHi @champsupertramp
I created a new member directory as you’ve asked and left all the settings as default, with the exception of selecting to view members with the subscriber role. I added the new member directory (short code) to a new page.
When accessing that new page I experience the same problem. If the logged in user does not have the administrator role nothing appears on the page, yet if the user is assigned the administrator role the member directory on the page works. Looking at the console (Chrome developer tools), when the directory fails I get the HTML of the home page displayed in the console log. I see this is what the Javascript code is meant to be doing on error.
I do not have any UM extensions installed.
To me, it seems to be an issue with the AJAX call. Are there other things I can be doing to help troubleshoot or debug?
Kind regards
PhilThanks for the prompt response @champsupertramp. The screenshots for the settings pages can be found in the ZIP at https://www.thethomases.com.au/download/UMSettings.zip
Kind regards
PhilThanks for the prompt response Champ. The screenshots for the settings pages can be found in the ZIP at https://www.thethomases.com.au/download/UMSettings.zip
Kind regards
Phil