WordPress.org

Ready to get started?Download WordPress

Forums

Comments not working. (10 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

    I just installed word press and my comments don't work (I'm trying to use pop-up comments). The site is http://mi-zabe.net/wp/wp.php Anyone know what the problem might be?

  2. moshu
    Member
    Posted 9 years ago #

    the link doesn't work :(

  3. Where's your index.php file?

  4. carthik
    Member
    Posted 9 years ago #

    you do not seem to have an index.php. The comments don't work because you do not have an index.php and the comments are displayed on index.php
    The wp.php file is a relic that has been around for a while. It basically gives you a look at what the unstyled content looks like. So it may not work like you want it to...
    If you want to rename your index.php change "blogfilename" in the options table in your "options" table (using phpmyadmin or similar) to what you want to call your index.php.

  5. Anonymous
    Unregistered
    Posted 9 years ago #

    I have a index.php file though. It's in my FTP I don't know why it's not working..
    backticks<?php
    /* Don't remove this line. */
    require('./wp-blog-header.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head profile="http://gmpg.org/xfn/1">
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
    <style type="text/css" media="screen">
    @import url( <?php echo get_settings('siteurl'); ?>/wp-layout.css );
    </style>
    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php //comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>
    <body>
    <div id="rap">
    <h1 id="header">"><?php bloginfo('name'); ?></h1>
    <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <?php the_date('','<h2>','</h2>'); ?>
    <div class="post">
    <h3 class="storytitle" id="post-<?php the_ID(); ?>">" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></h3>
    <div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> — <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
    <div class="storycontent">
    <?php the_content(); ?>
    </div>
    <div class="feedback">
    <?php wp_link_pages(); ?>
    <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
    </div>
    <!--
    <?php trackback_rdf(); ?>
    -->
    <?php include(ABSPATH . 'wp-comments.php'); ?>
    </div>
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    </div>
    <div id="menu">

    </div>
    </div>
    <p class="credit"><!--<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by WordPress"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform")); ?></cite>
    </body>
    </html>
    backticks
    I haven't changed anything in it.

  6. Anonymous
    Unregistered
    Posted 9 years ago #

    I have a index.php file though. It's in my FTP I don't know why it's not working.. I haven't changed anything in it, but I don't know how to post a code on here to show it to you.

  7. Mark (podz)
    Support Maven
    Posted 9 years ago #

    That index file is not the one being used at the link above.
    There is no menu in the linked one....

  8. Anonymous
    Unregistered
    Posted 9 years ago #

    ^ Sorry about that...that's my code in my index.php file.

  9. Mark (podz)
    Support Maven
    Posted 9 years ago #

    It isn't......... we need the code for the page you have a problem with, and if that page is wp.php, post that.
    In the code above, you have thw wp version stuff, so I should see the wp version..
    <meta name="generator" content="WordPress " /> <!-- leave this for stats -->
    I don't.

  10. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Right....http://mi-zabe.net/wp/index.php works.
    Your comments also work - there's a guy from Texas already posted.
    Edit index.php

    <?php //comments_popup_script(); // off by default ?>

    Make that line line this:

    <?phpcomments_popup_script(); // off by default ?>

    Popups will then work.
    And go here:
    http://www.tamba2.org.uk/wordpress/spam

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.