Selwyn's Drupal tips

When you want to allow anonymous users to be able to add content, you configure all the permissions you'd expect but the one you might not expect is to give them permission to "Show format selection for nodes."  This is part of the better formats module. 

This code, thanks to Nick Lewis shows how to load a node using it's nodeid and then display the body, then the title.

I recently did a little project to display a coupon with an expiration date that was calculated. It just adds 21 days to today's date and prints it on the coupon. Here is what the code looks like: