I am currently developing a site where we have integrated niceForms by emblematiq
unfortunately it does currently involve a small hack to the "forms content part" core file > includes/inc_front/content/cnt23.article.inc.php
This is so we can introduce the form class in the form element rather than as the class of the container <div>
Here goes.. download the package form here then...
Upload the various files to the relevant folders (as per the zip structure)
Add the following to your template 'html head' area...
Code: Select all
<script type="text/javascript" src="template/inc_js/niceForms.js"></script>
Code: Select all
niceForms.css
...Now for the code changes...
Edit your core file includes/inc_front/content/cnt23.article.inc.php as follows...
Find...
Code: Select all
if($form_cnt) {
$form_cnt = str_replace('###RESET###', '', $form_cnt);
$cnt_form["class_close"] = '';
if($cnt_form["class"]) {
$CNT_TMP .= '<div class="'.$cnt_form["class"].'">';
$cnt_form["class_close"] = '</div>';
}
$CNT_TMP .= $form_error_text;
$CNT_TMP .= '<form name="phpwcmsForm'.$crow["acontent_id"].'" id="phpwcmsForm'.$crow["acontent_id"].'" class="niceform" ';
$CNT_TMP .= 'action="'.FE_CURRENT_URL.'#jumpForm'.$crow["acontent_id"].'" method="post" enctype="multipart/form-data">';
Code: Select all
if($form_cnt) {
if($form_cnt) {
$form_cnt = str_replace('###RESET###', '', $form_cnt);
$cnt_form["class_close"] = '';
if($cnt_form["class"]) {
$CNT_TMP .= '<div class="'.$cnt_form["class"].'">';
$cnt_form["class_close"] = '</div>';
$class=' class="'.$cnt_form["class"].'" ';
}else {$class="";}
$CNT_TMP .= $form_error_text;
$CNT_TMP .= '<form name="phpwcmsForm'.$crow["acontent_id"].'" id="phpwcmsForm'.$crow["acontent_id"].'" '.$class;
$CNT_TMP .= 'action="'.FE_CURRENT_URL.'#jumpForm'.$crow["acontent_id"].'" method="post" enctype="multipart/form-data">';
...and please do the right thing by leaving in the copyright intact - it is only visible in the code, not on the page so there are NO geniune excuses.