IK heb NMS voor een website geupdate naar de laatste versie en wat bij opviel is dat eer wat dingen zijn aangepast. Dit heb ik nu allemaal gewijzigt en het werkt alemaal goed.
IK heb Captcha uitgeschakels door deze regel te gebruiken:
{NMS nocaptcha="true"}
Dit werkt goed behalve op de Contact pagina waar een Formbuilder formulier staat met Captcha aan.
Nu heb ik het Captcha deel al uit het NMS inschrijformulier gesloopt alleen ik krijg als ik naar de contact pagina ga deze melding onderaan en hij laad de pagina css niet in:
Code: Select all
Catchable fatal error: Object of class stdClass could not be converted to string in /public/sites/www.peeponline.nl/tmp/templates_c/NMS^f1b142ac30b30ac5ecffdb4f476955441cf7d01b.module_db_tpl.NMS;nms_subscribeform.php on line 47
Mijn inschrijfformulier:
Code: Select all
<div class="nms_subscribe">
{if isset($message) && $message ne ""}
{if isset($error) && $error == 1}
<div class="danger">{$message}</div>
{else}
<div class="success">{$message}</div>
{/if}
{/if}
{if isset($lists) && count($lists)}
{$formstart}{$formhidden|default:''}
<div class="row">
<label for="nms_email">*{$mod->Lang('emailaddress')}:</label> <br />
<input type="text" id="nms_email" name="{$actionid}nms_email" value="{$user.email}" size="50" maxlength="150"/> <br />
</div>
<div class="row">
<label for="nms_name">{$mod->Lang('name')}:</label> <br />
<input type="text" id="nms_name" name="{$actionid}nms_username" value="{$user.username}" size="30" maxlength="150"/> <br />
</div>
{if isset($fields)}
{foreach $fields as $name => $obj}
{$the_id="nms_field_{$obj.id}"}
{$the_name="{$actionid}nms_field_{$obj.id}"}
{$the_val=''}{if isset($user.fields[$obj.id])}{$the_val=$user.fields[$obj.id]}{/if}
<div class="row">
<label for="{$the_id}">{if $obj.required}*{/if}{$obj.prompt}:</label>
{if $obj.type == 'textbox'}
<input id="{$the_id}" type="text" name="{$the_name}" value="{$the_val}" {if $obj.required}required{/if}/>
{elseif $obj.type == 'textarea'}
<textarea id="{$the_id}" name="{$the_name}" {if $obj.required}required{/if}>{$the_val}</textarea>
{elseif $obj.type == 'checkbox'}
<input id="{$the_id}" type="checkbox" value="1" name="{$the_name}" {if $obj.required}required{/if} {if $the_val==1}checked="checked"{/if}/>
{elseif $obj.type == 'dropdown'}
<select id="{$the_id}" name="{$the_name}"/>{html_options options=$obj.options selected=$the_val}</select>
{/if}
</div>
{/foreach}
{/if}
{if count($lists) == 1}
{foreach $lists as $name => $row}
<input type="hidden" name="{$actionid}nms_lists[]" value="{$row.listid}"/>
{/foreach}
{else}
{foreach $lists as $name => $row}
{$the_id='list_'|cat:{$row.listid}}
<div class="row">
<input type="checkbox" id="{$the_id}" name="{$actionid}nms_lists[]" value="{$row.listid}" {if in_array($row.listid,$user.lists)}checked="checked"{/if}/>
<label for="{$the_id}">{$row.name}</label>{if $row.description}<br/>{$row.description}{/if}
</div>
{/foreach}
{/if}
<div class="row">
<br />
<input type="submit" name="{$actionid}nms_submit" value="{$mod->Lang('submit')}"/>
</div>
{$formend}
{/if}
</div>{* .nms_subscribe *}
Gr Pascal