Automatic Storing of user data code update
-
Since there was no response from the developer, and I don’t expect there ever will be, I dug into the code and fixed my major concern with this product, which is: While it gathers the information to store in the database for First Name, Last Name and Email address, this information is not populated to the contact when the entries are processed, which seemed ridiculous to me.
This wasn’t a simple bug as I thought though. There is *nothing* in the code that even attempts to do this currently. Except in my new version of the code. I have placed a paste bin of my updated code HERE.
The file to edit is: ../plugins/easy-contact-forms/easy-contact-forms-customformsentries.php
The code shows a few existing lines before my changes and starts at line 145 in my version of file. My code is clearly commented in the file.
I realize I could probably write this as a class and over-ride their code, but I’m too lazy to do so at this moment, but it would be a good thing to do if they don’t implement this in the future, so when the plugin is updated these changes aren’t over-written. Maybe they will just take my code changes and put something like it into the core code though. (I can dream, right?)
Again, here is the link to the paste bin code, in case you missed it the first time.
Hope this helps someone else.
Thanks!
- The topic ‘Automatic Storing of user data code update’ is closed to new replies.