Subscribe to Comments

Filed Under: Plugins

Ever been to a web forum or somewhere, where you can subscribe to things that you have left something on? Is that not a great feature? It is! I needed it for this blog, so once again I went out and searched for it. There it was, very easy and simple to use. All you do is install it and that’s it. It works automatically.

Here are the easy steps:
(more…)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati

Related Posts

Filed Under: Plugins

I have been looking around online for a plug-in that would generate related posts for my articles. One where I didn’t have to do anything, but install it and tell the loop where to display it. Well, after many hours of searching I finally found it! The people over at WASABI WP Plugins Wiki did a fine job on this plugin.

Well here are the simple steps:
(more…)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati

Displaying Code Easily

Filed Under: Plugins

Do you have a need to display code on your blog? Great, well here is a plug-in that I found.

Since I am writing articles and a blog about blogging, and sometimes things that need code for your page. I have looked over the internet to find a plug-in that will cleanly allow you to show your code easily. Pryadi’s Place has the plugin that I used. Go ahead and visit his site, and download the plugin here.

Here is the easy steps:
(more…)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati

Easy Sitemap Generator

Filed Under: Plugins

Tired of every time you post a new article, you have to go in and edit your static sitemap? Today is the end of this!

I got tired of the same thing. So, I began to search online and find a plugin that would display a sitemap for my users, and it would update every time I published a new article.

DagonDesign has created a create plugin to do this. I am using it on this page, and you can see it on our Sitemap page.

It is so easy to implement, and it works like a champ. Download the plugin here.

The page has very detailed instructions on how to implement this script, but let me break it down for you.

  1. Download the plugin.
  2. Rename it to dd-sitemap-gen.php
  3. Upload the file to the plugins folder of your WordPress installation
  4. Activate the plugin in your dashboard
  5. Configure the plugin in the options panel (under DDSitemapGen)
  6. Simply place the following line where you would like the sitemap to display:
<!-- ddsitemapgen -->

That’s it. Now you have a create sitemap, that viewers can use, and you don’t have to worry about it.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati

Automatic Copyright Year

Filed Under: PHP Stuff

PHP Solutions

Isn’t it annoying when you have five or six websites, and you have to go back into them every January 1st and update the year? Couldn’t you use that half hour or more to be doing something else? Well, sure. I have looked and I have looked over and over again, and could not find anything. Finally, I went online to FriendsOfEd and bought a book called PHP Solutions. As I was reading through this book, I realized that they had a very simple PHP script to automatically update the year on your copyright for you! The script is so easy to understand its unbelievable, and its implementation is like wow, thats it? Okay, enough blabbing, here is the code:

<?php
ini_set('date.timezone', 'US/Mountain');
$startYear = 2007;
$thisYear = date('Y');
if ($startYear == $thisYear)
{
     echo $startYear;
}
else
{
     echo "{$startYear}-{$thisYear}";
}
?>

All that you have to do is set the timezone of your region. And than the start year of your website. So, if you started it in 2005 you would change the 2007 to 2005. And than what the script tells the server to do is, check to see if the start year that you have entered matches what the server says the year is. If it does than only display the start year. If it is different, than display the start year and than a - and than the servers current year.

So, really all that it is doing is saying, “Hey server, do you have the same date as I do? No, well what do you say the date is? Okay, now display it on the screen for me.” That’s it. You now have a copyright year, that you will never have to touch again!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
Copyright © 2007-2008 StyleYourBlog
Website Developed by BAMJr. Designs
Log in