Buy Shares - Buy PSP - Singapore Shopping Guide - Fast Loans - Credit Cards

PDA

View Full Version : Wordpress Help


Maneel
Apr 2nd 2007, 4:30 am
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.

inman
Apr 2nd 2007, 4:53 am
You can manually disable commenting at the time of creation of each page or post. Just untick the option as seen on the screenshot.

http://img133.imageshack.us/img133/6375/wpep6.jpg

Maneel
Apr 2nd 2007, 4:57 am
Thanks for the tip. Is there anyways with which I can set a PAGE as my homepage ?

Richie_Ni
Apr 2nd 2007, 5:07 am
Thanks for the tip. Is there anyways with which I can set a PAGE as my homepage ?
I am not sure what you mean??

inman
Apr 2nd 2007, 6:44 am
Thanks for the tip. Is there anyways with which I can set a PAGE as my homepage ?
In Admin section of wordpress, >> Reading >> See the options there.
An screenshot to clarify
http://img376.imageshack.us/img376/9971/readingsr6.png

Maneel
Apr 2nd 2007, 6:47 am
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

NoobieDoobieDo
Apr 2nd 2007, 6:50 am
The code from the wordpress template which shows the "No comments" can be removed manually - but delete with care !

Maneel
Apr 2nd 2007, 6:55 am
The code from the wordpress template which shows the "No comments" can be removed manually - but delete with care !
Whats the filename for this ?

markn26
Apr 4th 2007, 1:38 pm
I'm interested in this, and was looking for some way to globally disallow both comments and the comment box from appearing.

propstm
Apr 6th 2007, 11:35 am
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>



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 -->


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.

emilbus20
Apr 10th 2007, 6:30 pm
Look for the semi static front page plugin for a home page. it rockssss

Anita
Apr 11th 2007, 10:06 am
To disallow comments on all new posts, click on options then discussion and uncheck the "allow people to post comments on the article" button:

http://codex.wordpress.org/images/5/55/options-discussion1.png

Pammer
Apr 11th 2007, 10:44 am
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 :(

Anita
Apr 11th 2007, 11:02 am
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 :(

Have you tried using the Google Sitemap Generator Plug-in (http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final)? It works REALLY well and automatically pings Google. I never had any problems with it.

d16man
Apr 11th 2007, 11:09 am
Have you tried using the Google Sitemap Generator Plug-in (http://www.arnebrachhold.de/2005/06/05/google-sitemaps-generator-v2-final)? It works REALLY well and automatically pings Google. I never had any problems with it.

thats a great tool...everyone should be using it...

Pammer
Apr 11th 2007, 10:32 pm
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.

Create the sitemap files and make them writable
If you can't make your blog root folder writable or don't want to do so, you can create two new files, name them "sitemap.xml" and "sitemap.xml.gz", upload them to your blog root and use a FTP program to apply CHMOD 755 or 777 to them. To create these files, simply open Notepad, click on "File > Save As", choose "Filetype: All File" and enter "sitemap.xml" as the name. Repeat this step for "sitemap.xml.gz".