ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Killed Comment Page

April 04, 2008 10:19pm

Subscribe [1]
  • #1 / Apr 04, 2008 10:19pm

    timmah

    4 posts

    the idiot that i am, i did not have “Save Template Revisions” checked.
    flogging may proceed.

    here’s what i did:

    “comments” template and pages tested and working perfect.

    1. only went into “comments” template to change it to delete right column info to simplify page.
    2. pulled out “member” sign in from comment page under “left column” while retaining it in “right column”.
    3. left working non-member comment form in place.
    4. was 100% certain i touched no other code.
    5. saved template and….. blank screen now shows up. bizarre thing is when viewing page source, there is no code.


    i’ve racked my brain cell trying to diagnose.
    searched in here and can’t find what i could have done.

    help!

    here’s the blog:
    http://www.sdcc.info/ee/index.php

    i’ll email you or post template code if you are so inclined to help an idiot.

    thanks in advance!
    timmah

  • #2 / Apr 06, 2008 10:38am

    Robin Sowell

    13255 posts

    Hm- can you paste the contents of the comment template inside code tags?  Probably something small throwing it off.  Could also try turning on template debugging in ‘Admin- System Prefs- Output and Debug’ as that will give you some idea of what’s going on- if you view the rendered template as a logged in superadmin.

  • #3 / Apr 06, 2008 10:47am

    timmah

    4 posts

    hi robin,

    my theory was something silly/easy too that i just can’t see yet.

    here ya go:

    {assign_variable:my_weblog="default_site"}
    {assign_variable:my_template_group="site"}
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <title>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</title>
    <meta http-equiv="Content-Type" content="text/html; charset={charset}" />
    
    <link rel='stylesheet' type='text/css' media='all' href='{stylesheet={my_template_group}/site_css}' />
    <style type='text/css' media='screen'>@import "{stylesheet={my_template_group}/site_css}";</style>
    
    <link rel="alternate" type="application/rss+xml" title="RSS" href="{path={my_template_group}/rss_2.0}" />
    <link rel="alternate" type="application/atom+xml" title="Atom" href="{path={my_template_group}/atom}" />
    
    </head>
    
    <body>
    
    <div id="topbar"></div>
    <div class="secondbar"></div>
    
    
    <div id="wrapper">
    <div id="header">
    
    
    {embed="site/address-header"}
    
    
    <div id="blogtitle"><h1>{exp:weblog:info weblog="{my_weblog}"}{blog_title}{/exp:weblog:info}</h1></div>
    <div class="spacer"></div>
    </div>
    <div class="secondbar"></div>
    
    <div class="spacer"></div>
    
    <div id="content">
    
    <div id="blog">
    <h2 class="title">Discuss this article</h2>
    
    {exp:weblog:entries limit="1" disable="member_data|trackbacks"}
    <div class="entry">
    <h2 class="title">{title}</h2>
    
    {summary}
    
    {body}
    
    <div class="posted">Posted on {entry_date format='%m/%d/%Y'} at {entry_date format='%h:%i %A'}
    
    
    
    {if allow_trackbacks}
    ({trackback_total}) <a href="http://{trackback_path=">Trackbacks</a> •
    {/if}
    <a href="http://{title_permalink={my_template_group}/index}">Permalink</a>
    
    </div>
    </div>
    {/exp:weblog:entries}
    
    <h2 class="title">Discussion so far</h2>
    
    
    
    {exp:comment:entries weblog="{my_weblog}" limit="25"}
    <div class="entry">
     
    <div class="sidetitle">{url_or_email_as_author}  said:</div>
    {comment}
    {if no_results}
    
    <h2 class="sidetitle">Start the discussion!</h2>
    
    
    {/if}
    
    
    </div>
    
    {/exp:comment:entries}
    
    
    <div class="entry">
    {exp:comment:form preview="{my_template_group}/comment_preview"}
    
    
    <h2 class="sidetitle">To Discuss as Non-Member:</h2>
    
    *Name, or type Anonymous:
    
    <input type="text" name="name" value="{name}" size="50" />
    
    
    Email:
    
    <input type="text" name="email" value="{email}" size="50" />
    
    
    Location/Neighborhood:
    
    <input type="text" name="location" value="{location}" size="50" />
    
    
    Website you want to share:
    
    <input type="text" name="url" value="{url}" size="50" />
    
    
    {/if}
    
    
     [For humor.]
    
    
    
    
    *Your Comment:
    <textarea name="comment" cols="50" rows="12">{comment}</textarea>
    
    * = Required fields.
    {if logged_out}
    If you entered your email address above, you can also check:
    <input type="checkbox" name="save_info" value="yes" {save_info} /> Remember my personal information
    {/if}
    
    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?
    
    {if captcha}
    <b>To prove you are human, please submit the word you see below:</b>
    
    {captcha}
    
    
    <input type="text" name="captcha" value="" size="20" maxlength="20" style="width:140px;" />
    
    {/if}
    
    <input type="submit" name="submit" value="Submit" />
    <input type="submit" name="preview" value="Preview" />
    
    {/exp:comment:form}
    </div>
    
    
    
    </div>
    <div id="sidebar">
    
    {embed="site/top-right"}
    
    <h2 class="sidetitle">About</h2>
    The Shore Drive Community Coalition is a diverse group of civic leagues, condominiums and community associations located along Shore Drive in Virginia Beach, VA.
    
    
    <h2 class="sidetitle">Monthly Archives</h2>
    <ul>
    {exp:weblog:month_links weblog="{my_weblog}"}
    <li><a href="http://{path={my_template_group}/index}">{month} {year}</a></li>
    {/exp:weblog:month_links}
    <li><a href="http://{path={my_template_group}/archives}">Complete Archives</a></li>
    <li><a href="http://{path={my_template_group}/categories}">Category Archives</a></li>
    </ul>
    
    
    <h2 class="sidetitle">Most recent entries</h2>
    <ul>
    {exp:weblog:entries orderby="date" sort="desc" limit="15" weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
    <li><a href="http://{title_permalink={my_template_group}/index}">{title}</a></li>
    {/exp:weblog:entries}
    </ul>
    
    
    <h2 class="sidetitle">Syndicate</h2>
    <ul>
    <li><a href="http://{path={my_template_group}/atom}">Atom</a></li>
    <li><a href="http://{path={my_template_group}/rss_2.0}">RSS 2.0</a></li>
    
    </ul>
    
    
    
    </div>
    </div>
    
    <br class="spacer" >
    <div id="footer">
    
    
    
    
    <a href="http://www.pmachine.com/">Powered by ExpressionEngine</a>
    
    </div>
    </div>
    </body>
    </html>
  • #4 / Apr 06, 2008 10:52am

    Robin Sowell

    13255 posts

    Let’s see- first thing I spot- you’re closing an if, but I can’t see where you started it:

    {exp:comment:form preview="{my_template_group}/comment_preview"}
    
    
    <h2 class="sidetitle">To Discuss as Non-Member:</h2>
    
    *Name, or type Anonymous:
    
    <input type="text" name="name" value="{name}" size="50" />
    
    
    Email:
    
    <input type="text" name="email" value="{email}" size="50" />
    
    
    Location/Neighborhood:
    
    <input type="text" name="location" value="{location}" size="50" />
    
    
    Website you want to share:
    
    <input type="text" name="url" value="{url}" size="50" />
    
    
    {/if}

    Suspect you want an {if logged_out} in there.  See if that helps.  And we can poke more if it doesn’t.

  • #5 / Apr 06, 2008 11:15am

    timmah

    4 posts

    THANKS!!!

    at least it was more complicated than a missing carrot.

    😊

    thanks again robin…

    p.s.
    not sure what the debugging rendering should have done, but nothing came up. we’re still on 1.5.2.

  • #6 / Apr 06, 2008 11:21am

    Robin Sowell

    13255 posts

    Not dead sure what it would have shown either.  But now we don’t care 😉!

    Glad it was a simple fix.  Extra eyeballs are always handy for stuff like this.  (Chants ‘Upgrade.  Upgrade,’ under her breath.)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases