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

Uploaded files


Since enabling the File module, we can allow our users to upload and attach files or images to content. It is good that it allows users to share additional media and make their posts more interesting, but it causes problems with regards to what they can share. In particular, we wouldn't want users sharing large files, nor would we want users sharing files of certain types, such as program files, which could contain viruses. Thankfully, there are settings available for this module which allow us to restrict the types of files our users can upload, as well as the sizes of the files they can upload.

File and image uploads are set up through additional fields on our content types. Let's look at allowing file uploads on our forum topics. We do this from Structure | Content types | Forum topic | Manage fields.

The field we need to select is File, which automatically selects the File widget:

After clicking Save we can select if users should have the option to display a file when viewing...