• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Integration KCAPTCHA

Integration KCAPTCHA 17 years 2 months ago #2638

Very good system! A good idea to tie it to rsform

KCAPTCHA project
The administrator has disabled public write access.

Re:Integration KCAPTCHA 17 years 2 months ago #2705

Hi!

I have got.

1. download \"kcaptcha\" and unpack in the folder \"includes\"
2. edit the file: /components/com_forme/forme.html.php, and change this line
$html = str_replace('{field}','<img src=\"'.$mosConfig_live_site.'/components/com_forme/captcha.php\"/><br/><input type=\"text\" name=\"form['.$row->name.']\" value=\"'.$row->default_value.'\" id=\"'.$row->name.'\" '.$row->params.' style=\"width:74px;text-align:center;\" />'.$errmsg,$html);

to
$html = str_replace('{field}','<input type=\"text\" name=\"form['.$row->name.']\" value=\"'.$row->default_value.'\" id=\"'.$row->name.'\" '.$row->params.' /><br /><img src=\"'.$mosConfig_live_site.'/includes/kcaptcha/index.php?'. session_name() .'='. session_id() .'\" />'.$errmsg,$html);

3. edit the file: /components/com_forme/forme.php, and change this line
//check session
					if(isset($_SESSION['CAPTCHA'])){
						if(isset($form_data[$field->name])){
							if(strtoupper($form_data[$field->name])!=$_SESSION['CAPTCHA']){
								$_SESSION['formmsg'][$field->name][] = ($field->validation_message == '') ? _FORME_FRONTEND_REGISTRA_CAPTCHA : $field->validation_message;
							}
						}
					}

to
//check session
					if(isset($_SESSION['captcha_keystring'])){
						if(isset($form_data[$field->name])){
							if(strtolower($form_data[$field->name]) !== $_SESSION['captcha_keystring']){
								$_SESSION['formmsg'][$field->name][] = ($field->validation_message == '') ? _FORME_FRONTEND_REGISTRA_CAPTCHA : $field->validation_message;
							}
						}
					}

Before the change, do not forget to make a backup of the affected files files
The administrator has disabled public write access.

Re:Integration KCAPTCHA 17 years 1 month ago #2881

  • randev
  • randev's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Hi, could you please update these instructions for version RSform 1.0.4 using Joomla 1.5x? I cannot find the line you mentioned, also it looks like the captcha.php file was integrated into another file. Thanks.
The administrator has disabled public write access.

Re:Integration KCAPTCHA 17 years 1 month ago #2882

Hi

I have no component for Joomla 1.5 RSform.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!