Hi guys,
I have a question about the zp_captcha image.
On the earlier builds of ZP the captcha image had a image id like this:
[img]/zp-core/c.php?i=b60751e75c83[/img]
The new captcha image on build 1.4.4 has no id or class, only a img align like this:
[img]/dev/zp-core/zp-extensions/zpCaptcha/c.php?i=7f18b628d6[/img]
Where can I find the img align so I can change this to a id or class. I checked c.php, functions.php, functions-i18n.php and template-functions.php with no luck.
TIA
I have no idea why that "align" is there. That is deprecated in HTML4 and not even valid in HTML5. If really needed inline css should be used but even that should be avoided because it cannot be overriden.
As a workaround you can address of course any surrounding element as well (not familiar with the setup though but in our forms there should be an id/class on those).
Please open a ticket on the bug tracker.
The "old" option is much better because you can overrule the zp-captcha image by CSS. It is easier to line out the zp_captcha image by CSS. Created a ticket in bug tracker.
Old setup is present in zenphoto.php in captcha folder.
$html = '[img]'.WEBPATH .'/'.ZENFOLDER.'/c.php?i='.$cypher.'[/img]'
The only ? is where do you guys hide the img align="middle :-)
Thnx acrylian
Hi acrylian,
Answer is given on github, the img align="middle can be found in https://github.com/zenphoto/zenphoto/blob/master/zp-core/zp-extensions/zpCaptcha.php on line 154.
Changed it to img id="captcha" and now working as previous ZP installs.