You are here

README.txt in Subscriptions 7

Same filename and directory in other branches
  1. 5.2 README.txt
  2. 5 README.txt
  3. 6 README.txt
  4. 2.0.x README.txt
README.txt for Subscriptions 7.x-1.x



>>>> Please feel free to suggest improvements and additions to this file! <<<<




Overview
--------

Subscriptions enables users to subscribe to be notified of changes to nodes
or taxonomies, such as new comments in specific forums, or additions to some
category of blog. Once enabled, all nodes will have an additional link that
allows the user to change their subscriptions. Users have tab on their user
screen to manage their own subscriptions. Users can also set an auto-subscribe
function which notifies the user if anyone comments on posts they have made.
Admins can turn this on by default.




Requirements
------------

For sending mail using Subscriptions Mail the following modules are needed:
  - Mail Editor     http://drupal.org/project/mail_edit
  - Token           http://drupal.org/project/token




Acknowledgements
----------------

Subscriptions 5.x-2.0 has been rewritten from scratch by chx and salvis.
Ported to Drupal 6 and continuously enhanced by salvis.
Doxygen documentation by develCuy, sponsored by www.transit.york.ac.uk.
Ported to Drupal 7 by salvis.

http://drupalcontrib.org/drupal-7-modules provides on-line developer documentation.

Initial Translations:
- German:               salvis
- Hebrew:               yhager
- Italian:              peterpoe
- Spanish:              develCuy
- French:               matkeane
- Japanese:             PineRay
- Danish:               wulff / Anders Lund
- Brazilian Portuguese: Márcio Moreira
- Hungarian:            muczy
- Arabic:               N2H




Modules
-------

For standard Subscriptions functionality you need to enable the following modules:
 * Subscriptions UI
 * Subscriptions Mail (+ Mail Editor + Token)
 * Content Subscriptions
 * Taxonomy Subscriptions (e.g. forums!)

