How to create your own template?
TweetXT has a simple mechanism to define your own templates. Some basic knowledge in PHP and HTML/CSS is required though. If your familiar with those topics it's quite easy to create your own look&feel for tweetxt.
Don't start from scratch. Copy one of the existing templates from modules/mod_tweetxt/tmpl, rename it and start editing.
All necessary data is available in the $twitter-object. It basically has two main parts:
- $twitter->user: contains all user information retrieved from twitter.com
- $twitter->tweets: is an array of the latest postings the user made to twitter.
The $params-object contains the module configuration parameters.
Use the print_r_html($twitter) function to get a formatted view on all $twitter attributes.
After you have created your new template it will automatically appear in the list of available styles in the module manager.

