Blogging

Customising wordpress templates

Here are a few nice things to add to your wordpress template in case it doesnt have them. The important templates to modify are index.php (the full blog view), single.php (shows single posts) and comments.php (for comments)

Show author and date

Adding the following :

<p>Posted by <?php the_author(); ?> on <?php the_date('F j, Y'); ?> at <?php the_time('g:i a'); ?>
</p>

will give something like

Posted by Tejvan Pettinger on October 12, 2007 at 7:35 am

The arguments for the the_date and the_time functions tell you what format the date and time is in, you can read a full list of them here…

Show category

<?php the_category(' , '); ?>

shows the category; the comma in the brackets tells you what separates the categories if there are more than one of them.

Edit post link

Very handy to be able to edit posts from the actual post itself:

<?php edit_post_link(__(' Edit this post')); ?>

The stuff between the apostrophes is the wording of the link

Migrating Blogger blogs to WordPress, and setting up 301 redirects to ensure no links are broken

  1. Ok, basically if your blog is a new Blogger blog (after it was acquited by Google and Google usernames introduced) first step is to be sure have WordPress 2.2.

If you have an old version of WP, you can always upgrade:

http://codex.wordpress.org/Upgrading_WordPress_Extended

WordPress 2.1 allows you to upgrade from Old Blogger blogs, but not New ones.

  1. If your Blogger blog is hosted via FTP, go into the settings of the blogger blog and turn it into a blogspot blog (this change is reversible if anything goes wrong). Your blogger blog url will now be at (some name you choose).blogspot.com
  2. Go to your blog admin on your WP blog. Go to Manage -> Import and select the ‘New Blogger’ option. You will be asked for your blogspot url, blogger username and password. And hey presto, the job is done! (You might want to verify that before we go on)

Some recent users may have trouble signing into their Google account from WordPress due to the fact that Blogger changed their hostname API:

http://wordpress.org/support/topic/131952?replies=2

As you can see here, you just need to make a simple change in wp-admin/import/blogger.php file, changing www2.blogger.com in line 84 to www.blogger.com. This will be automatically fixed in WordPress 2.3.

  1. Ok, here is the time consuming job, setting up redirects from the old posts to the new, so that if someone clicks on a link to the old address they are automatically forwarded. Make sure you first are happy with the permalink structure on your WP blog (Go to Options -> Permalinks to change this)

Now open up some text editor to write the redirects. Suppose your old blogger blog was at

http://www.mysite.com/{old address}

and your new WP address is at

http://www.mysite.com/{new address}

basically all you do is type

redirect 301 /{old address} http://www.mysite.com/{new address}

301 is basically a code that tells Google that the item has permanently moved to the new address and you aren’t trying to pull any funny stuff on them. For each entry, type in the proper 301 redirect on a separate line. You can still get the old url address by looking at the blogspot blog.

You need to type in the full URL of the new address. Why? Basically, it allows you to redirect your posts to entries on a completely different site if you so choose!

Now you need to use an FTP client to go into the filesystem of where you host your blog. At root there should be a file called .htaccess; if not, create one (all files with . in front are system files and might be hidden unless you tell your FTP client to show hidden files). Then just copy and paste your redirects into this file, save, and try it out by typing in an old blogger address

  1. I’ve heard (although i don’t know the logic behind it) that its good to keep the FTP site going for a couple of days. So go to your Blogger blog and move it back to ftp, and then delete it after a few days.

Evaluation of Blogger Software

If you are looking for a blog for your website, or just want a blog, the 2 most popular choices are:
Wordpress and Blogger.

