Book Image

CiviCRM Cookbook

Book Image

CiviCRM Cookbook

Overview of this book

CiviCRM is a web-based, open source, Constituent Relationship Management (CRM) software geared toward meeting the needs of non-profit and other civic-sector organizations.Organizations realize their mission via CiviCRM through contact management, fundraising, event management, member management, mass e-mail marketing, peer-to-peer campaigns, case management, and much more.CiviCRM is localized in over 20 languages including: Chinese (Taiwan, China), Dutch, English (Australia, Canada, U.S., UK), French (France, Canada), German, Italian, Japanese, Russian, and Swedish.CiviCRM Cookbook will enhance your CiviCRM skills. It has recipes to help you use CiviCRM more efficiently, integrate it with CMSs, and also develop CiviCRM.This book begins with recipes that help save time and effort with CiviCRM. This is followed by recipes for organizing data more efficiently and managing profiles.Then you will learn authentication and authorization and managing communication with contacts.Then you will be guided on using the searching feature and preparing reports. We will then talk about integrating Drupal and CiviCRM. You will also be taught to manage events effectively. Finally, learn about CiviCampaign, Civimember, and developing CiviCRM.
Table of Contents (19 chapters)
CiviCRM Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a standalone newsletter subscription form


You may want to provide a standalone form that allows your users to subscribe to a CiviCRM mailing group rather than providing a URL as in the previous recipe.

How to do it…

It's easy to set up a bit of HTML code that can be pasted into your CMS. In this example we will use Drupal. All you need to know are your group IDs.

  1. Navigate to Contacts | Manage Groups and make a note of any group ID that you wish to use. The groups must be configured for use as mailing lists.

  2. Open up a text editor, create a text file, and enter the following code:

    <form action="http://book.dev/civicrm/mailing/subscribe" method="post">
    <p>Email: <input name="email" type="text" id="email" /></p>
    <table> <tr> <td><input name="groupID1" type="checkbox" value="1" /></td> <td>Advisory Board</td></tr>
      <tr><td><input name="groupID2" type="checkbox" value="1" /></td><td>Newsletter...