Modified newpost functionality.

Many changes.