guypsemperis
Forum Replies Created
-
Sooo… I decided to just code a fix myself – of course, not by changing the WPAS plugin. Thankfully, (which is to say, thank you), the plugin is well written and adding the validation that I wanted to user registration was a relatively simple matter of calling:
add_filter('wpas_register_account_errors', '[MY_VALIDATION_FUNCTION]');
(relatively simple because I am not all that adept at php in general, nor wordpress plugins in particular)After following your latest suggestion, I found that I indeed had made the mistake of using a page that was not selected in TICKETS->SETTINGS->GENERAL .
Once that was fixed, the div I was expecting was added, and the call toadmin-ajaxwas being made.I have a new problem with the actual results of the validation but I’ll open a separate topic for that as this problem has been resolved.
Thanks a lot!
After some debugging, here is some more information:
1. I turned off all other plugins installed – no change.
2. There are no js errors in the browser console.To try and test what was happening, I did two things:
1. I don’t remember making any changes to files in the plugin but just to make sure, I uninstalled the plugin (with the “delete data” option checked), and reinstalled.
(I set “Enable E-Mail Checking” to checked and set my MailGun public key)
2. I made my ticket-submit page contain only a single line (past the template definitions):
<%php echo do_shortcode('[ticket-submit]'); %>Now, when I enter that page, I get the login view with the registration form – no templating, no styling, nothing. Just the login and registration forms.
I still don’t seewpas_emailvalidationdiv. In fact,component_registration.jsisn’t being loaded at all. I even added aconsole.logat line 9 to make sure I wasn’t simply missing it butcomponent_registration.jsis simply not loaded… which makes sense if I consider the fact thatwpas_emailvalidationisn’t being added…Thanks again for the assistance.
Thank you for the quick reply 🙂
The log was not printed… I’ll try it with other plugins turned off and do some more debugging.