Jump to content

Contact Form Template Won't Display after Modification


Recommended Posts

I add some Jquery to bottom of my contact-form.tpl file in my theme directory. I was working on it getting it to do what I needed when I made a change that stopped the contact form from being displayed. I backed out all of my changes and set it back to the original file and it still does the same thing. I made sure Smarty was compiling it every load (removed the file completely and it threw and error). Any idea what could be causing this? Smarty debug is enabled but shows no errors.

Link to comment
Share on other sites

Good idea ,,, looks like smarty did not compile it. This is what I found ...

<script type="text/javascript">
   _smarty_console = window.open("","consoled41d8cd98f00b204e9800998ecf8427e","width=680,height=600,resizable,scrollbars=yes");
   _smarty_console.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\">\n<head>\n    <title>Smarty Debug Console<\/title>\n<style type=\"text/css\">\n\nbody, h1, h2, td, th, p {\n    font-family: sans-serif;\n    font-weight: normal;\n    font-size: 0.9em;\n    margin: 1px;\n    padding: 0;\n}\n\nh1 {\n    margin: 0;\n    text-align: left;\n    padding: 2px;\n    background-color: #f0c040;\n    color:  black;\n    font-weight: bold;\n    font-size: 1.2em;\n }\n\nh2 {\n    background-color: #9B410E;\n    color: white;\n    text-align: left;\n    font-weight: bold;\n    padding: 2px;\n    border-top: 1px solid black;\n}\n\nbody {\n    background: black; \n}\n\np, table, div {\n    background: #f0ead8;\n} \n\np {\n    margin: 0;\n    font-style: italic;\n    text-align: center;\n}\n\ntable {\n    width: 100%;\n}\n\nth, td {\n    font-family: monospace;\n    vertical-align: top;\n    text-align: left;\n    width: 50%;\n}\n\ntd {\n    color: green;\n}\n\n.odd {\n    background

Link to comment
Share on other sites

I meant to say display not compile ... Anyway I went through all the smarty Javascript and compared it to other pages and it looks the same. There were no errors anywhere that I could see.

 

By adding my own javascript to the template could I have corrupted something having to do with smarty?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...