1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress Help

Discussion in 'WordPress' started by Maneel, Apr 2, 2007.

  1. #1
    Hello,

    I am using wordpress to develop a static website. Is there any mod with which I can disable comment posting on my pages(NOT posts).

    Thanks.
     
    Maneel, Apr 2, 2007 IP
  2. inman

    inman Peon

    Messages:
    615
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can manually disable commenting at the time of creation of each page or post. Just untick the option as seen on the screenshot.

    [​IMG]
     
    inman, Apr 2, 2007 IP
  3. Maneel

    Maneel Peon

    Messages:
    753
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the tip. Is there anyways with which I can set a PAGE as my homepage ?
     
    Maneel, Apr 2, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,721
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    I am not sure what you mean??
     
    Richie_Ni, Apr 2, 2007 IP
  5. inman

    inman Peon

    Messages:
    615
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    0
    #5
    In Admin section of wordpress, >> Reading >> See the options there.
    An screenshot to clarify
    [​IMG]
     
    inman, Apr 2, 2007 IP
    Maneel likes this.
  6. Maneel

    Maneel Peon

    Messages:
    753
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Well thanks inman again, a rep coming your way!

    Another problem, I successfully disabledd comments but on my site it still says under each page "No Comments".

    ~Maneel
     
    Maneel, Apr 2, 2007 IP
  7. NoobieDoobieDo

    NoobieDoobieDo Peon

    Messages:
    1,456
    Likes Received:
    53
    Best Answers:
    0
    Trophy Points:
    0
    #7
    The code from the wordpress template which shows the "No comments" can be removed manually - but delete with care !
     
    NoobieDoobieDo, Apr 2, 2007 IP
  8. Maneel

    Maneel Peon

    Messages:
    753
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Whats the filename for this ?
     
    Maneel, Apr 2, 2007 IP
  9. Pixelrage

    Pixelrage Peon

    Messages:
    5,083
    Likes Received:
    128
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I'm interested in this, and was looking for some way to globally disallow both comments and the comment box from appearing.
     
    Pixelrage, Apr 4, 2007 IP
  10. propstm

    propstm Peon

    Messages:
    286
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #10
    In the theme i'm using the following code is on my page.php file

    
    	<h1>Comments</h1>
    	<?php comments_template(); // Get wp-comments.php template ?>
    	</div>
    
    HTML:

    That is referencing the wp-comments.php file which contains the following code:

      <!--comments area-->
      <?php if ($comments) : ?>
      <p><?php comments_number(__('No Comment'), __('1 Comment so far'), __('% Comments so far')); ?></p>
    
      <ol id="commentlist">
        <?php foreach ($comments as $comment) : ?>
        <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
            <?php comment_author_link()?> on 
            <?php comment_date('F j, Y') ?>
            <?php comment_time()?>
    		<?php edit_comment_link(__("Edit This"), ''); ?> 
    
          <?php if ($comment->comment_approved == '0') : ?>
          <em>Your comment is awaiting moderation.</em>
          <?php endif; ?>
          <?php 
    					if(the_author('', false) == get_comment_author())
    						echo "<div class='commenttext-admin'>";
    					else
    						echo "<div class='commenttext'>";
    					comment_text();
    					echo "</div>";
    					
    					?>
        </li>
        <?php /* Changes every other comment to a different class */	
    					if ('alt' == $oddcomment){
    						$oddcomment = 'standard';
    					}
    					else {
    						$oddcomment = 'alt';
    					}
    				?>
        <?php endforeach; /* end for each comment */ ?>
      </ol>
      <?php else : // this is displayed if there are no comments so far ?>
      <?php if ('open' == $post-> comment_status) : ?>
      <!-- If comments are open, but there are no comments. -->
      <?php else : // comments are closed ?>
      <!-- If comments are closed. -->
      <p class="nocomments">Comments are closed.</p>
      <?php endif; ?>
      <?php endif; ?>
      <?php if ('open' == $post-> comment_status) : ?>
      <?php endif; // If registration required and not logged in ?>
      <?php endif; // if you delete this the sky will fall on your head ?>
      
    <!-- Comment Form -->
    <div id="commentsform">
        <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
          <?php if ( $user_ID ) : ?>
          
          <p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account') ?>"> Logout &raquo; </a> </p>
          <?php else : ?>
          
          <p><?php _e('Name ');?><?php if ($req) _e('(required)'); ?><br />
          <input type="text" name="author" id="s1" value="<?php echo $comment_author; ?>" size="30" tabindex="1" />
          </p>
          
          <p><?php _e('Email ');?><?php if ($req) _e('(required)'); ?><br />
          <input type="text" name="email" id="s2" value="<?php echo $comment_author_email; ?>" size="30" tabindex="2" />
          </p>
          
          <p><?php _e('Website');?><br />
          <input type="text" name="url" id="s3" value="<?php echo $comment_author_url; ?>" size="30" tabindex="3" />
          </p>
          
          <?php endif; ?>
          <!--<p>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></p>-->
          <p><?php _e('Speak your mind');?><br />
          <textarea name="comment" id="s4" cols="90" rows="10" tabindex="4"></textarea>
          </p>
          
          <p>
            <input name="submit" type="submit" id="hbutt" tabindex="5" value="Submit Comment" />
            <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
          </p>
          <?php do_action('comment_form', $post->ID); ?>
        </form>
      </div>
    <!-- End Comment Form -->
    
    HTML:
    I've commented to denote the portion of the code for the Comment Form portion of the code that is important for the commenting form. I would need to try to tweak it to see how to properly remove the commenting, but that should help you get close to finding the proper result for your particular theme.
     
    propstm, Apr 6, 2007 IP
  11. emilbus20

    emilbus20 Well-Known Member

    Messages:
    733
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    118
    #11
    Look for the semi static front page plugin for a home page. it rockssss
     
    emilbus20, Apr 10, 2007 IP
  12. Anita

    Anita Peon

    Messages:
    1,142
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #12
    To disallow comments on all new posts, click on options then discussion and uncheck the "allow people to post comments on the article" button:

    [​IMG]
     
    Anita, Apr 11, 2007 IP
  13. Pammer

    Pammer Notable Member

    Messages:
    3,417
    Likes Received:
    397
    Best Answers:
    0
    Trophy Points:
    260
    #13
    i have problem with ddsitemap genration sitemap. basically dont know how to make "sitemap" xml.. i mean i had tried many times but no luck :(
     
    Pammer, Apr 11, 2007 IP
  14. Anita

    Anita Peon

    Messages:
    1,142
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #14
    Have you tried using the Google Sitemap Generator Plug-in? It works REALLY well and automatically pings Google. I never had any problems with it.
     
    Anita, Apr 11, 2007 IP
    d16man likes this.
  15. d16man

    d16man Well-Known Member

    Messages:
    6,900
    Likes Received:
    160
    Best Answers:
    0
    Trophy Points:
    180
    #15
    thats a great tool...everyone should be using it...
     
    d16man, Apr 11, 2007 IP
    GTech likes this.
  16. Pammer

    Pammer Notable Member

    Messages:
    3,417
    Likes Received:
    397
    Best Answers:
    0
    Trophy Points:
    260
    #16
    anita, can you help me lil bit ? where that two files "sitemap.xml" and "sitemap.xml.gz" kept in which folder? :confused: . their is quite bit old, as this one 3.02 plugins is new. and thats folder there are many sitemap files.

     
    Pammer, Apr 11, 2007 IP