romenov.com

11Mar/100

[ Wordpress ] Cforms and Qtranslate problem

Hi,

When you submit a form with cforms and you use the qtranslate plugin, it automatically goes to the back to the default language page, and the form does not submit. Are you having this issue? The solution is below

Solution:

find

$content .= $ntt . '<form enctype="multipart/form-data" action="' . $action . '" method="post" class="cform'.( $cformsSettings['form'.$no]['cforms'.$no.'_dontclear']?' cfnoreset':'' ).'" id="cforms'.$no.'form"&gt;' . $nl;

insert the following BEFORE $content .= $ntt ..

if(strstr(get_locale(),'xx')!="") $action = '/xx'.$action;

replace xx with the two letter language code of the non default language

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.