Advantages of Blogger

  • Owned by Google; the biggest blog software, and it is Free
  • Easy to install and add to your exiting website. At Blog set up choose – "Advanced Set UP". You will need your FTP password e.t.c.
  • Can also be used as a standalone and hosted on Blogger’s servers, e.g. www.yoursite.blogspot.com
  • Easy to use and customise template.
  • Indexed very quickly by Google (not too surprising, since it is owned by Google. This is good for SEO
  • New features of www2.blogger include: blog labels. There are also hacks available, such as, teaser blog pages.
  • Google support group

Disadvantages of Blogger

  • With new blogger software hosted on external sites, I have frequently had blog publishing problems. (Sometimes takes a long time to publish, and then with errors – can be avoided by not having lables) Hopefully, these are problems which will be overcome soon, but it makes me reluctant to start more blogger blogs.

Other Blog Software to Consider:

WordPress – Good reviews, more features and plugins than blogger. Reliable software.

  • Example of WordPress Blog by Vasudevaservice CSS expert – John-Paul Gillespie
  • Free but does need installation, make sure your web host supports it. Not all do, some make it easy.

Type pad – Premier blog software, does cost though.

Benefits of Writing with Lists

The Advantages of Writing in Lists.

  1. Easier to Read. People don’t have time or the interest to read long sections of text. Writing by bullet points or numbers makes it easy to read and skim through. Picking up on the points which look most interesting.
  2. Easier to Write. Writing lists tends to be easier. Writing by bullet points means that you focus on one point at a time. It also tends to encourage simpler writing which is a good habit to encourage.
  3. Discussion. Lists provide an opportunity for discussion. For my next blog post I am going to choose my top 13 books that changed the world. It engages the reader because they start thinking what they would have chosen. If you want people to add comments to your blog this is a good strategy to employ.
  1. Look Authorative Lists have a certain authority. People give a lot of respect to top 10 Bestsellers. If you give top 10 tips for writing a blog, it gives your points an added force.
  2. Grab Attention. People skim read the internet. Surfing the internet is not like reading a book. When you a buy a book you know what you are getting. When you come across an internet page, 95% of people move on after less than 60 seconds. Lists and subheadings are a way to grab people’s attention before they move elsewhere.
  3. Use Bold Text. As well as writing lists it is helpful to use a small amount of bold text. This makes it even clearer what the point is about.

(To create Bold text in reSt use ** Text to be made bold **

  1. Create Content Lists are an easy way of creating content. Top 10 favourite books. Top 7 Reasons to write a blog Top 7 reasons to write lists…

Of course this doesn’t mean you have to write everything by lists. But some subjects work very well through writing by lists.

How Viewers read a web page

Interesting blog entry about how viewers read a screen. What I learned from Eye Tracking Using an eye tracking programme the video plots how people scan across a screen. Often people go quickly from one thing to the next. There is little evidence of people actually reading the text. Most people are scanning for a subheading or picture that interests them.

See also Pro Blogger

What people look at:

  • Headings
  • pictures (including thumbnail
  • Buttons and Menus
  • Lists are popular – blocks of text aren’t.

A useful idea discussed in a previous blog entry is the idea of "don’t make me think " Users of a website don’t want to have to work anything out, they certainly don’t have time to read instructions. (I think even contributors to websites are a bit like this as well)

An interesting comment that Seth Godin made is that if a website is a little different it catches peoples attention.

Easy Blog

Easy Blogs are now being used by community members at sites such as Sri Chinmoy Races. For members who are new to the idea of using blog a basic introduction to using Easy Blogs has been created.
The guide is quite short as it will hopefully prove relatively straightforward to use.

Using Easy Blogs for the First Time

Advice for writing Blogs

1. Include Short biography and photo. – People like to know who they are reading. It gives the blog a personal aspect. (Me)

It is easier to trust someone with a real name and photo.

2. Make your blog easy to read.  A good feature of "easy blog" is the option to have an introductory paragraph and then more.

If its a very long article you can link to the article from your blog. See this article on "Don’t make me Think"

3. Links should be descriptive of where they go. e.g  How to add internal links to a website

4. Make your best postings easily accesible. Don’t let them get buried in archives.

  • (Here easy blog may need a new feature)

5. Focus on a certain niche. This blog at Vasudevaservice will focus on websites, Plone and blogging.  If you post on too many diverse subjects it is unlikely people will share all your own tastes.

6. Try to stick to a regular publishing schedule. Little and often is better than all at once and then nothing for several months 

However don’t post for the sake of it. ( Not every one may share your enthusiasm for an in depth account of your recent visit to the local supermarket. )

7. Use good Headings which are descriptive of content. This is good for Search Engines and makes it easier for visitors to know what the blog entry is about

8. Good photos help. (preferably related to the blog of course…)

superhereos

9. Look for ways to promote your blog. Try to find people with similar interests. Use services like Ping o matic.

  • Hopefully Easy blog will have this feature as automatic soon.

10. … Please leave a comment if you have a 10th idea.

How to Write Good articles for web

Many of these ideas came from "Top 10 Design Mistakes"

See also "Guide to Starting Websites" by R. Pettinger

More on Easy Blog.

We feel Easy Blog to be the best Plone Blog feature and look forward to its continued development.