Customize Drupal Template.php File to Improve Your Blog
Sun, 01/31/2010 - 18:36 — David Wei
Drupal is very powerful, it's so flexible that you can use it to build any kind of website with any kind of feature. Here I will show you how I changed some small HTML outputs by simply customize the template.php file.
1. Change the Default Comment Author and Time Style
The default garland template displays comment author's name and time as "author name- Jan 31, 2010 - 04:19", but I would it shows like "author name said on Sun, 01/31/2010 - 15:42", so I just need to add or replace the function in template.php file under my current template folder, with the following code:
- David Wei's blog
- Add new comment
- Read more
- 505 reads
Your Money Online Becomes a Dofollow Blog too
Fri, 01/29/2010 - 00:46 — David Wei
Following Ching Ya and Nicole, Your Money Online is now a DoFollow blog too.
Why Your Money Online a DoFollow Blog?
First Let Gabe Young tell you something about NoFollow and DoFollow: "Spammers leave comments with lots of links on others’ blogs, just to get link juice back to their site... In 2005, Google’s spam team created an HTML attribute to deter comment spammers. That’s when the NoFollow tag (rel=”nofollow”) was born. Adding this to comments prevents search engine spiders from crawling the links so that there is no passive benefit from leaving comments."
- David Wei's blog
- 9 comments
- Read more
- 714 reads

