Book Image

Drupal 7 Social Networking

Book Image

Drupal 7 Social Networking

Overview of this book

Drupal is ideally equipped to serve as a base system for creating a custom social networking site like Facebook or MySpace. While these large social networks have their place, niche social networking websites can help promote businesses, products, projects, and hobbies of any nature. Drupal 7 Social Networking provides careful instructions and clear explanations to take you through the setup and management of your social network site, covering topics from users, to marketing, to maintenance. It will help you create your own social networking site, suitable for whatever audience you choose! Starting from the very basics of both Drupal and Social Networking, right through to more complicated aspects, you will progressively learn how to add to and expand your social networking site and add more features. You will learn how to secure your social network, deploy it on the Internet, and keep it running and well maintained. As social networking sites rely on the participation of their users, this book helps you to structure your site in such a way so that users can easily and enjoyably contribute, thus creating a powerful social network.
Table of Contents (22 chapters)
Drupal 7 Social Networking
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

The basics of creating a theme


Creating a theme from scratch is quite an in-depth process, and as well as requiring knowledge of Drupal's theming system, we also need to be able to create a design. Because of this, let us simply look at the basics of creating a theme, and how we could create a theme if we have an existing design to convert. There are many resources, listed later, which fully detail and document how to create themes for Drupal. This primer should give you enough knowledge to quickly convert a design you already have into a Drupal theme, provided you have knowledge of HTML and CSS. The full theme documentation should be followed to provide further assistance: http://drupal.org/documentation/theme.

Structure of a theme

Within Drupal a theme is comprised of the following files:

  • themename.info (where themename is the name of the theme)

  • A number of template files (ending in .tpl.php), containing HTML and PHP which override the default HTML Drupal generates (optional). Common template...