Forums

Position of the Captcha Image

Beni 09 Dec, 2009
Hi!

...i just want to edit the content, which {imageverification} creates...cause i want the captcha image to be above the securitycode inputfield...

where can i edit the code or the position of the elements, which {imageverification} creates?

Does somebody have an advice for me?

Greets!
GreyHead 09 Dec, 2009
Hi Beni,

This requires a hack of the ChronoForms core code.

In com_chronocontact/chronocontact.html.php around line 208 look for this code
    if ( trim($MyForm->formparams('imagever')) == 'Yes' ) {
  $imver = '<input name="chrono_verification" style="vertical-align:top;" type="text" id="chrono_verification" value="" />
    <img src="'.$CF_PATH.'components/com_chronocontact/chrono_verification.php?imtype='.$MyForm->formparams('imtype').'" alt="" />';
}

Bob
Beni 09 Dec, 2009
Perfect! This is exactly what i was looking for!

..and this is why i like you chronoengine guys and your software so much!

Greets
Beni
jkdesign 04 Feb, 2011
I don't understand. What do I need to change in the code to make the captcha appear above the entry field instead of below it?
GreyHead 04 Feb, 2011
Hi jkdesign ,

Errr . . . you need to edit the HTML snippet so that the <img> tag appears before the <input> tag, and probably add a <br /> too.

Bob
This topic is locked and no more replies can be posted.