SMTP Authentication (http://drupal.org/project/smtp) may be useful for sending
out emails, if your provider imposes limits on what you can do with PHP mail.

HTML Mail (http://drupal.org/project/htmlmail) provides a way to send themed
HTML mails.





Upgrading from 6.x-1.x
----------------------

Subscriptions D7 is designed to smoothly upgrade a 6.x-1.5 installation.
Upgrading later D6 versions should work as well.

The proprietary !variables in the D6 Mail Editor have been replaced with the
core [tokens]. Subscriptions attempts to update your templates, but you must
review each one to verify that it produces the desired result. The tokens
as well as other advancements in Drupal and in Mail Editor provide more
sophisticated functionality. Some of this is displayed by the new default
templates, so you may want to have a look at these, too.




Upgrading from 5.x-2.x to 6.x-1.5
---------------------------------

Subscriptions 6.x-1.5 is designed to smoothly upgrade and convert a 5.x-2.6
installation.




Upgrading from 5.x-1.x to 5.x-2.6
---------------------------------

Subscriptions 5.x-2.6 is designed to smoothly upgrade and convert a 1.9
installation. If you currently have 1.x installed, we recommend to put
your site in maintenance mode, remove the 1.x files (if you only move
them to a different directory under the web root, Drupal will still find
them and cause trouble!!!), copy the 2.x files where you want them, and
run update.php (directly or from Administer|Modules) as usual.

Subscriptions 1.x does not have an uninstall function. If you want to
remove it in order to start with a clean slate, then you need to disable
it, remove its database tables, and remove its row from the {system} table
(be careful!!!). Then you can do a fresh install of Subscriptions 2.0.






Permissions
-----------

Don't forget to set the permissions!

Subscriptions does not support anonymous users -- there's no use in
giving them any subscribe permissions.






Subscribe links
---------------

http://example.com/subscriptions/add/node/1234
http://example.com/subscriptions/add/type/blog
http://example.com/subscriptions/add/type/blog/12
http://example.com/subscriptions/add/type/forum
http://example.com/subscriptions/add/type/forum/12
http://example.com/subscriptions/add/taxa/123
http://example.com/subscriptions/add/taxa/123/12
(where 1234 is a nid, 123 a tid, and 12 a uid)

You can combine these with a log-in link as follows:

http://example.com/user/login?destination=subscriptions/add/taxa/123


There are also corresponding

http://example.com/subscriptions/del/...

links with the same parameters, which can be used by the administrator to
provide unsubscribe links to a user. These unsubscribe links require the
user to be logged in. By default, Subscriptions sends out encrypted
unsubscribe links with each notification, and those latter unsubscribe
links work even without logging in, but they cannot be generated by hand.




Send Intervals
--------------

Choose (and possibly adapt the strings) for the Send Intervals at
admin/settings/subscriptions/intervals to your site!
Specifically, "As soon as possible" means at the next cron run,
which of course primarily depends on how often you run cron...

Notifications are governed by the following rules:
1. They are only sent out when cron runs.
2. Each user's first notification is sent at the very next cron run.
3. Whenever a notification is sent, the current timestamp is stored
   as that user's last_sent entry in the {subscriptions_user} table.
4. Whenever a new notification is queued, the queue entry gets the
   last_sent timestamp and the send_interval for the subscription
   stored along with other information.
5. When cron runs, it considers only queue entries for which
   last_sent+send_interval is in the past.
6. When a notification is sent, possible duplicates for the same
   node are removed, so that no duplicate notifications are sent,
   even if multiple notifications are queued, e.g. because the user
   entered overlapping subscriptions or the node was updated or
   commented.
   Obviously, in the case of overlapping subscriptions, the one with
   the lowest Send Interval wins.
7. If digests are enabled, then a digest is sent whenever at least
   one notification is ready to be sent, and it includes all the
   notifications that are ready.






Cron Job
--------

The subscriptions_mail submodule uses cron to send notifications by email.
You may want to adjust the list and descriptions of the Send Intervals.

We recommend that you keep the cron summary watchdog message enabled.
It gives you valuable information about the load of your cron job and your
mail server.

Note: On a busy site it is normal that the queue does not become empty,
but it should not keep growing indefinitely; if it does, you should run
cron more frequently.

Note: Subscriptions tries not to use up all the available time, because
other modules may come after it; if it uses too much or too little,
you can decrease or increase the subscriptions_cron_percent variable
(the default is 50).





Mail Templates
--------------

Go to admin/config/system/mail-edit to edit the mail templates.

Some of the variables are only available if you save the templates,
and not at all in digest mode.

However, as long as you DON'T save the templates, they are automatically
translated to the recipient's language. Like other user-modifiable strings,
as soon as you edit and save them, they stop getting localized. For
multi-language customization, you need to edit the
subscriptions_mail.templates.inc file.

You can use conditional text and even loops in the templates. The syntax is
explained in the fieldset on the edit pages. We strongly recommend that you
start with outputting the token text into a notification before you try to
use it as a condition or in another complex context.

Digest mail template: Each digest item is formatted using the content type 
of the item.

Note: All the URL variables are built by calling the url() core function.
You may be able to influence the return value of url() by setting $base_url
in settings.php. In any case, if you don't get what you expect, it's not
an issue of Subscriptions.




Attached files
--------------

The default templates add a list of attached files, based on the assumption
that the files field is named 'field_files'.

We like showing the ugly login block only where needed, like on nodes
that aren't accessible without logging in and also when trying to download
an attached file through a direct link (if the Download method is Private).
To achieve that goal, you need to set the Login block to show only on
the following URLs:

node/*
system/files/*




Unpublished Nodes/Comments
--------------------------

Subscriptions does not send notifications for unpublished nodes/comments
except to users who have the 'administer nodes' / 'administer comments'
permissions. The default templates demonstrate how you can distinguish
and highlight unpublished nodes/comments.

Publishing a node/comment will cause a notification to be sent to all
subscribers.





Blocking sending of email notifications
---------------------------------------

The Subscriptions module can be configured to discard all notification emails
by adding a kill-switch in your settings.php file. This is often useful during
development and testing when you have a database of real users subscribed to
receive notifications, but you do not wish to send these notifications from a
development or staging server.

Add a single line at the end of the settings.php file like this:

  $conf['subscriptions_mail_trash_silently'] = TRUE;

Note that by default, this variable is set to FALSE, unless you specifically
override it. Although it cannot be configured directly from the settings page
in the administration interface, you will receive an error message on that
page to remind you that this kill-switch has been enabled from the code.

Also see the MailLog module for site-wide control that allows blocking of all
email messages.




Support/Customizations
----------------------

Support by volunteers is available on

   http://drupal.org/project/issues/subscriptions?status=All&version=7.x

Please consider helping others as a way to give something back to the community
that provides Drupal and the contributed modules to you free of charge.


For paid support and customizations of this module or other Drupal work
contact the maintainer through his contact form:

   http://drupal.org/user/82964

File

README.txt
View source
  1. README.txt for Subscriptions 7.x-1.x
  2. >>>> Please feel free to suggest improvements and additions to this file! <<<<
  3. Overview
  4. --------
  5. Subscriptions enables users to subscribe to be notified of changes to nodes
  6. or taxonomies, such as new comments in specific forums, or additions to some
  7. category of blog. Once enabled, all nodes will have an additional link that
  8. allows the user to change their subscriptions. Users have tab on their user
  9. screen to manage their own subscriptions. Users can also set an auto-subscribe
  10. function which notifies the user if anyone comments on posts they have made.
  11. Admins can turn this on by default.
  12. Requirements
  13. ------------
  14. For sending mail using Subscriptions Mail the following modules are needed:
  15. - Mail Editor http://drupal.org/project/mail_edit
  16. - Token http://drupal.org/project/token
  17. Acknowledgements
  18. ----------------
  19. Subscriptions 5.x-2.0 has been rewritten from scratch by chx and salvis.
  20. Ported to Drupal 6 and continuously enhanced by salvis.
  21. Doxygen documentation by develCuy, sponsored by www.transit.york.ac.uk.
  22. Ported to Drupal 7 by salvis.
  23. http://drupalcontrib.org/drupal-7-modules provides on-line developer documentation.
  24. Initial Translations:
  25. - German: salvis
  26. - Hebrew: yhager
  27. - Italian: peterpoe
  28. - Spanish: develCuy
  29. - French: matkeane
  30. - Japanese: PineRay
  31. - Danish: wulff / Anders Lund
  32. - Brazilian Portuguese: Márcio Moreira
  33. - Hungarian: muczy
  34. - Arabic: N2H
  35. Modules
  36. -------
  37. For standard Subscriptions functionality you need to enable the following modules:
  38. * Subscriptions UI
  39. * Subscriptions Mail (+ Mail Editor + Token)
  40. * Content Subscriptions
  41. * Taxonomy Subscriptions (e.g. forums!)
  42. SMTP Authentication (http://drupal.org/project/smtp) may be useful for sending
  43. out emails, if your provider imposes limits on what you can do with PHP mail.
  44. HTML Mail (http://drupal.org/project/htmlmail) provides a way to send themed
  45. HTML mails.
  46. Upgrading from 6.x-1.x
  47. ----------------------
  48. Subscriptions D7 is designed to smoothly upgrade a 6.x-1.5 installation.
  49. Upgrading later D6 versions should work as well.
  50. The proprietary !variables in the D6 Mail Editor have been replaced with the
  51. core [tokens]. Subscriptions attempts to update your templates, but you must
  52. review each one to verify that it produces the desired result. The tokens
  53. as well as other advancements in Drupal and in Mail Editor provide more
  54. sophisticated functionality. Some of this is displayed by the new default
  55. templates, so you may want to have a look at these, too.
  56. Upgrading from 5.x-2.x to 6.x-1.5
  57. ---------------------------------
  58. Subscriptions 6.x-1.5 is designed to smoothly upgrade and convert a 5.x-2.6
  59. installation.
  60. Upgrading from 5.x-1.x to 5.x-2.6
  61. ---------------------------------
  62. Subscriptions 5.x-2.6 is designed to smoothly upgrade and convert a 1.9
  63. installation. If you currently have 1.x installed, we recommend to put
  64. your site in maintenance mode, remove the 1.x files (if you only move
  65. them to a different directory under the web root, Drupal will still find
  66. them and cause trouble!!!), copy the 2.x files where you want them, and
  67. run update.php (directly or from Administer|Modules) as usual.
  68. Subscriptions 1.x does not have an uninstall function. If you want to
  69. remove it in order to start with a clean slate, then you need to disable
  70. it, remove its database tables, and remove its row from the {system} table
  71. (be careful!!!). Then you can do a fresh install of Subscriptions 2.0.
  72. Permissions
  73. -----------
  74. Don't forget to set the permissions!
  75. Subscriptions does not support anonymous users -- there's no use in
  76. giving them any subscribe permissions.
  77. Subscribe links
  78. ---------------
  79. http://example.com/subscriptions/add/node/1234
  80. http://example.com/subscriptions/add/type/blog
  81. http://example.com/subscriptions/add/type/blog/12
  82. http://example.com/subscriptions/add/type/forum
  83. http://example.com/subscriptions/add/type/forum/12
  84. http://example.com/subscriptions/add/taxa/123
  85. http://example.com/subscriptions/add/taxa/123/12
  86. (where 1234 is a nid, 123 a tid, and 12 a uid)
  87. You can combine these with a log-in link as follows:
  88. http://example.com/user/login?destination=subscriptions/add/taxa/123
  89. There are also corresponding
  90. http://example.com/subscriptions/del/...
  91. links with the same parameters, which can be used by the administrator to
  92. provide unsubscribe links to a user. These unsubscribe links require the
  93. user to be logged in. By default, Subscriptions sends out encrypted
  94. unsubscribe links with each notification, and those latter unsubscribe
  95. links work even without logging in, but they cannot be generated by hand.
  96. Send Intervals
  97. --------------
  98. Choose (and possibly adapt the strings) for the Send Intervals at
  99. admin/settings/subscriptions/intervals to your site!
  100. Specifically, "As soon as possible" means at the next cron run,
  101. which of course primarily depends on how often you run cron...
  102. Notifications are governed by the following rules:
  103. 1. They are only sent out when cron runs.
  104. 2. Each user's first notification is sent at the very next cron run.
  105. 3. Whenever a notification is sent, the current timestamp is stored
  106. as that user's last_sent entry in the {subscriptions_user} table.
  107. 4. Whenever a new notification is queued, the queue entry gets the
  108. last_sent timestamp and the send_interval for the subscription
  109. stored along with other information.
  110. 5. When cron runs, it considers only queue entries for which
  111. last_sent+send_interval is in the past.
  112. 6. When a notification is sent, possible duplicates for the same
  113. node are removed, so that no duplicate notifications are sent,
  114. even if multiple notifications are queued, e.g. because the user
  115. entered overlapping subscriptions or the node was updated or
  116. commented.
  117. Obviously, in the case of overlapping subscriptions, the one with
  118. the lowest Send Interval wins.
  119. 7. If digests are enabled, then a digest is sent whenever at least
  120. one notification is ready to be sent, and it includes all the
  121. notifications that are ready.
  122. Cron Job
  123. --------
  124. The subscriptions_mail submodule uses cron to send notifications by email.
  125. You may want to adjust the list and descriptions of the Send Intervals.
  126. We recommend that you keep the cron summary watchdog message enabled.
  127. It gives you valuable information about the load of your cron job and your
  128. mail server.
  129. Note: On a busy site it is normal that the queue does not become empty,
  130. but it should not keep growing indefinitely; if it does, you should run
  131. cron more frequently.
  132. Note: Subscriptions tries not to use up all the available time, because
  133. other modules may come after it; if it uses too much or too little,
  134. you can decrease or increase the subscriptions_cron_percent variable
  135. (the default is 50).
  136. Mail Templates
  137. --------------
  138. Go to admin/config/system/mail-edit to edit the mail templates.
  139. Some of the variables are only available if you save the templates,
  140. and not at all in digest mode.
  141. However, as long as you DON'T save the templates, they are automatically
  142. translated to the recipient's language. Like other user-modifiable strings,
  143. as soon as you edit and save them, they stop getting localized. For
  144. multi-language customization, you need to edit the
  145. subscriptions_mail.templates.inc file.
  146. You can use conditional text and even loops in the templates. The syntax is
  147. explained in the fieldset on the edit pages. We strongly recommend that you
  148. start with outputting the token text into a notification before you try to
  149. use it as a condition or in another complex context.
  150. Digest mail template: Each digest item is formatted using the content type
  151. of the item.
  152. Note: All the URL variables are built by calling the url() core function.
  153. You may be able to influence the return value of url() by setting $base_url
  154. in settings.php. In any case, if you don't get what you expect, it's not
  155. an issue of Subscriptions.
  156. Attached files
  157. --------------
  158. The default templates add a list of attached files, based on the assumption
  159. that the files field is named 'field_files'.
  160. We like showing the ugly login block only where needed, like on nodes
  161. that aren't accessible without logging in and also when trying to download
  162. an attached file through a direct link (if the Download method is Private).
  163. To achieve that goal, you need to set the Login block to show only on
  164. the following URLs:
  165. node/*
  166. system/files/*
  167. Unpublished Nodes/Comments
  168. --------------------------
  169. Subscriptions does not send notifications for unpublished nodes/comments
  170. except to users who have the 'administer nodes' / 'administer comments'
  171. permissions. The default templates demonstrate how you can distinguish
  172. and highlight unpublished nodes/comments.
  173. Publishing a node/comment will cause a notification to be sent to all
  174. subscribers.
  175. Blocking sending of email notifications
  176. ---------------------------------------
  177. The Subscriptions module can be configured to discard all notification emails
  178. by adding a kill-switch in your settings.php file. This is often useful during
  179. development and testing when you have a database of real users subscribed to
  180. receive notifications, but you do not wish to send these notifications from a
  181. development or staging server.
  182. Add a single line at the end of the settings.php file like this:
  183. $conf['subscriptions_mail_trash_silently'] = TRUE;
  184. Note that by default, this variable is set to FALSE, unless you specifically
  185. override it. Although it cannot be configured directly from the settings page
  186. in the administration interface, you will receive an error message on that
  187. page to remind you that this kill-switch has been enabled from the code.
  188. Also see the MailLog module for site-wide control that allows blocking of all
  189. email messages.
  190. Support/Customizations
  191. ----------------------
  192. Support by volunteers is available on
  193. http://drupal.org/project/issues/subscriptions?status=All&version=7.x
  194. Please consider helping others as a way to give something back to the community
  195. that provides Drupal and the contributed modules to you free of charge.
  196. For paid support and customizations of this module or other Drupal work
  197. contact the maintainer through his contact form:
  198. http://drupal.org/user/82964