Loading

How to modify the Wordpress comment Form

About: How to modify the Wordpress comment Form, modify wordpress comment form, edit wordpress comment, delete wordpress comment, remove website entry from wordpress comment, remove name from wp comment form, remove name from wordpress comment. 

Code Of the comment.php that i had in my theme, here the section marked in red is the “Form” section that needs to be edited.

<!– You can start editing here. –>
<?php if ( have_comments() ) : ?>
<h3 id=”comments”><?php comments_number(‘No Responses’, ‘One Response’, ‘% Responses’ );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
<ol>
<?php wp_list_comments(‘avatar_size=60′); ?>
</ol>
<div>
<div>
<?php previous_comments_link() ?>
</div>
<div>
<?php next_comments_link() ?>
</div>
</div>
<?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>Comments are closed.</p>
<?php endif; ?>
<?php endif; ?>
<?php if (‘open’ == $post->comment_status) : ?>
<div id=”respond”>
<h3>
<?php comment_form_title( ‘Leave a Reply’, ‘Leave a Reply to %s’ ); ?>
</h3>
<div> <small>
<?php cancel_comment_reply_link(); ?>
</small> </div>
<?php if ( get_option(‘comment_registration’) && !$user_ID ) : ?>
<p>You must be <a href=”<?php echo get_option(’siteurl’); ?>/wp-login.php?redirect_to=<?php echo urlencode(get_permalink()); ?>”>logged in</a> to post a comment.</p>
<?php else : ?>
<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 wp_logout_url(get_permalink()); ?>” title=”Log out of this account”>Log out &raquo;</a></p>
<?php else : ?>
<p>
<input type=”text” name=”author” id=”author” value=”<?php echo $comment_author; ?>” size=”22″ tabindex=”1″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”author”><small>Name
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
<p>
<input type=”text” name=”email” id=”email” value=”<?php echo $comment_author_email; ?>” size=”22″ tabindex=”2″ <?php if ($req) echo “aria-required=’true’”; ?> />
<label for=”email”><small>Mail (will not be published)
<?php if ($req) echo “(required)”; ?>
</small></label>
</p>
<p>
<input type=”text” name=”url” id=”url” value=”<?php echo $comment_author_url; ?>” size=”22″ tabindex=”3″ />
<label for=”url”><small>Website</small></label>
</p>
<?php endif; ?>
<!–<p><small><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></small></p>–>
<p>
<textarea name=”comment” id=”comment” cols=”100%” rows=”10″ tabindex=”4″></textarea>
</p>
<p>
<input name=”submit” type=”submit” id=”submit” tabindex=”5″ value=”Submit Comment” />
<?php comment_id_fields(); ?>
</p>
<?php do_action(‘comment_form’, $post->ID); ?>
</form>
<?php endif; // If registration required and not logged in ?>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
<div style=”clear: both;”></div>

How to: Remove the “Comments are closed Notice” So the Form part is the part of the wordpress comment code that is of our interest to edit. so what all modifications could be made to this comments section. usually when comments are disabled it shows a message on the page as ” <p>Comments are closed.</p> This looks a bit unprofessional, so this needs to be removed, do a ctrl + F and find the section and remove part  <p>Comments are closed.</p> and replace with <p> </p>

How to: Edit the Comment Form .  Some websites would be of a kind where in the comment form would only require website and name, while some require only name and email, while some wanted to make it simple and just require the name only. Here is the form part and i will break up the highlighted part into 3 name, email and website. Just remove the section from the code that you dont want. simple as that.

Read the rest of this entry »

How to modify the Wordpress comment Form

How to Mass delete autosaved posts or Post revisions in Wordpress

The tutorial covers, How to Mass delete autosaved posts or Post revisions in Wordpress, how to delete the post revisions at one go using PHPMYADMIN and SQL query.

Step 1: Open your phpMyAdmin Control panel
Step 2: Click on the SQL tab to open the sql query text box
Step 3: Type the blow query made by Andrei Neculau

Note that if your Wordpress DB Prefix is other than the default WP, Change that in the query. And execute the below query, you are Done !

DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id) LEFT JOIN wp_postmeta c ON (a.ID=c.post_id) WHERE a.post_type=’revision’;

NOTE: This method will delete all revisions from every post including all of its meta data.

Read the rest of this entry »

How to Mass delete autosaved posts or Post revisions in Wordpress

A Blogger’s Itch !

You might be already wondering what the heading is all about, Continue reading and you would find out.

Ive started my OC Blog in Dec 2005, Ive been regular in posting articleswith lots of enthu right from day 1, I did the same for arround few months ;)  And then  ive felt the ITCH for every blog i have started. The Itch is nothing but the feeling that a Blog owner gets ” what the hell am i getting in return even after Blogging so hard, day and night” Its true, its not only you who gets this feeling, it was also the same for me.

Let me be more frank with you with numbers, Ive blogged from Dec 2005 to Jan 2006 in a Cold manner : ie, i did not even have the feeling i had a blog! It was just for sharing my updates to webmasters about my design, development and hostin products.  At arround Late June 2006, i posted my meaningful article, and that started recieving hits from search engine, it was “How i designed a logo”. Then i Thought, wow for one simple post, if its boosting my website traffic by 5 % what wonder would a 100 articles do?

Mistake:  Posting Some Junk Articles
Yes i made my first mistake, In my hurry to increase my post count i went arround the web searching for nice topics, nice tutorials and re-posted them in my Blog. Dear friends, these kinda articles are not gonna take you anywhere. so it did not take me either.  I did get traffic, but was not at all impressive. That made me think WHY? wasn’t late when i got the answer. Its all about posting unique content, I removed all the articles that were “inspired” from elsewhere, Wrote one single neat good article on Cpanel Tutorial, That did the trick for me, almost 15 times more traffic than that for what i did earlier.

Read the rest of this entry »

A Blogger’s Itch !

Complete PunBB Forum setup guide, modification, Run Guide

On the web you can find abundant number of Open source Forum scripts, many of the famous names are VBulletin, IPB, PhpBB,SMF etc, PunBB is a very speedy growing forum script that is a very outstanding scripting and excellent feature sets. This article would be covering every aspect of setting up and using a PunBB Forum.

  • Firstly Download the PunBB forum script from: http://punbb.informer.com/downloads.php
  • Upload the forum script zip file to the location where you would like to install the forum.
  • Create a Database, Create a database user
  • Run the install: http://yourdomain.com/forum/index.php
  • Follow the steps and it’s very easy until it gives the finish button.

 

Read the rest of this entry »

Complete PunBB Forum setup guide, modification, Run Guide

You can certainly spend Half a Dollar For creating a GREAT Blog

Internet has been Growing at crazy speed so are the websites. If you ask me the stats of the Blogs that are been created, i have read the stats before 2 YEARS as 1,80,000 Blogs are created on a day!!! So could you imagine what could be the rate of blog creation now.

Now if you plan to create a blog, you would need a theme, creating a theme from the scratch is a big investment of time that is not really worth it. So I Strongly suggest you guys to go for a Premium theme that is private labeled and looks very professional. But ive done a lot of research personally trying to find a good premium theme, but the average price of a premium theme that i could find online is for 30 -60 USD for 1 Theme, Now this is where you need to be a smart thinker.

The primary reason i am writing this article is to share the benifit i have got and not a promotion, its purely personal as i have used the Premium theme set i purchased from Elegant Themes, on all my 18 Blogs including this one. Its easy to tweak it and its simply superb.

Read the rest of this entry »

You can certainly spend Half a Dollar For creating a GREAT Blog

Tutorials on How to Design Wordpress Themes

Hey, Today i would share a Few very helpful liks that i too refer at times to clarify my Themeing questions, you could also use the below resources to learn how to theme a wordpress theme.

Below is the Wordpress theme structure

  • The header contains all the information that needs to be at the top — i.e. inside the <head> tag — of your XHTML web page, such as the <doctype>, <meta> tags and links to style sheets. It also includes the opening <body> tag and the visible header of your blog (which typically includes the title of your site, and may also include navigation menus, a logo bar, the description of your site, etc.).
  • The content block contains the posts and pages of your blog, i.e. the “meat” of your site.
  • The footer contains the information that goes at the bottom of your page, such as links to other Pages or categories on your site in a navigation menu, copyright and contact information, and other details.

Read the rest of this entry »

Tutorials on How to Design Wordpress Themes

Blog Heatmap Analysis to Spike your Earnings Overnight

Advertising on Blogs have become a very critial part of Blogging as it helps sustain to support the blog expenses and also keep it going. But Placing the right ads, with the right size ant the right place is critical because you dont have all the place in the world on your blog, So each and every Pixel is money!You should also make sure that you dont annoy your visitors but make them feel that you are helping them with the ads that may be of their interest.

From my Blogging experience in the past 4 years, i have come up with a Heatmap suggestion that is not very flowery though! but it works for me very well in many of my blogs.

The Heat map is simple : Top and Right !:- Most attention of a visitor is caught by the Top Right spot of your blog and second by the center spot above your first post. The best adsense sizes that have worked for me are : 728×90 Leaderboards and 300×250 rec. Also have noticed that 125×125 ad banners have become popular now-a-days. Basically keep on experimenting and see whats worked best for you.

Blend ads into your blog: To increase the likelihood that your readers will see and click on your ads, blend your ad units into the background of your blog. Choose a bold color for the ad title to help draw attention to your ads, then make sure that the background and borders of your ads are the same color as the background of the area where the ad is placed.

Read the rest of this entry »

Blog Heatmap Analysis to Spike your Earnings Overnight

« Previous Entries