Not Solved Modify JS so confirm email and password = not required.
#1
Not Solved
http://dankshit.ga/community/member.php?action=register
Custom register page - removed a lot of irrelevant stuff, including input boxes of confirm email and password. How would I modify the JS to make it so it does not display error saying confirm email and confirm password boxes were not done correctly? Help?
Reply
#2
Not Solved
I do not understand why you want to get rid of these, because they can avoid a lot of trouble.

I think it requires changes in member.php. I will have a look.

In member.php change line 155 to:


		"password2" => $mybb->get_input('password'),


and change line 157 to:


		"email2" => $mybb->get_input('email'),

An other option is to delete these lines completely.
Regards, Ad Bakker (NL)
Reply
#3
Not Solved
(2015-07-02, 08:28 AM)Ad Bakker Wrote: I do not understand why you want to get rid of these, because they can avoid a lot of trouble.

I think it requires changes in member.php. I will have a look.

In member.php change line 155 to:


 "password2" => $mybb->get_input('password'),


and change line 157 to:


 "email2" => $mybb->get_input('email'),

An other option is to delete these lines completely.

Okay, it worked, but what about the image verification code? Also, I'm doing this to make registration less of a hassle.
Image verification is gonna be harder to work around, since you can't simply use PHP to direct it's input to the "normal" one like in confirm email and password, right?

Edit: Hmmm. I could just disable the captcha in ACP, but... no. This is gonna be a theme, so can't do that.
Reply
#4
Not Solved
(2015-07-02, 05:53 PM)Cookie123 Wrote: I could just disable the captcha in ACP, but... no. This is gonna be a theme, so can't do that.

Why not? You are using  a verification question, which is enough. This has nothing to do with a theme, does it? Disabling in ACP is for all themes.
Regards, Ad Bakker (NL)
Reply
#5
Not Solved
Rather than a core edit, try this plugin file


Attached Files
.php   skipvalidator.php (Size: 888 bytes / Downloads: 96)
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#6
Not Solved
(2015-07-03, 09:30 AM)Leefish Wrote: Rather than a core edit, try this plugin file

You may be NOT confused, but I am. You can disable Captcha images in AdminCP, why a plugin then?
Regards, Ad Bakker (NL)
Reply
#7
Not Solved
Its for the member php to prevent the core edit, it has nothing to do with the captcha as indeed you can disable it in ACP Smile

However, be aware that the ACP captcha disable also disables captcha on the contact form and for guest posts.
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#8
Not Solved
(2015-07-03, 09:54 AM)Leefish Wrote: Its for the member php to prevent the core edit,  it has nothing to do with the captcha as indeed you can disable it in ACP  Smile

OK, I see it after downloading.
Most times I do these kind of things also through plugins. But here on the forum I was sometimes critisized that I made a lot of trouble for small things.
For my own forums I even use a plugin for core changes.
Regards, Ad Bakker (NL)
Reply
#9
Not Solved
Yea, I try and avoid a core change whenever I can, and if it is inevitable I use the patches plugin as it makes things easier on upgrade Smile
Random Fish and Sims Maniac
MY PLUGINS
Help MyBBSupport help you - remember to mark your threads as solved


Reply
#10
Not Solved
Meh. Ended up disabling it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)