Topic on Project:Support desk

How do I change the location of the captcha?

11
50.173.47.199 (talkcontribs)

My captcha when users register appears at the top of the registration page. How do I move so that it is the last thing the the new user does before pressing the Submit button?

In other words, I want the captcha right above the submit button on the registration page.

MarkAHershberger (talkcontribs)

Are you sure that you don't have some CSS moving the captcha? I think everywhere I've seen it it has been right around the submit button. If you provide a link, maybe we can help you figure that out.

50.173.47.199 (talkcontribs)

Sorry about the delay. My site is www.termiteknowledgebase.org and I'm using KeyCaptcha in the registration process.

217.65.84.8 (talkcontribs)

You may add

before submit buttons and captcha will be placed before them.

This post was posted by 217.65.84.8, but signed as 217.65.22.22.

217.65.84.8 (talkcontribs)

I mean (gt)div id='div_for_keycaptcha'/(lt) (replace lt and gt with "greater than" and "less than" signs)

This post was posted by 217.65.84.8, but signed as 217.65.22.22.

50.173.47.199 (talkcontribs)

Isn't there a register.php file and I can just cut and paste the keycaptcha line?

217.65.84.8 (talkcontribs)

Looks like you should edit file /includes/templates/UserLogin.php and paste this code before submit buttons. But you should also modify plugin a bit and add some js code around backs...cap.js call to ensure that it's a register page and add wait function, because without such modification page will load cap.js code before div_for_keycaptcha will be added to the DOM, so this code will not find this divand captcha will be placed at the begin of the registration form.

This post was posted by 217.65.84.8, but signed as 217.65.22.22.

Jason1234h (talkcontribs)

Thanks. Why isn't the captcha location standard with mediawiki like other websites. Do you use captcha on a mediawiki site and is it appearing first (above the username, password and real name sections) on your register page?

217.65.84.8 (talkcontribs)

I'm plugin developer, but I have no my own wiki( It's not default captcha place. Captcha is placed to the form by hooks but there are no hook in MW which runs before addin submit button: Could you open spport ticket on keycaptcha site and provide me ftp access - I'll try to do my best to help you.

This post was posted by 217.65.84.8, but signed as 217.65.22.22.

Jason1234h (talkcontribs)

I'm sorry it took so long to get back to you. I will open a support ticket asap.

Jason1234h (talkcontribs)

I will right away. I'm sorry it took so long to get back to you.

Reply to "How do I change the location of the captcha?"