Du bist nicht angemeldet. Der Zugriff auf einige Boards wurde daher deaktiviert.

#1 16. Juli 2012 15:42

KL1900
hat von CMS/ms gehört
Registriert: 16. Juli 2012
Beiträge: 5

Fehlermeldung nach Templatebearbeitung

Hallo,

ich bastel gerade am Template innerhalb des Adminbereichs. Jedes mal, wenn ich auf "Übernehmen" geh und die Seite aktualisiere, kommt folgendes am Seitenbeginn:

string(127) "Smarty error: [in tpl_body:23 line 120]: syntax error: unrecognized tag: this.value = ''; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 120]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(133) "Smarty error: [in tpl_body:23 line 120]: syntax error: unrecognized tag: this.value = 'Name *'; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 120]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(127) "Smarty error: [in tpl_body:23 line 121]: syntax error: unrecognized tag: this.value = ''; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 121]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(135) "Smarty error: [in tpl_body:23 line 121]: syntax error: unrecognized tag: this.value = 'E-Mail *'; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 121]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(127) "Smarty error: [in tpl_body:23 line 122]: syntax error: unrecognized tag: this.value = ''; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 122]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(138) "Smarty error: [in tpl_body:23 line 122]: syntax error: unrecognized tag: this.value = 'Nachricht *'; (Smarty_Compiler.class.php, line 446)" string(112) "Smarty error: [in tpl_body:23 line 122]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

Wenn ich dann wieder aktualisier, ist es wieder weg, wie wenn nichts gewesen wäre.

Offline

#2 16. Juli 2012 15:59

nicmare
Server-Pate
Registriert: 15. Dezember 2010
Beiträge: 1.314
Webseite

Re: Fehlermeldung nach Templatebearbeitung

sieht so aus als fehlt {literal}{/literal}

Offline

#3 16. Juli 2012 17:13

KL1900
hat von CMS/ms gehört
Registriert: 16. Juli 2012
Beiträge: 5

Re: Fehlermeldung nach Templatebearbeitung

{literal}<form id="quickcontact" method="post" action="#">
                        <input type="text" name="name" id="quickcontact_name" class="requiredfield" onFocus="if(this.value == 'Name *') { this.value = ''; }" onBlur="if(this.value == '') { this.value = 'Name *'; }" value='Name *'/>
                        <input type="text" name="email" id="quickcontact_email" class="requiredfield" onFocus="if(this.value == 'E-Mail *') { this.value = ''; }" onBlur="if(this.value == '') { this.value = 'E-Mail *'; }" value='E-Mail *'/>
                        <textarea name="message" id="quickcontact_message" class="requiredfield" onFocus="if(this.value == 'Nachricht *') { this.value = ''; }" onBlur="if(this.value == '') { this.value = 'Nachricht *'; }">Nachricht *</textarea>
                        <button type="submit" name="send">Versenden</button>
                        <span class="errormessage">Bitte &uuml;berpr&uuml;fen Sie die markierten Felder.</span>
                        <span class="successmessage">Ihre Nachricht wurde erfolgreich versandt!</span>
                        <span class="sendingmessage">Versenden...</span>     
                        </form>{/literal}

Sprich so? Es ist zwar jetzt behoben, aber tangiert das den Text dazwischen denn überhaupt?

Offline

#4 16. Juli 2012 17:25

nicmare
Server-Pate
Registriert: 15. Dezember 2010
Beiträge: 1.314
Webseite

Re: Fehlermeldung nach Templatebearbeitung

ja klar. du siehst doch die geschweiften klammern in deinem code. smarty denkt, es handelt sich um smartycode was aber falsch ist. denn es handelt sich um javascript. also muss man smarty davon abhalten, das zu verarbeiten. dafür gibts {literal}

Offline

#5 16. Juli 2012 17:31

KL1900
hat von CMS/ms gehört
Registriert: 16. Juli 2012
Beiträge: 5

Re: Fehlermeldung nach Templatebearbeitung

Ah, natürlich, jetzt machts klick. Danke!

Offline