How to use Joomla recaptcha plugin with my custom module?

后端 未结 3 1451
轮回少年
轮回少年 2020-12-02 23:32

I have created a custom module for my contactus form. Now I want to use Joomla recaptcha plugin with this module.

Any idea how to get this done?

3条回答
  •  无人及你
    2020-12-03 00:14

    Following up on Irfan's code, additionally I had to do the following for the captcha to show up:

    Add the following to the template code.

    JHtml::_('behavior.keepalive');
    

    Apparently it includes the mootools library.

    It seems that an event domready is added, but the event only fires when mootools library is used. So just check your html source and see if mootools is being used. I might be completely wrong but hope my solution helps someone.

提交回复
热议问题