Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 7 Social Networking

You're reading from   Drupal 7 Social Networking Build a social or community website with friends lists, groups, custom user profiles, and much more

Arrow left icon
Product type Paperback
Published in Sep 2011
Publisher Packt
ISBN-13 9781849516006
Length 328 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

Table of Contents (22) Chapters Close

Drupal 7 Social Networking
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
1. Drupal and Social Networking FREE CHAPTER 2. Preparing Drupal for a Social Networking Site 3. User Content: Contributions, Forums, and Blogs 4. Users and Profiles 5. Enabling User Interaction 6. Social Seasoning 7. Module Development: Rapidly Improve your Social Network 8. How We Can Design Our Site 9. Communicating with Our Users 10. Deploying and Maintaining Your Social Network 11. Easing Growing Pains 12. Promotion, SEO, User Retention, and Monetization Strategies Setting up a Local Development Environment Installed Modules 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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image