Skip to main content

Where is controller php for HikaShop registration

More
13 years 5 months ago #104773 by adzy1981
Hi Guys,

I am trying to implement a captcha solution based on images rather than the usual distorted text (the solution is called peoplesign).
I have the custom plugin installed and I have the custom image captcha solution appearing on the registration form as I would expect.

I edited the user/registration.php file from Hikashop -> Display-> Views-> and added the code below, just above the "Register" button:

<?php
JFactory::getApplication()->triggerEvent('showPeoplesignAtCustomLocation', array('myCustomLocation1','customizationString'));
?>


I have been told that I need to add the code below to the script that processes the form, by placing the code at the beginning of the controller.php file (or the file that controls the form)

$status = JFactory::getApplication()->triggerEvent(
'checkPeoplesignFromCustomLocation',
array('myCustomLocation1'));
if (!$status[0]){
JFactory::getApplication()->redirect();
}



What file controls the HikaShop user registration form. I just need to know where to add the code that's all.

Thanks

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #104786 by nicolas
Hi,

You can add it at the beginning of the "register" function of the file administrator/components/com_hikashop/classes/user.php

Please Log in or Create an account to join the conversation.

More
13 years 5 months ago #105083 by adzy1981
Thanks Nicolas,

It worked perfectly :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum