This is really great news we got from wordpress. After wordpress 3.0 release wordpress and wordpress MU is merging. This is really great news to multiple blogger community.
After April 2010 we can able to handle multiple blogs though only one wordpress instance. As per Automatic this is the biggest release ever of wordpress. Because more than 100 developers are working for wordpress 3.0 release. As Matt is celebrating the 6th anniversary of the open source blogging software.
People are always thinking about free wordpress plugins because there are thousands of plugin are available for singular wordpress. WordPressMu stands for his own advantages.
I am really fan of wordpressMU always because I started my carrier with wordpressMU. I written my first wordpress plugin for wordpressMU. Many big magazine and business companies always prefer to to use the WordPressMU.
Showing the most recent comments is great for SEO purpose. Our code snippet will able to get recent comments without wordpress plugin in your wordpress site.
get recent comments without wordpress plugin
You can display the most recent comments of your entire blog without any wordpress plugin. Showing the most recent comments is great for SEO purpose. Your site will increase the visibility and people interaction. Socially you and your blog will became more famous. Using following code snippet you will be able to add the recent comments in your wordpress site.
I want to display the comments in footer area. I created following code. You can copy paste the code in your sidebar.php or footer.php file.
Using following code you are able to display recent comments with author’s gr-avatar also.
Many times this issue is happened with me I tried the kill command to stop the process. Solved, Kill command is not working on linux.
But that is really not responding. For Example, following command executed but not worked.
I specially like the kill -9 processid command. Using kill -9 on a process is like just hitting the power button on your running PC. You already know that powering off a running PC can damage your filesystem because of run-time inconsistent data, why would you do the same thing to your applications? You risk the _exact same_ data corruption.
How to set up Firefox Profile Manager on Fedora or Linux
Firefox has new functionality called Profile manager which will allow you to switch with multiple Users.
You can create many user profiles in Firefox and save that as per your choice.
setup Firefox Profile Manager on Fedora
Many times on same Firefox some user don’t want some addons or theme. That time we got some difficulties.
For avoiding this issue we can create the firefox profile in firefox.
In windows creating Firefox profile is very easy. Just open windows run window and type “firefox -P”. That sit!
You will see following screens.
Using this you can create the firefox profiles.
Now I am going to show you how to create the firefox profile in Fedora.
In single.php file we have function to add comments functionality. Here in this article I will give the code for customize the comments template.
From wordpress 2.7 version we got the functionality of changing or customizing the comments template as per your theme. As we all know in single.php file we called following function to add comments functionality. wordpress comments is very important functionality. Here in this article I will give the code for customize the comment template.
customize the comments template
<?php comments_template(); ?>
This function basically calls the comments.php file and add the data from wordpress database.
If we check the comments.php file. Usually we are having following content in comments.php file
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
<?php
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<p>This post is password protected. Enter the password to view comments.</p>
<?php
return;
}
?>
<!-- You can start editing here. -->
<div id="comment">
<?php if ( have_comments() ) : ?>
<h3 id="comments"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</h3>
<div>
<div><?php paginate_comments_links(); ?></div>
</div>
<ol>
<?php wp_list_comments('callback=wordpressapi_comments'); ?>
</ol>
<div>
<div><?php paginate_comments_links(); ?></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 »</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>
In the comments loop for showing the comments we used the wp_list_comments() function. Use this for customize the comments template.
We can customize this function as per our requirement. We can pass the following parameters to this function. use following for customize the comments template.
[/viral-lock]
For customize the comments template following parameter is important.
callback (string) The name of a custom function to use to display each comment. Defaults to null. Using this will make your custom function get called to display each comment, bypassing all internal WordPress functionality in this respect. Use to customize comments display for extreme changes to the HTML layout. Not recommended.
In my theme I used that in following way. I changed and passed parameter in comments.php file.
Many times some people add the full URL of website in the name parameter. That time showing author name of comment writer is looks so ugly. So I used following trick in this function. Using this line of code we can show only 20 characters of author.
how to do wordpress migration to new hosting service – This question always came to web developers. After searching on Internet I really did not found satisfied answer for this question. Using our steps wordpress migration to new hosting service or domain made easy
wordpress migration to new hosting service or domain
Earlier I did wordpress migration to new hosting service or new domain so many times. It was like 5 minutes job for any web developer. Don’t be afraid about wordpress migration at all.
Many people suggest to use wordpress utility which import and export xml. This is given by wordpress itself. But I strongly say don’t use that tool. that is not really full proof.
Just follow my steps to do wordpress migration to new hosting or domain.
1. First take backup of file system of your wordpress website using FTP credential.
2. Open wp-config.php file and change database name(what you want)
3. wp_options -Table name
option_name column – change(siteurl and home)
4. wp_blogs- Table name
domain column – change to your domain name
5. wp_site- Table name
domain column – change to your domain name
Follow above steps and your are done with migration.
wordpress migration to new hosting, question always came to web developers. Using our steps wordpress migration to new hosting service or domain made easy
Which CMS is most popular and most user-friendly in the world. WordPress vs Joomla vs Drupal all are best cms. you need to decide what type of site you want. This is most common question among the developers and clients.
So many times this question is questioned the answered But still I am going answer this question with my opinions.
WordPress vs Joomla vs Drupal
Biggest growth of jobs is WordPress. I am wordpress developer and I can feel this trend today.
We can this graph that displays the growth of wordpress. Seeing this graph We can say that in 2009 and 2010 wordpress is really rocking.
WordPress vs Joomla vs Drupal
I worked on all the cms like wordpress, drupal, joomla and many more. But in this year I worked on wordpress for quite some extra time.
When we choose CMS we consider following points.
1. Which CMS will provide you Best Seo options
Ans: When we see and check the all CMS then I can easily say that wordpress has ability to provide you best seo option. After that I will must say Drupal is best option to go with. This will also provide you best seo option.
2. Which CMS is easy to make custom theme from custom design PSD
Ans: I can say with wordpress and drupal both creating a theme is very easy. any web developer who have very basic knowledge of PHP they can develop custom theme very easily.
3. Which CMS is easy for developer to make custom plugins, modules and components easily
Ans: If you started learning API’s of both the CMS. All are good and easy and all provided good amount of help on internet. But I can rate myself as follows:
a. WordPress
b. Drupal
c. Joomla
Anyways that is depending on your knowledge and understanding. All you need to spend some time to understand the API’s of all CMS.
4. Which CMS admin is most user-friendly and easy to use for non-technical people
Ans: For this point I must say wordpress is the best tool. Drupal has admin panel but little complex to understand and same with joomla.
5. Which CMS is most good for E-commerce site, Blog, Small site, News sites and company website.
Ans: I recommend again wordpress here. you can set up wordpress very easily and quickly with minium effort. For big websites like magazine and news sites wordpress is the great tool.
Next point is, for ecommerce and blogging wordpress is the great tool. If you are aware with wordpress then go with drupal.
Conclusion: If you want to develop very complex website with multiple features like ad management, forums, client support, video gallery, media gallery then go with Drupal.
So many very big websites are built-in Drupal and WordPress. Choosing the CMS is all depending on your client requirement.
Many developer who are experienced in development. But with another CMS development. we look for Best IDE for WordPress, Drupal Plugin and Theme development. But still that comes to another cms or project development. We are always search for good IDE which are free and open source that is the first requirement.
Best IDE for WordPress, Drupal Plugin and Theme development
Our basic need are as follows in any IDE, the IDE need to support following things:
CSS
XHTML/HTML
JavaScript
PHP
MySQL
I created a list of IDE which I used daily to do a development. Here I need to clarify IDE is language specific. I work in PHP, Ruby on Rails, Adobe Air, Flex, Javascript, CSS.
I recommend following IDEs which I really found useful for all the developer who are working in wordpress, joomla, drupal development.
Description: Eclipse is best IDE for all language development. Eclipse IdE is basically Java development but still that provides PHP, ROR and other language support. I like this IDE for java development but I did not recommend for PHP or Ruby on Rails.
Description: This IDE has also all language support. I specially like this IDE from Ruby on Rails development. I Used this IDE for Ruby on Rails development as well as some times for PHP development. Among the Ruby on Rails developer this IDE is so popular.
Description : This IDE is also support for all languages. This IDE is really good support for PHP. I really love this IDE for PHP development. Simple and fast and still nice features about PHP. This IDE is really popular among the PHP developers.
Description : This IDE is mainly made for Ruby on Rails development. This is also popular among Ruby developers. This IDE has features like eclipse. I like this IDE for Adobe Air and flex development. This IDE has also PHP support.
Description: This IDE is plain simple text editor. Shows you simple color highlight features. I specially recommend this IDE for PHP development and new PHP developer always start with this IDE so they will get filmier with PHP functions and methods because this IDE is does not provide any help. I love the use this IDE in daily use for any language development.
If you want to add any more IDEs. You can comments on this article.