• Page:
  • 1

Can it be used with custom modules?

Can it be used with custom modules? 3 years, 5 months ago #2996

Hi,

I have successfully used this plugin with the my custom contact component.

Now I have a module where I want to use it, I tried creating a file in xi_captcha/class/captcha_mod_contactus.php. But No success :( .

Can it be integrated with a module same way like with a component?

I am new to joomla.

Thanks,
Kamal
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 5 months ago #2998

  • Shyam
  • Official Support
  • OFFLINE
  • Before Asking Issues, See Documentation Section
  • Posts: 1480
Kamal,

Sorry, but this can not be applied on Modules.
For custom modules you can do the work this way -
1. Add Captcha Image and Text box, as added in other forms
2. Now when module submit information, (e.g. if you are trying to add it for Login form, then login form submits information to com_user component), so you can apply the verification task and option as per that component.

So if your module, submits information to com_XYZ, then write a file captcha_com_XYZ.php, and modify code of your module.

Thanks
Shyam
Please rate our Product and Services,
At Joomla Extensions Directory : bit.ly/dzBiTq
At JomSocial Extensions Directory : bit.ly/cxJgUy
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 5 months ago #3025

Shyam,

Thanks for your prompt reply.

I'll try to integrate it with my module.

--Kamal
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 5 months ago #3122

Moderator wrote:
Kamal,

Sorry, but this can not be applied on Modules.
For custom modules you can do the work this way -
1. Add Captcha Image and Text box, as added in other forms
2. Now when module submit information, (e.g. if you are trying to add it for Login form, then login form submits information to com_user component), so you can apply the verification task and option as per that component.

So if your module, submits information to com_XYZ, then write a file captcha_com_XYZ.php, and modify code of your module.

Thanks
Shyam


Hi Shyam,

I am generating the image in module using
$image1 =JRoute::_("index.php?option=com_joomlaxi&task=generateModuleImage1&value=",false);

It saves the captcha value in variable say captcha_moduleContact using Jsession as was done before in the case of component.

But when i verify it in components, It sometimes is not able to read the value of that variable and thus does not verify successfully.

Please Suggest.

Thanks,
Kamal
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 5 months ago #3130

  • Shyam
  • Official Support
  • OFFLINE
  • Before Asking Issues, See Documentation Section
  • Posts: 1480
The variable name should not be changed. Keep it same as we show on registration form.

Thanks
Shyam
Please rate our Product and Services,
At Joomla Extensions Directory : bit.ly/dzBiTq
At JomSocial Extensions Directory : bit.ly/cxJgUy
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 4 months ago #3156

Moderator wrote:
The variable name should not be changed. Keep it same as we show on registration form.

Thanks
Shyam


My module and component are in the same page, that's why I can't use the same variable, because whatever captcha is loaded last, value of that captcha is stored.

Can't I use two different variables?

Thanks,
Kamal
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 4 months ago #3158

  • Shyam
  • Official Support
  • OFFLINE
  • Before Asking Issues, See Documentation Section
  • Posts: 1480
You MUST not use multiple captcha on same page, as when we generate Image for some user, we store its value in session. So in any way, you cannot use multiple captcha on same page.

Thanks
Shyam
Please rate our Product and Services,
At Joomla Extensions Directory : bit.ly/dzBiTq
At JomSocial Extensions Directory : bit.ly/cxJgUy
The topic has been locked.

Re: Can it be used with custom modules? 3 years, 3 months ago #3978

Latest version of Joomlaxi Captcha (XIJC) - 2.0 has been released.

You can read more about new captcha from here:
www.joomlaxi.com/company/blog/107-joomlaxi-captcha-20.html

Thanks
Vishal Agarwal
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.30 seconds

Recent News