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
- 484 reads

