Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Tweaks › eMember – HTML for mandatory forms?
- This topic has 9 replies, 3 voices, and was last updated 10 years, 4 months ago by admin.
-
AuthorPosts
-
July 3, 2014 at 11:20 am #11119barryjarvisMember
Hi guys,
I was wondering if it would be possible to supply the raw HTML for the mandatory eMember pages (login, password reset, profile etc) I really want to style them to our own CSS. Ive tried copying the HTML from direct in the browser but unfortunately the form breaks.
I can’t find this information anywhere else.
Kind Regards
July 3, 2014 at 12:15 pm #64115barryjarvisMember(or the php of course if its dynamic, I want to completely recreate the templates, its not just CSS styling as I want to put the input labels within the boxes etc and move things around)
July 3, 2014 at 2:20 pm #64116wzpModeratorYou’re asking a very non specific question. You already “have” all the files and code that you need; to do what you want.
I can’t find this information anywhere else.
Have you attempted to use the instructions here?
July 3, 2014 at 4:23 pm #64117barryjarvisMemberFair enough I do already “have” them. However searching through the messy unorganised php files is a nightmare. Ive managed to rebuild the login form from scratch and apply my own CSS (using the custom CSS field really isn’t an option, Im designing from scratch properly using Flat UI)
However trying to get the password reset page working is proving a lot more tricky. Really a copy of what the [wp_eMember_password_reset] spits out is what I’m looking forward, the full raw php output WordPress reads so its in my control and not under a short code.
July 3, 2014 at 7:45 pm #64118wzpModeratorReally a copy of what the [wp_eMember_password_reset] spits out is what I’m looking for
Here is how to find out:
- Using a Unix or Linux command line, cd over to the wp-eMember directory.
- Do a grep for wp_eMember_password_reset in all the files.
- From the search result, we determine the shortcode invokes the print_password_reset_form() function.
- Do another grep to determine where the print_password_reset_form() function is defined.
- The search results for my version of eMember show it’s defined in the files eMember_misc_functions.php or eMember_misc_functions2.php (because the code is being reworked). In my case, the second file is the correct one.
- Open the appropriate file, using vi, and you’ll find the print_password_reset_form() function definition about 18% down in the file.
From there, you can examine and trace out what gets generated when the shortcode is used.
You can perform the above 6 steps for any shortcode you desire. Let me know if that helps.
July 4, 2014 at 11:17 am #64119barryjarvisMemberThank WZP, thats more or less what i’d done myself, albeit a slightly different way (I had a copy on my OSX desktop and just use OSX search to find the strings)
So got the to he part you mentioned, but it appears I need to incorporate some or all of the php print function as it includes the part which says if the e-mail has sent or not of course. Im struggling to figure out exactly how this is included on the page as i keep getting php errors. The table below is easy enough to copy and paste in.
Its also hard to know where the php that I need to include in form starts and stops with all the other php functions in the same page…
July 4, 2014 at 1:24 pm #64120wzpModeratorThank WZP, thats more or less what i’d done myself, albeit a slightly different way (I had a copy on my OSX desktop and just use OSX search to find the strings)
There’s nothing in the eMember license agreement that prevents you from installing it on an XAMPP server, running on your MAC, for development purposes. The only caveat is that we cannot provide support for helping you correctly setup XAMPP.
Also, we do have a custom coding service. For a quote, please complete this form and somebody will get back to you:
July 4, 2014 at 11:31 pm #64121adminKeymaster@barryjarvis, I have sent you an email with some info that should help.
July 7, 2014 at 11:20 am #64122barryjarvisMemberHey @admin, thats exactly what we needed thanks so much! We got it working just fine, if you could fire over the same for [wp_eMember_registration] that would be great. Again I can get to the where it prints the forms, but its just figuring exactly which php parts it needs to start and stop, its quite difficult to guess not being the original dev. I think once thats up and designed we’ve got everything thats mandatory built then. Thanks
July 7, 2014 at 11:00 pm #64123adminKeymasterLook for the “eMember_reg_form()” function in the “eMember_registration_utils.php” file.
-
AuthorPosts
- You must be logged in to reply to this topic.