• Resolved mark-w

    (@mark-w)


    Hi,

    I made a test Page on my site. I have user comments enabled for the page. Where exactly can users make comments though? I’m logged in as admin and I don’t see any space on the Page to start a user comment?

    Thanks,
    Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • Does your Page template (usually page.php unless you’ve made a custom template) include the following:

    <?php comments_template(); ?>

    and

    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>

    If not, you can either look over the index.php and put them into your Page template in the same places, or simply delete page.php, at which point wp will use index.php for the Page template. More info: Template_Hierarchy

    Thread Starter mark-w

    (@mark-w)

    Oh that is dope it is working now. You’re right, it was just that my theme didn’t have the right comments code added.

    Related to this, is there anyway to preserve formatting of a comment? For example if I wanted to comment with some formatted C++ code, right now all the indentation gets lost:

    for (int y = 0; y < 50; y++) {
    for (int x = 0; x < 25; x++) {
    DoSomething(x,y);
    }

    Can users enter a <PRE> tag around it or something?

    <PRE>
    for (int y = 0; y < 50; y++) {
    for (int x = 0; x < 25; x++) {
    DoSomething(x,y);
    }
    </PRE>

    Thanks,
    Mark

    Sorry, I don’t know anything about that. Seems like there might be a plugin or two to help manage that; you might try the repositories listed here: Plugins or search the forum for keywords like “keep code formatted” or some such (keeping in mind that the search function is based on crap yahoo search).

    Thread Starter mark-w

    (@mark-w)

    ok will do thanks for your help,

    Mark

    In older themes you can find what html tags are allowed in comments:
    HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

    Thread Starter mark-w

    (@mark-w)

    ok yeah I got a syntax hilighter plugin and with a little configuration it is working great,

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Where do you submit comments for a Page?’ is closed to new replies.